Home
Fence materials calculator
One straight run, with a post at each end. Corners, gates, and slopes are extra pieces you add after this count.
These fields start with a sample so you can check the arithmetic. Replace them with your own figures.
How to use it
Spacing is the distance between post centers. Eight feet is a common wood-fence spacing, not a code. Picket width and gap are the face and the space you want.
Rails are boards per section, often two or three. Bags per post is however many you actually set. A gate needs its own posts and hardware. This count does not include them. The deck beside the fence is Deck board calculator.
Formula
Posts = length ÷ spacing, rounded up, plus one. Sections = posts − 1. Picket pitch = picket width + gap, in feet or meters. Pickets = length ÷ pitch, rounded up. Rail boards = sections × rails per section. Concrete bags = posts × bags per post, rounded up.
Worked example
Questions
Where is the gate?
Take the gate width out of the picket run and add the gate frame yourself. The posts on either side of the gate are often closer than the regular spacing.
What about a corner?
Split the fence into straight runs. A corner post is the end of one run and should not be counted again as the start of the next.
Do I need concrete on every post?
Only if you are setting them that way. Set bags per post to zero for driven posts. The bag count is not a structural design.
Does picket width include the overlap?
No. If pickets overlap, use the spacing from one picket’s edge to the next visible edge, not the full board width plus a gap. The pitch is the repeat distance.