Fence Calculator
Work out how many fence panels, posts and bags of concrete your yard needs. Enter the total fence length โ the calculator adds posts for gates and estimates the installed cost.
Calculate your fence
Your results
How the fence formula works
A fence is bought by the panel, and every panel needs a post at each end. Measure the total length around the yard, then divide by the panel width.
Panels = total length รท panel width, rounded up. An 8 ft panel is standard; 6 ft panels are used in windy areas or for heavier vinyl.
Posts = panels + 1, plus one extra post per gate. Corner posts are already counted in the panels + 1, but each gate opening needs its own pair of posts โ one is shared with the run, so add one per gate.
Concrete = posts ร bags per post. Allow 1โ2 ร 50 lb bags per post, depending on hole size and soil.
Post depth = one-third of the fence height, with a 2 ft minimum. A 6 ft fence needs posts at least 2 ft deep.
Worked example
A yard needing 100 linear ft of 6 ft wood fence, with 8 ft panels and no gates:
Panels: 100 รท 8 = 12.5 โ 13 panels
Posts: 13 + 1 = 14 posts
Concrete: 14 posts ร 2 bags = 28 bags of 50 lb concrete
Post depth: 6 ft รท 3 = 2 ft deep
Cost: 100 linear ft ร $20/ft installed โ $2,000
How much does a fence cost? (US, 2026)
Prices vary by region, height and material. Installed prices below include posts, panels and labour.
| Option | Typical price |
|---|---|
| Wood fence, installed | $15โ$30 / linear ft |
| Vinyl fence, installed | $25โ$45 / linear ft |
| Fence post (4ร4, 8 ft) | $10โ$25 each |
| Concrete, 50 lb bag | $5โ$8 each |
| Gate (with hardware) | $150โ$400 each |
Waste allowance
Fencing has little cutting waste โ panels are bought whole and rounded up, which already covers most offcuts. Add one spare panel and one spare post for corners that don't divide evenly and for any damaged piece. On a slope, allow an extra panel or two: stepped panels leave triangular gaps at the bottom that need filling.
Frequently asked questions
How deep should fence posts be?
At least one-third of the post's height, with a 2 ft minimum. A 6 ft fence needs posts set 2 ft deep.
How many gates do I need?
At least one, wide enough for a mower (36โ48 inches). Add a second gate if the yard wraps around the house.
How do I fence a slope?
Step panels down the slope, or rack them so they follow the ground. Racking works for gentle slopes; stepping suits steep ones.
Do I need a permit for a fence?
Many towns require one, especially for fences over 6 ft or on a front yard. Check local rules and property lines first.
How far apart should fence posts be?
8 ft is standard for panel fences; use 6 ft spacing in windy areas or for heavier vinyl panels.