Home & DIY

Fence post calculator

Count posts and estimate actual equal spacing for a straight fence.

Fence post calculator
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

Your result will appear here.

More actions

What if? Vary one input and watch the result

Pick an input and a result, choose a range, and Toolmoz runs this calculation at each step on your device. Every other input stays as you entered it.

Your inputs stay in this browser. Nothing is uploaded, and nothing is saved unless you choose “Save result”.

A clear answer. Here’s how.

Bays = ceiling(length ÷ maximum spacing). A single straight open run needs one more post than bays. Actual equal spacing = length ÷ bays. Gates, corners, joins and post embedment are excluded; this does not specify structural requirements.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Straight fence length (m)
20
Maximum post spacing (m)
2.4

Example result

Fence bays
9
Posts for one open run
10
Equal bay spacing
2.22222222222 m