Construction

Fence Material Calculator

Posts, panels, and rails for a straight fence run.

Free to use — no sign-up or login.

Posts to buy

Rails to buy

Panels to buy

Calculator diagram
Diagram updates with the inputs.

Posts are the length divided by spacing, rounded up, plus one end post. One hundred feet at 8 ft spacing is 14 posts. Panels are one fewer, 13. Two rails per section is 26 rails.

Deck boards are on the decking boards calculator. These counts are already the purchase numbers.

The extra end post

A run of panels needs a post at both ends, so the post count is panels plus one.

Repeated panels

The sketch repeats posts and panels. Gates and corners are not drawn and not counted.

Worked example: 100 ft fence

Length 100 ft, spacing 8 ft, 2 rails per section. Posts to buy 14, rails to buy 26, panels to buy 13.

\[ posts = \lceil 100/8 \rceil + 1 \]

Frequently asked questions

What does the fence calculator measure?

The 100 ft example buys 14 posts, 26 rails, and 13 panels.

How many decimal places does fence calculator show?

The 100 ft example buys 14 posts, 26 rails, and 13 panels. Lengths, areas, volumes, and money use two decimals. Purchase counts are whole numbers.

Does fence calculator include waste?

Counts are already rounded up for a straight run. Gates, corners, and terrain are extra.

Can fence calculator mix units?

No. fence calculator expects every input in the unit printed on its label.

Is fence calculator a code or structural check?

No. fence calculator is a quantity estimate. Local rules and site conditions stay outside the formula.

References

Assumptions and limitations

Waste, cuts, gates, and corners are ignored. The counts are for one straight run.