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

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

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