Home›Fence Calculator — All Fence Types
Fence Calculator — All Fence Types
Work out how many fence panels, posts and bags of concrete your yard needs — for any fence type: wood, vinyl or chain-link. Enter the total fence length — the calculator adds posts for gates and estimates the installed cost. Building a wood fence and want the full picket-by-picket list? Try the Wood Fence Calculator.
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 180 linear ft of 6 ft vinyl fence, with 6 ft panels and 2 gates:
Panels: 180 ÷ 6 = 30 panels
Posts: 30 + 1 + 2 gates = 33 posts
Concrete: 33 posts × 2 bags = 66 bags of 50 lb concrete
Post depth: 6 ft ÷ 3 = 2 ft deep
Cost: 180 linear ft × $35/ft installed ≈ $6,300 — gates are extra, $150–$400 each, so $6,600–$7,100 with the two gates
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 |
| US 2026 prices, checked November 2026. Sources: Home Depot / Lowe's listings, Nov 2026 (fence posts, 50 lb concrete bags, gates); published US 2026 cost guides (installed fence rates per lin ft). | |
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
Which fence type should I choose — wood, vinyl or chain-link?
Wood is the cheapest up front and easy to repair, but needs staining; vinyl costs more and is near maintenance-free; chain-link is the cheapest per foot and best for keeping pets in, but gives no privacy. This calculator prices panels, posts and concrete for any of them — and if you are building wood, the Wood Fence Calculator counts every picket, rail and post for you.
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.