Fence Calculator
Posts, rails, pickets and concrete for any fence line, with corners, gates and closed loops handled the way you actually build them.
Fence materials
| Item | Qty | Notes |
|---|---|---|
| Posts 4×4, 8 ft | 14 | |
| Rails 2×4, 8 ft | 36 | |
| Pickets 5.5 in. × 6 ft | 220 | incl. 5% waste |
| Concrete mix, 80 lb | 24 | 14 holes |
| Drainage gravel | 8 bags (0.5 ft³) | |
| Gate hardware (hinges, latch) | 1 sets |
How posts are counted
Post counts go wrong at corners and gates. A corner post serves both directions, so it isn’t extra; a gate, on the other hand, needs a post on each side and breaks the line, so it adds one. The calculator removes gate widths from the run, splits what’s left into equal segments at every corner and gate, and divides each segment into bays no longer than your spacing.
Worked example: 150 ft of 6 ft privacy fence
- 2 corners and one 4 ft gate: run 146 ft in 4 segments of 36.5 ft.
- Each segment needs ceil(36.5 ÷ 8) = 5 bays: 20 bays, 22 posts (20 + 1 + 1 for the gate).
- Three rails per bay: 60 rails. Bays are 7.3 ft, so 8 ft rails.
- Pickets: 1,752 in. ÷ 5.5 = 318.5, +5% = 335 pickets.
- Holes 10 in. × 30 in. with 6 in. of gravel: 0.92 ft³ of concrete each, 22 holes + 10% = 38 bags of 80 lb. Posts: 6 ft above ground + 24 in. in concrete = 8 ft posts.
Before you dig
- Find the line. Fences usually go a few inches inside the property line. A survey or the plat settles disputes before they start.
- Check local rules. Many towns limit backyard fences to 6 ft and front-yard fences to 3–4 ft, require a permit, and have pool-barrier rules if there is a pool.
- Call 811. Utilities mark buried lines for free; hitting one is dangerous and expensive.
Tips that save boards
- Set corner and end posts first, pull a mason’s line, then set line posts to it.
- Use pressure-treated posts rated for ground contact; the pickets and rails can be lighter treatment or cedar.
- On slopes, decide between stepped panels and racked (sloped) rails before ordering: stepping needs longer posts.
- Fasten pickets with two exterior screws or ring-shank nails per rail, and leave a 2 in. gap above grade so the bottoms dry.
For prices, the fence cost calculator uses published per-foot ranges for wood, vinyl, chain link and aluminum and splits out labor.
Order list check
Before ordering, walk the line with the list: one post per mark, one gate kit per gate, and a few spare pickets for warped or split boards. Lumber yards will often deliver the whole fence on one cart if you order it together.
Questions people ask
How many fence posts do I need?
How many pickets do I need for a privacy fence?
How far apart should fence posts be?
How deep should fence posts be set?
How many rails per section?
Sources
- QUIKRETE Concrete Mix (No. 1101): yield per bag — QUIKRETE, checked Nov 2026. 80 lb bag yields about 0.60 cu ft; 40 lb about 0.30 cu ft. 60 lb (0.45) and 50 lb (0.375) follow the same yield per pound.
- 2021 International Residential Code (IRC) — International Code Council, checked Nov 2026.
Related calculators
All outdoor tools →Fence Cost Calculator
Wood, vinyl, chain link and aluminum fence cost per foot, split into materials and labor.
Post Hole Concrete Calculator
Bags per hole with the post’s own volume taken out, plus drainage gravel.
Retaining Wall Calculator
Blocks, caps, base and drainage stone, with permit and engineering flags.
Square Footage Calculator
Rectangles, triangles, circles, L-shapes and several areas at once, in ft² and m².
Concrete Calculator
Slabs, footings, columns, post holes and steps in cubic yards and 40–80 lb bags.
Concrete Slab Cost Calculator
Installed slab cost or ready-mix by the yard, any thickness, adjusted for your region.