Fence Calculator

Assume one open 100-ft run, maximum post spacing 8 ft, picket width 5.5 in, gaps 0.5 in and two rails per section. There are 13 sections, 14 posts and 26 rails. Two hundred pickets plus 199 gaps span 1,199.5 inches, half an inch short of 1,200; 201 pickets are therefore needed under this continuous-run model.

Gates, corners, panel framing and trimming require an actual layout.

Fence Calculator: inputs

Calculated result
Posts needed14
Pickets needed201
Rails needed26

Fence Calculator: Fence length (ft) sensitivity

Fence Calculator: Fence length (ft) and Posts needed5 calculations vary the “Fence length (ft)” input while holding the other entered inputs constant.80119013100141101512016

Enter net open-run length after gate openings, design post spacing, actual picket width, gap and rails per section. End gaps are excluded: n pickets have n−1 internal gaps. The continuous picket count does not resolve framed panel boundaries, shared corner supports or disconnected runs.

Gates need additional posts and hardware. Sloped ground changes the layout, and stepping or racking the fence needs longer pickets. Local codes limit height and setbacks and may require permits.

Rot-resistant posts and fasteners matter more than the count. The calculation assumes evenly spaced posts.

Fence: worked example

Fence length (ft)100
Post spacing (ft)8
Picket width (in)5.5
Gap between pickets (in)0.5
Rails per section2
Posts needed14
Pickets needed201
Rails needed26

Common error: Dividing length by spacing and stopping there. That counts the sections, not the posts, and leaves you one post short at the end.

Fence: formula

Sections = ⌈length ÷ post spacing⌉; posts = sections + 1; pickets = ⌈(length × 12 + gap) ÷ (picket width + gap)⌉ for a positive open run; rails = sections × rails per section

NIST Handbook 44: Units and Systems of Measurement · Rectangle: Wolfram MathWorld

Fence: changing Fence length (ft)

Fence length (ft)Posts neededPickets neededRails needed
801116120
901318124
100 (example)1420126
1101522128
1201624130

Fence: compare input ranges

InputTested fromToPosts needed: low inputPosts needed: high inputSwing
Post spacing (ft)7916133 (21%)
Fence length (ft)9011013152 (14%)
Picket width (in)56.114140
Gap between pickets (in)0.450.5514140
Rails per section1314140

Fence: individual input comparisons

InputValuePosts neededPickets neededRails needed
Fence length (ft)801116120
901318124
1001420126
1101522128
1201624130
Post spacing (ft)61820134
71620130
81420126
91320124
101120120
Picket width (in)4.41424526
51422126
5.51420126
6.11418426
6.61417026
Gap between pickets (in)0.41420426
0.451420226
0.51420126
0.551419926
0.61419726
Rails per section0142010
11420113
21420126
31420139
41420152

Fence: combined input changes

Fence length (ft) / Post spacing (ft)6810
8015119
90161310
100181411
110201512
120211613

Fence: which assumptions move the result?

Fence: Posts needed as Post spacing (ft) changesPosts needed starts at 18. Moving Post spacing (ft) from 6 to 10 changes it to 11, with Fence length (ft) 100; Picket width (in) 5.5; Gap between pickets (in) 0.5; Rails per section 2 kept fixed.6187168149131011
Chart quantityDisplayed settings
Post spacing (ft)6 → 10
Posts needed18 → 11
Fence length (ft)100
Picket width (in)5.5
Gap between pickets (in)0.5
Rails per section2
Fence: Posts needed as Fence length (ft) changesPosts needed starts at 11. Moving Fence length (ft) from 80 to 120 changes it to 16, with Post spacing (ft) 8; Picket width (in) 5.5; Gap between pickets (in) 0.5; Rails per section 2 kept fixed.80119013100141101512016
Chart quantityDisplayed settings
Fence length (ft)80 → 120
Posts needed11 → 16
Post spacing (ft)8
Picket width (in)5.5
Gap between pickets (in)0.5
Rails per section2

Fence: values and definitions

Quantity and definitionValue used
Fence length (ft)100
Post spacing (ft) — Enter spacing from the actual design; eight feet is an example.8
Picket width (in)5.5
Gap between pickets (in) — Use 0 for a solid privacy fence.0.5
Rails per section — Enter the rail count from the actual fence design.2
Posts needed14
Pickets needed201
Rails needed26

Fence: half and double Post spacing (ft)

Post spacing (ft)Posts needed
426
814
168

Home & Construction calculators: Drywall Calculator, Paver Calculator, Wallpaper Calculator, Carpet Calculator, Rainwater Harvesting Calculator, Cubic Feet, Yards and Meters Calculator.

A fence is a run of sections with a post at each end, so posts always outnumber sections by one. A 100-foot run at 8-foot spacing needs 13 sections and 14 posts. Pickets depend on width plus gap: 5.5-inch boards with half-inch gaps need 200 across the run.

Rails multiply by the number of sections, which is where lumber counts climb.

Count gates and corners separately. Each adds posts and changes the section count, so the total here is for a straight run only.

Estimate post-hole concrete on the material volume and cubic feet calculators, pickets by area on the square footage page, and paint or stain on the paint calculator. The perimeter of a lot comes from the rectangle area calculator, and the acreage page relates lot size.

Is posts = sections + 1 valid for a closed fence loop?

No. It describes one open run with a post at each end. A closed loop can share its first and last support, while gates, corners and disconnected runs require a layout-specific count.

Should I simply add a post for every corner and gate?

Draw the layout and count shared supports. A corner or gate can replace a support already counted, so adding a fixed number to every feature can overcount or undercount posts.

How far apart should fence posts be?

Spacing is a design input. The fence system matters. So do height, posts, soil and loading.

Six-foot and eight-foot bays are quantity scenarios. Neither is a universal structural maximum. Gates and corners require their own layout, and shorter spacing alone does not establish that an installation satisfies the actual project design.

How many posts do I need for 100 feet of fence?

For one open, straight 100-foot run with bays no longer than an assumed 8 feet, ceiling(100 ÷ 8) gives 13 bays and 14 end-to-end posts. Draw the actual layout. Shared corners and gates change which posts serve adjoining bays, so adding one post for every feature can double-count supports.

How deep should posts be set?

Set depth follows the fence manufacturer’s or project designer’s specification and applicable local requirements. A one-third-length assumption is only a quantity scenario. Soil, frost depth, wind exposure, post dimensions and gate loads affect the footing; a material-count calculator cannot determine an adequate foundation for every site.