Fence calculator
Divide the fence length by the post spacing to get the sections, add one post to end the run, and fill the length with pickets. A 100 ft privacy fence 6 ft tall, with posts 8 ft on center and 5-1/2 in pickets butted tight, needs 13 sections, 14 posts, 39 rails and 241 pickets with 10% extra. Built board on board, with each back board overlapping the front boards by 1 in, it takes 294 pickets. Setting 4×4 posts in 10-1/2 in holes 30 in deep takes 34 bags of 50 lb fast-setting concrete. Type your own prices to see the cost: 14 × your post price + 39 × your rail price + 241 × your picket price + 34 × your bag price, plus 100 ft × your installer's price per foot.
How to use this calculator · what to enter and what the result means
–
–
How the calculator works
This follows the method in Universal Forest Products' fence calculator guide for picket fences (Outdoor Essentials, 2019). Sections: the fence length divided by the post spacing, rounded up. Posts: one per section, one more to end the run, and one per gate. Rails: the rails per section times the sections; each rail spans one section, so buy rails at least as long as the post spacing. Pickets: the length in inches divided by the picket width plus the gap, rounded up, then the extra allowance (the guide suggests 10%).
Concrete: each hole is a cylinder. The gravel fills the bottom, the post stands on the gravel, and the concrete fills the ring around the post up to a few inches below the ground. Concrete per hole = (π × (diameter ÷ 2)² − post width²) × (hole depth − gravel − gap at the top). Bags = total concrete ÷ the bag's yield, rounded up. Post length = fence height + the part of the post in the ground (hole depth − gravel). Posts that stand taller than the pickets, gate hardware, post caps and fasteners are not included.
Fence cost at your prices
This calculator has no built-in prices: lumber, concrete and labor prices change by region, wood species, grade and season, so the only reliable figures are the ones on your store's shelf tags and in your installer's written quote. Type them in the Your prices boxes and the cost follows the fence:
- Materials: posts × price per post, rails × price per rail, pickets (with the extra allowance) × price per picket, concrete bags × price per bag, gates × price per gate.
- Labor: fence length × your installer's price per foot (per metre in metric).
- Other materials and fees: one flat amount for fasteners, post caps, gravel, stain, the permit and haul-away.
When you compare quotes, check that each one covers the same fence: the same height and length, the wood species and grade, post size and spacing, one layer or board on board, how deep the posts are set and in what, the gates and their hardware, removing an old fence, and who pulls the permit and calls 811. A lower price per foot may leave some of these out.
Materials for common fence lengths
| Fence length | Posts | Rails | Pickets | Concrete bags | Cost at your prices |
|---|
One straight run with the height, spacing, gates, pickets, post holes and concrete set above. The cost column adds materials and labor at the prices you typed (without the flat fees) and stays blank until you type one.
Board-on-board fence: how many pickets
A board-on-board fence has two layers. The front boards are nailed up with a gap between them, and each back board covers one gap, overlapping the front boards on both sides, so the fence is fully private. With picket width w and overlap o on each side, the gap between front boards is w − 2 × o, and one front board plus one back board repeat every 2 × (w − o). Each board therefore adds w − o to the length, and the pickets = fence length ÷ (w − o), rounded up, plus the extra. The overlap must be less than half the picket width, or there is no gap left to cover.
Example: a 100 ft fence (1,200 in) with 5-1/2 in pickets and a 1 in overlap: 1,200 ÷ (5.5 − 1) = 266.7 → 267 pickets, 294 with 10% extra, against 219 → 241 for the same fence in one layer. The front gaps are 5.5 − 2 = 3-1/2 in. Posts, rails and concrete do not change.
| Picket width (actual) | Overlap | Front gap | Pickets per 8 ft section | Pickets per 100 ft |
|---|---|---|---|---|
| 3.5 in | 0.75 in | 2 in | 35 | 437 |
| 5.5 in | 1 in | 3.5 in | 22 | 267 |
| 5.5 in | 1.5 in | 2.5 in | 24 | 300 |
| 7.25 in | 1.5 in | 4.25 in | 17 | 209 |
Counts before the extra allowance, rounded up; a section count is for one 8 ft (96 in) bay on its own. Overlaps are examples: choose yours from how much the boards may shrink and how private the fence must be.
Post hole size: the QUIKRETE rule
QUIKRETE's setting posts in concrete guide says to dig the hole three times the width of the post, to a depth of 1/3 to 1/2 of the post's above-ground length plus 6 in. Pour 6 in of gravel or crushed stone into the bottom for drainage, set the post, and fill with concrete to 3–4 in below ground level so soil or sod can cover it. The extra 6 in is for the gravel.
| Post above ground | Hole depth, 1/3 + 6 in | Hole depth, 1/2 + 6 in |
|---|---|---|
| 4 ft (48 in) | 22 in | 30 in |
| 5 ft (60 in) | 26 in | 36 in |
| 6 ft (72 in) | 30 in | 42 in |
| 8 ft (96 in) | 38 in | 54 in |
Where the ground freezes, your local building code may require posts and footings below the frost line, which can be deeper than this rule. Call 811 before you dig so buried utility lines are marked.
Fence post depth and concrete per post, by fence height
For a fence of each height: the hole depth from the QUIKRETE rule (1/3 to 1/2 of the post's above-ground length, plus 6 in), the post length that gives (fence height + hole depth − the 6 in of gravel), and the concrete for one post at both ends of that depth range. Hole three times the post width (actual 3-1/2 in for a 4×4, 5-1/2 in for a 6×6), 6 in of gravel, concrete stopped 3 in below ground. Bags are per post, before rounding up; for a whole fence, enter your numbers in the calculator above.
| Fence height | Post | Hole | Hole depth | Post length | Concrete (cu ft) | 50 lb fast-setting bags | 80 lb mix bags |
|---|---|---|---|---|---|---|---|
| 4 ft | 4×4 | 10.5 in | 22–30 in | 64–72 in | 0.56–0.90 | 1.5–2.4 | 0.9–1.5 |
| 4 ft | 6×6 | 16.5 in | 22–30 in | 64–72 in | 1.38–2.23 | 3.7–5.9 | 2.3–3.7 |
| 5 ft | 4×4 | 10.5 in | 26–36 in | 80–90 in | 0.73–1.16 | 2.0–3.1 | 1.2–1.9 |
| 5 ft | 6×6 | 16.5 in | 26–36 in | 80–90 in | 1.81–2.87 | 4.8–7.6 | 3.0–4.8 |
| 6 ft | 4×4 | 10.5 in | 30–42 in | 96–108 in | 0.90–1.42 | 2.4–3.8 | 1.5–2.4 |
| 6 ft | 6×6 | 16.5 in | 30–42 in | 96–108 in | 2.23–3.51 | 5.9–9.3 | 3.7–5.8 |
| 8 ft | 4×4 | 10.5 in | 38–54 in | 128–144 in | 1.25–1.94 | 3.3–5.2 | 2.1–3.2 |
| 8 ft | 6×6 | 16.5 in | 38–54 in | 128–144 in | 3.08–4.78 | 8.2–12.7 | 5.1–8.0 |
Cross-check from the maker: QUIKRETE's Fast-Setting Concrete data sheet says two 50 lb bags set a 4 in diameter post in a 10 in diameter hole 2 ft deep (spec data sheet).
Yields: QUIKRETE Fast-Setting Concrete #1004-50 yields about 0.375 cu ft per 50 lb bag (spec data sheet); QUIKRETE Concrete Mix yields about 0.30, 0.45 and 0.60 cu ft per 40, 60 and 80 lb bag (data sheet). Fast-setting mix is poured dry into the hole and then watered; regular concrete mix is mixed with water first. Check the yield printed on your bag.
Actual lumber sizes
Lumber is sold by nominal size, but the boards are smaller once dried and planed. Enter the actual size in the calculator.
| Nominal | Actual, dressed | Source |
|---|---|---|
| Southern pine 1×6 (pickets) | 3/4 × 5-1/2 in | Southern Pine Inspection Bureau |
| Southern pine 2×4 (rails) | 1-1/2 × 3-1/2 in | |
| Southern pine 4×4 (posts) | 3-1/2 × 3-1/2 in | |
| Western red cedar 2×4 rail, dressed | 1-9/16 × 3-9/16 in | Western Red Cedar Lumber Association |
| Western red cedar 4×4 post, dressed | 3-9/16 × 3-9/16 in | |
| Western red cedar 6×6 post, dressed | 5-1/2 × 5-1/2 in |
Rough-sawn cedar is larger (a rough 4×4 is 3-3/4 in). Fence pickets are often sold in their own thicknesses and widths, so measure one or read the label.
Practical tips
- Fence with several sides? Work out each side as its own run and add it to the project list, then take off one post for every corner two sides share.
- Set the end, corner and gate posts first, stretch a string line between them, then set the line posts to the string.
- Shorten the spacing so the sections come out even. A 100 ft run at 8 ft leaves a 4 ft section at the end; 13 sections of about 7 ft 8-1/4 in look more uniform and need the same posts.
- For spaced pickets, a scrap block cut to the gap width keeps the spacing even.
- Building with chain link instead of wood? The chain link fence calculator counts posts, fabric rolls, top rail and fittings for every side.
- Check your local rules and any homeowners' association limits on fence height and setback from the property line before you buy.