Skip to content

Post and Rail Fence Calculator — Posts, Rails & Wire

Calculate posts, rails, postcrete and wire mesh for post and rail fencing. Ideal for gardens, paddocks and rural boundaries in the UK.

Total length of fencing needed

Include stock wire mesh

Add wire mesh for livestock or pet containment

Include wastage allowance

Adds 10% extra for cutting waste and off-cuts

10% is standard for post and rail fencing


How We Calculate This

Our post and rail calculator works by dividing your fence run length by the post spacing to determine the number of posts, then calculating the total rail length based on the number of rails you select.

The formula

Posts = (Fence length ÷ Post spacing) + 1 (rounded up)
Rails = (Fence length × Number of rails) ÷ Rail length (rounded up)
Post length = Fence height + 600mm (burial depth)

For example, a 20m fence run with 2.4m spacing needs: (20 ÷ 2.4) + 1 = 9.33, rounded up to 10 posts. With 3 rails using 3.6m lengths: (20 × 3) ÷ 3.6 = 16.67, rounded up to 17 rails.

Post and rail fencing tips

  • Use UC4 pressure-treated timber for all ground contact posts
  • Rails should overlap at posts — do not butt them end to end between posts
  • On sloping ground, use closer post spacing and step the rails
  • Pre-drill nail holes in hardwood rails to prevent splitting
  • For paddock fencing, place rails on the inside so stock pushes against posts

Frequently Asked Questions

Last updated: February 2026

All calculations are estimates. Verify with your supplier.