Home / UK calculators / Building and hardscape
Sleeper retaining wall calculator
Work out sleepers and posts for a raised bed or retaining wall. UK units: metres, centimetres and litres. Results update as you type.
How many sleepers do I need for a retaining wall?
Sleepers = (wall length ÷ length of one) × (height ÷ height of one), each rounded up. A 4.8 m × 0.6 m wall: Order 6 sleepers and 3 posts.
On this page

Key facts
- Standard sleepers are 2.4 m long, about 200 mm high and 100 mm thick.
- Walls over about 1 m usually need professional design.
- Retaining walls need drainage behind them.
- Sleepers per course = wall length ÷ 2.4 m, rounded up.
Common sizes
Standard railway-style sleepers are 2.4 m long, about 200 mm high and 100 mm thick. Treated softwood, hardwood and concrete versions are available.
Building it properly
- Bury part of the first sleeper course for stability, following the product guidance.
- Lay a compacted base of crushed rock under the first course.
- Add drainage: gravel backfill and a perforated pipe behind the wall.
- Fix sleepers to posts or each other as the design specifies.
Height limits
Walls over about 1 m usually need professional design, and may need approval. Low raised beds and garden steps are common DIY projects.
Building steps in brief
- Mark the wall line and dig a level trench.
- Lay and compact a crushed rock base.
- Set the first course partly below ground, level along its length.
- Add drainage gravel and a perforated pipe behind the wall.
- Build up the courses, backfilling as you go.
- Finish with a top sleeper or capping.
What mistakes should I avoid?
- No drainage, so water pressure pushes the wall over.
- No compacted base.
- Forgetting the buried course when counting.
- Building too high without advice.
How can I save time and money?
- Order a few extra sleepers for cuts and breakages.
- Plan the wall height in whole sleeper heights to avoid cutting.
- Hire a plate compactor for the base.
- Check delivery access; sleepers and blocks are heavy.
- Get advice early for walls near boundaries, buildings or slopes.
How is it calculated?
Per course = length ÷ unit length, rounded up. Courses = height ÷ unit height, rounded up. Total = per course × courses.
Worked examples
Garden wall: 4.8 m × 0.6 m: Order 6 sleepers and 3 posts.
Raised bed side: 2.4 m × 0.4 m: Order 2 sleepers and 2 posts.
Common questions
How many sleepers do I need?
Multiply the number per course by the number of courses.
How high can I build a retaining wall?
Low walls are often DIY, but walls over about 1 m usually need professional design.
Do retaining walls need drainage?
Yes. Gravel backfill and a drainage pipe stop water pressure building up.
Should the first course be buried?
Many designs bury part of the first course; follow the product guidance.
What size are sleepers?
Usually 2.4 m × 200 mm × 100 mm.
Do I need posts?
Many sleeper walls use posts; follow your design.
How long do timber sleepers last?
Treated timber sleepers typically last many years; hardwood and concrete last longer. Ground contact and drainage make a big difference.
Can I build a retaining wall on a slope?
Yes, often by stepping the base. Each step should be level and well compacted.