Fence posts & rails Calculator

Estimate posts and rails for one straight fence run.

Back to the toolbox

How to use this calculator

01

Your measurements

Choose the unit beside each measurement. Changing a unit converts your value.

m
m

View your estimate

Includes one post at each end. Gates, corners and stepped sections need their own counts. Spacing is user-specified.

YOUR ESTIMATE

Posts

10
Rails27
Equal bay spacing2.222 m

Whole quantities are rounded up.

Pricing calculator

Use your supplier’s rate or enter a quoted total. Save each estimate to your project and print everything together.

Your selected quantity already includes any allowance shown in that result. Check whether you are pricing individual items or whole packs. Delivery, tax and labour are not added automatically. A quoted total applies only to this saved calculation.

Fence posts & rails Calculator: measuring notes and method

Draw every independent run

Count each straight run and mark gates, corners and changes in level. A corner post shared by two runs can be counted twice if both runs are entered independently; reconcile the final post list.

Check rail lengths

The rail count is bays multiplied by rails per bay. It does not convert rails into purchasable stock lengths or account for joints. Check the actual bay spacing against the available rail lengths.

CHECK A PRACTICAL EXAMPLE

Why an extra metre can add another bay

Compare two straight runs using an illustrative maximum spacing of 2.4 m and three rails per bay.

The count changes at a bay boundary. The tool includes both end posts on each independent run; reconcile shared corners and gates when combining runs.

Fixed comparison in metric units. Values are illustrative unless linked to a recorded project; changing the calculator above does not change this example.

Formula

Bays = fence length ÷ maximum spacing, rounded up. Posts = bays + 1. Rails = bays × rails per bay.

Worked examples in metric and imperial units

Illustrative values match Reset example and stay fixed when you edit the calculator. Both columns describe the same calculation; converted inputs are rounded.

Metric worked example

Straight fence length
20 m
Maximum post spacing
2.4 m
Rails per bay
3

Posts: 10

Imperial worked example

Straight fence length
65.6168 ft
Maximum post spacing
7.874 ft
Rails per bay
3

Posts: 10

Follow the calculation

Lengths in this working are in metres.

  1. Bays = 20 ÷ 2.4, rounded up.
  2. Posts = whole bays + 1. Rails = whole bays × 3.
  3. Equal bay width = 20 m ÷ whole bays.

Reviewed 19 October 2026. How calculations are checked · Report a correction

Related calculators

PRACTICAL READING

Understand the inputs. Check the order.

Measurement methods and worked examples to use alongside this calculator.

Browse all guides →