Construction & Home Calculators
Fence Calculator
How many fence panels, posts and rails a fence needs, from its length and the panel width.
Assumptions: posts are placed at the panel spacing, with one extra post at the end of the run — a corner or gate needs an extra post. Rails are the horizontal boards per panel. Measure each straight run separately and add the runs together.
How to use the fence calculator
- Enter the total fence length in feet.
- Enter the panel width and the post spacing.
- Press “Calculate fence” to see the panels, posts and rails.
Fence calculation example
A straight 100 ft fence with 8 ft panels needs 100 ÷ 8 = 12.5 → 13 panels and 14 posts (one more post than panels). Each corner or gate adds a post.
Tips for using the fence calculator
- Set posts about a third of their length into the ground, in concrete.
- Mark the line with a string before digging so posts stay straight.
- Check property lines and any housing-society rules on boundary wall or fence height first.
Fence calculator: common questions
- How is the post count worked out?
- Posts = length ÷ post spacing + 1, rounded up — one post at the start and one at the end of the run.
- How many panels and posts for a 100 ft fence?
- 13 panels of 8 ft, 14 posts and 26 rails (2 per panel).
- Do gates need extra posts?
- Yes. Each gate needs a post on both sides, so add one post per gate to the count.
- Is the result stored anywhere?
- No. The calculation runs in your browser.
- How far apart should fence posts be?
- 6–8 ft is typical for timber or chain-link fencing; heavier gates need closer, stronger posts.