Fence Calculator
A fence calculator is an outdoor construction tool that estimates the materials required to build a boundary fence. Based on the total perimeter length and the desired fence height, the calculator computes the number of fence panels, posts, rails, pickets, and bags of concrete needed for the project. It factors in post spacing intervals (typically six or eight feet) and picket dimensions to create a comprehensive materials list, assisting homeowners, landscapers, and contractors in budgeting and ordering supplies.
Enter the fence length, post spacing, height, gate count, and the fence type. The calculator returns the number of posts, sections, panels or pickets, rails, and an optional concrete bag estimate.
Quick Answer
Estimate the materials needed to build your fence. Enter the total fence length, post spacing, and picket width to generate a detailed supply list.
Fence type
Total run of fence to build. · e.g. 100
Center to center between posts. · e.g. 8
Affects panel and picket lengths, not section counts. · e.g. 6
3 rails common on taller or heavier panel fences. · e.g. 2
Each gate opens the fence run and adds gate posts. · e.g. 1
e.g. 4
Most prefab panels are 6 or 8 ft wide. · e.g. 8
Most 60 lb fast-setting bags use 2 per post. · e.g. 2
Corners, gates, slopes, and property lines often add posts and adjust section layout. Check local code requirements before building.
96 ft of fence in 12 sections
14 posts
12 panels, 24 rails
Examples
100 ft panel fence, 8 ft spacing, 1 gate at 4 ft
12 sections, 14 posts, 12 panels, 24 rails
60 ft picket fence, 8 ft spacing, no gates, 5.5 in picket, 0.25 in gap
8 sections, 9 posts, ≈ 126 pickets, 16 rails
200 ft privacy fence, 6 ft spacing, 2 gates at 4 ft each
32 sections, 35 posts (3 with gates), 64 rails
How it works
Subtract the total gate openings from the fence length to get the effective length. Divide that by post spacing and round up for the section count. Posts equal sections plus one, plus one more for each gate. Panels are effective length divided by panel width; pickets are effective length in inches divided by picket width plus gap. Rails are sections times rails per section.
Sections · ⌈(length − gates) ÷ post spacing⌉
Posts · sections + 1 + gates
Panels · ⌈effective length ÷ panel width⌉
Pickets · ⌈(effective length × 12) ÷ (picket width + gap)⌉
Defaults: panel = 8 ft · picket = 5.5 in · gap = 0.25 in · rails per section = 2. Concrete per post is optional.
Related home measurement calculators
- Deck board calculator for the boards needed on a wood deck.
- Board foot calculator for lumber estimates by thickness, width, and length.
- Concrete calculator for slab pours next to fence work.
- Gravel calculator for drainage gravel under post holes.
- Stair calculator for landings or steps at gates.
- Square footage calculator for area math on yards or zones inside the fence.
- All home calculators.
Related Calculators
More tools from Home



