Fence material calculator
Estimate panels, posts, and rails for a straight run.
How the fence material calculator works
Enter the Fence run length (feet or meters), the Total gate opening width (0 if none), the Panel span (the width of one panel, between post centers) and the Rails per panel. The tool removes the gate opening from the run, divides the rest by the panel span and rounds up to whole panels. Posts are one more than the panels, plus one extra post when there is a gate. Rails are panels times rails per panel.
With the default entries, a 75 ft run with a 4 ft gate leaves 71 ft; 71 ÷ 8 = 8.875, rounded up to 9 panels. That needs 9 + 1 + 1 = 11 posts and 9 × 2 = 18 rails. For a 100 ft run with no gate, 8 ft panels and 3 rails per panel, 100 ÷ 8 = 12.5 rounds up to 13 panels, with 14 posts and 39 rails. The gate width must be smaller than the total run.
This assumes one straight run with evenly spaced posts. Corners, changes of direction, slopes, a gate that needs heavier posts, panel cuts, concrete and fasteners will change what you buy, and the gate itself is not counted. Treat the result as a starting count for planning and check it against your site and local fence rules. For pricing, use the fence cost calculator.