Home › Outdoor Living
Fence Calculator
Formula verified · Updated Nov 2026
Results update as you type. Estimates only — confirm final quantities before ordering.
Enter your fence length to get a materials count for a standard wood privacy fence: how many sections, posts, horizontal rails and individual pickets. Post spacing, rail count and picket dimensions are all adjustable to match your design. An optional installed price per foot turns the count into a total cost.
The formula
Posts = Sections + 1
Rails = Sections × Rails per section
Pickets = (Length in inches) ÷ (Picket width + Gap)
Installed cost = Fence length × Price per linear foot
The +1 post is the one everyone forgets: a run of fence has a post at both ends of every section, so posts always outnumber sections by one per continuous run. Corners and gate openings each add their own posts on a real layout — treat this count as the straight-run baseline. The picket count assumes pickets run the full length with no gate opening deducted.
Worked example
Example: a 120 ft fence, posts every 8 ft, 2 rails per section, 5.5 in pickets with a 0.5 in gap.
- Sections: 120 ÷ 8 = 15 sections
- Posts: 15 + 1 = 16 posts
- Rails: 15 × 2 = 30 rails
- Pickets: (120 × 12) ÷ (5.5 + 0.5) = 240 pickets
- Installed cost at $30 per foot: 120 × $30 = $3,600 (enter your local price per foot above)
- Concrete for the posts (10 in holes, 30 in deep): 16 posts × 2 bags of 80 lb mix = 32 bags (see the bags-per-post FAQ below)
Reference chart
| Fence length | Posts | Sections | Rails | Pickets |
|---|---|---|---|---|
| 40 ft | 6 | 5 | 10 | 80 |
| 60 ft | 9 | 8 | 16 | 120 |
| 80 ft | 11 | 10 | 20 | 160 |
| 100 ft | 14 | 13 | 26 | 200 |
| 120 ft | 16 | 15 | 30 | 240 |
| 150 ft | 20 | 19 | 38 | 300 |
| 200 ft | 26 | 25 | 50 | 400 |
Frequently asked questions
What is the standard spacing for fence posts?
Eight feet on center is typical for wood privacy fences with 4×4 posts; six feet is used for taller fences, windy sites, or heavier pickets. Wider spacing saves posts but lets rails sag over time.
How do gates change the count?
A gate replaces pickets across its width and needs two stout gate posts plus hinges and a latch. Subtract the gate width from the fence length before calculating pickets, and add the gate posts and hardware separately.
What about a board-on-board (overlapping) fence?
Overlapping pickets cover less per board. Enter the picket's effective coverage — its width minus the overlap, commonly about 1 inch — as the picket width, and set the gap to 0. The rest of the math is unchanged.
How much concrete does each post need?
Work it out as a cylinder minus the post: concrete (ft³) = (π × (hole diameter ÷ 2)² × depth − post cross-section × depth) ÷ 1,728, then divide by 0.60 ft³ per 80 lb bag or 0.375 ft³ per 50 lb fast-setting bag and round up. For a 4×4 post (3.5 in actual), concrete filled to grade: a 10 in hole needs 2 bags of 80 lb (3 of 50 lb) at 24 in deep, 2 (4) at 30 in, and 3 (4) at 36 in; a 12 in hole needs 3 (4) at 24 in, 3 (5) at 30 in, and 4 (6) at 36 in. Concrete is not included in the counts above — multiply your post count by the per-hole figure for your hole size. If you put a 6 in gravel base at the bottom of the hole, subtract roughly half a bag per hole from these figures.
How many bags of concrete for a whole fence run?
Take the post count from the calculator and multiply by the per-hole figure above. Example: a 100 ft fence at 8 ft spacing needs 14 posts (see the table); with 10 in holes 30 in deep at 2 bags of 80 lb mix per post, that is 14 × 2 = 28 bags. Gate and corner posts sit in wider, deeper holes, so count those separately at their own hole size and add them on top.
How much does a fence cost per linear foot in 2026?
Installed, per linear foot, published 2026 national guides put wood privacy at about $15–$45, vinyl at $19–$35, aluminum at $22–$32 and chain link at $7–$12 (Thumbtack cost guide, updated 1 July 2026). Other 2026 guides run higher on some materials — vinyl $28–$41 and chain link $16–$23 (Estimate Home Costs, May 2026) — because “installed” bundles differ: some include old-fence removal, permits and gates, some do not, so always check what a quote covers. For this page’s example fence, 120 ft of 6 ft wood privacy at $15–$45 per foot is about $1,800–$5,400 installed; a 150 ft run is about $2,250–$6,750. Roughly half of the installed price is labor, and gates, permits, removing an old fence and sloping or rocky ground typically add 10–30% on top. These are national planning ranges, not a quote — get two or three local quotes before budgeting. Enter your local price per foot above and this calculator works out the installed total for your length.
Related calculators
- Board Foot Calculator — Board feet and lumber cost from thickness, width, length and quantity.
- Concrete Calculator — Cubic yards and bag counts for slabs, patios and pads.
- Mulch Calculator — Mulch in cubic yards and standard 2 cu ft bags.
How we verify this
Standard fence estimating practice (posts = sections + 1 per run); cross-checked against Inch Calculator — Fence Calculator. Bags-per-post figures computed from the cylinder-minus-post formula with QUIKRETE published yields (0.60 ft³ per 80 lb bag, 0.375 ft³ per 50 lb fast-setting bag) and cross-checked against the published bags-per-post charts of DIY Concrete Calculator and The Civil Studies (same bag counts at 10 in × 30 in once the gravel-base deduction is allowed for). Cost-per-foot figures from published 2026 national guides (Thumbtack, updated 1 July 2026; Estimate Home Costs, May 2026; UseCalcPro, Nov 2026).