Skip to content

Sleeper Calculator — Railway Sleepers for Gardens

Work out how many railway sleepers you need for raised beds or retaining walls.

Outside length of the longer side. Sides longer than one sleeper are butt-jointed from more than one.

Outside width of the shorter side. Short ends are cut from a single sleeper where more than one will fit.

Number of stacked rows. One course (200mm) suits edging; two (400mm) is typical for veg beds; three or more for retaining walls.

How We Calculate This

Each course needs two pieces the length of the bed and two the width, so the cut list is those four pieces repeated for every course. Any side longer than one sleeper is split into whole sleepers plus a remainder. We then pack that list into as few sleepers as possible, largest piece first, fitting each one into a sleeper that still has room before opening a new sleeper.

This is why short ends do not each cost a whole sleeper. A 2.4m by 0.5m bed two courses high needs four 0.5m ends totalling 2.0m, and all four come out of one 2.4m sleeper, so the answer is 5 rather than 8. The cutting plan shows which sleepers get cut and where, so you can check it against the timber in front of you. Set the Sleeper Length under Advanced Options if you are buying a size other than 2.4m.

Frequently Asked Questions

Was this calculator helpful?

One tap. Votes are anonymous and carry the page address, your device type, screen size and country, the numbers in the form and the results on screen, so we can check the answer you saw.

Last updated: February 2026

All calculations are estimates based on standard gardening guidelines. Results may vary with soil conditions, climate, and plant varieties.