Home / Fence Calculator
Fence Calculator
Plan a fence that fits your yard and your budget. Enter the fence length, height, and post spacing, and get the posts, sections, pickets or panels, rails, and concrete you need to buy — before you visit the lumber yard.
Most DIY fences fail on materials, not on effort: one post too few, or 30 pickets short, means a second trip. This calculator rounds up every count, deducts gate openings from the picket run, and adds a 10 percent waste allowance by default, so the list it gives you is a list you can actually shop from.
Your information is not stored. Calculations are done in your browser.
Advanced options
Gate, rail, waste, and concrete defaults are already included in the result below. Open this section only to change them.
Please enter a fence length over 0, a spacing over 0, and a gate total smaller than the fence length.
For a 100 ft fence at 8 ft post spacing, with one 4 ft gate.
Posts use the formula sections plus 1. Pickets include the 10 percent waste allowance. Vinyl panels include 2 rails each. Chain-link shows mesh feet and top-rail feet instead of picket and rail counts.
Key takeaways
- 100 ft at 8 ft spacing needs 14 posts, not 13. Sections are ceil(100 / 8) = 13, and posts are sections plus 1 = 14. Forgetting the final end post is the most common fence-counting error.
- Gates reduce pickets, not posts. One 4 ft gate on a 100 ft fence leaves a 96 ft picket run, which needs 231 privacy pickets at 5.5 in wide with 10 percent waste — while the post count stays at 14.
- Height changes rails, spacing changes posts. A 6 ft wood fence normally uses 3 rails per section (39 rails for the 100 ft example). Tightening spacing from 8 ft to 6 ft on a 200 ft fence raises posts from 26 to 35.
- Buy concrete by the post. At 2 bags of 50 lb concrete per post, the 100 ft example needs 28 bags. Check your local post-hole size: deeper or wider holes need more.
Contents
- How the fence calculation works
- Fence styles compared
- Worked examples
- Common mistakes to avoid
- How to use this calculator
- Frequently asked questions
Related tools
How the fence calculation works
Start with the total fence length and the distance between posts. The number of sections is the length divided by the spacing, rounded up, because a partial final section still needs a post at its end. Posts are sections plus 1: one post at the start of each section, plus one final end post.
Sections = ceil(fence length / post spacing)
Posts = sections + 1
Gate-adjusted picket run = fence length – (number of gates x gate width)
For wood privacy pickets, the picket count is the picket run in inches divided by the picket width, multiplied by 1 plus the waste allowance, then rounded up. For spaced pickets, add the 2 in gap to the picket width before dividing. For vinyl, panels are the picket run divided by the post spacing, rounded up, with 2 rails per panel. For chain-link, the mesh length is the gate-adjusted run in feet, and the top rail length is the full fence length in feet.
Concrete is posts multiplied by bags per post. The default of 2 bags of 50 lb concrete per post is a planning estimate for a typical post hole; it is not a substitute for the bag coverage printed on the product you buy.
Fence styles compared
| Style | Best for | What the calculator counts |
|---|---|---|
| Wood pickets, privacy | Privacy and wind screening | Pickets with no gap, plus rails |
| Wood pickets, spaced | Boundary marking with airflow | Pickets at a 2 in gap, plus rails |
| Vinyl panels | Low maintenance, uniform look | Panels and 2 rails per panel |
| Chain-link | Budget boundaries and pet containment | Mesh feet and top-rail feet |
Height matters for rails: a short 3 ft or 4 ft fence often uses 2 rails per section, while a 6 ft fence normally uses 3. Change the rails-per-section value in Advanced options to match the fence you are actually building.
Worked examples
Example 1: 100 ft privacy fence, 8 ft spacing, one 4 ft gate
Sections = ceil(100 / 8) = 13. Posts = 13 + 1 = 14. Picket run = 100 – 4 = 96 ft = 1,152 in. Pickets = ceil((1,152 / 5.5) x 1.10) = 231. Rails = 13 x 3 = 39. Concrete = 14 x 2 = 28 bags of 50 lb.
Example 2: 200 ft spaced-picket fence, 6 ft spacing, two 4 ft gates
Sections = ceil(200 / 6) = 34. Posts = 35. Picket run = 200 – 8 = 192 ft = 2,304 in. Each picket plus gap is 7.5 in, so pickets = ceil((2,304 / 7.5) x 1.10) = 338. Rails = 34 x 3 = 102. Concrete = 35 x 2 = 70 bags.
Example 3: 150 ft chain-link fence, 10 ft spacing, one 4 ft gate
Sections = ceil(150 / 10) = 15. Posts = 16. Mesh run = 150 – 4 = 146 ft. Top rail = 150 ft. Concrete = 16 x 2 = 32 bags. Chain-link also needs tension wire, ties, and gate hardware, which are not counted here — add those from your supplier list.
Example 4: 50 ft vinyl fence, 8 ft spacing, no gate
Sections = ceil(50 / 8) = 7. Posts = 8. Panels = ceil(50 / 8) = 7, with the last panel cut to fit. Rails = 7 x 2 = 14. Concrete = 8 x 2 = 16 bags.
Common mistakes to avoid
- Counting sections as posts. A 100 ft fence at 8 ft spacing has 13 sections but 14 posts. Always add the final end post.
- Measuring over slopes as flat ground. On a slope, measure along the ground line, not the horizontal map distance, or the fence will come up short.
- Forgetting gate posts and hardware. Gates need hinges, latches, and often heavier posts. This calculator counts posts for the run; buy gate hardware separately.
- Skipping waste. Boards get cut, split, or rejected. The default 10 percent waste allowance exists for that reason — set it to 0 only if you already own spare boards.
- Ignoring local rules. Height limits, setback rules, and utility marking vary by area. Call before you dig, and check local fence height limits before ordering.
How to use this calculator
- Enter the fence length. Measure the full run, including corners, in feet.
- Enter height and spacing. Use 8 ft spacing for most wood and vinyl fences, and 10 ft for many chain-link fences.
- Pick a style, then check Advanced options. Gates, rails per section, picket width, waste, and concrete per post are already set to sensible defaults — change only what differs on your project.
- Press Calculate My Fence Materials. The result updates and the page scrolls to it. Take the list to your supplier and confirm post-hole concrete coverage for your soil and hole size.
Frequently asked questions
How many posts do I need for a 100 ft fence?
At 8 ft spacing, 14 posts: 13 sections plus 1 final end post. At 6 ft spacing, the same 100 ft fence needs 18 posts (17 sections plus 1).
How do I calculate pickets for a fence?
Take the fence length minus gate widths, convert to inches, divide by the picket width (5.5 in for a standard 1×6 picket), add a waste allowance, and round up. For the 100 ft example with one 4 ft gate: ceil((1,152 / 5.5) x 1.10) = 231 pickets.
How far apart should fence posts be?
8 ft is standard for wood and vinyl fences, and 10 ft is common for chain-link. Wider spacing saves posts but can let long boards sag; in high wind, 6 ft spacing gives a stiffer fence.
How much concrete do I need per fence post?
As a planning estimate, 2 bags of 50 lb concrete per post. The exact number depends on hole diameter and depth and on the coverage printed on the bag — always check the bag for your hole size.
Does a gate change the number of posts?
In this calculator, gate openings reduce the picket or mesh run, but the post count is sections plus 1 for the full run. In practice, buy gate posts rated for gate weight and add hinges and a latch separately.
Should I add extra pickets for waste?
Yes. The default 10 percent covers cuts, splits, and rejects. For a long fence or an uneven lot, 15 percent is a safer allowance; for a short, straight run with spare boards on hand, you can lower it.
Disclaimer: This fence calculator provides general planning estimates only, not construction, engineering, or legal advice. Material counts depend on your exact layout, slope, soil, post-hole size, and local rules. Confirm measurements, post-hole concrete coverage, and gate hardware with your supplier, and check local fence regulations and utility locations before digging.