Fence Material Calculator

Count posts, rails, and pickets for a straight fence run. Based on length, post spacing, and picket dimensions.

Assumptions

  • Straight fence line on flat ground.
  • Posts at each end and every spacing interval.
  • Pickets are uniform width with consistent gap.
  • Corner, gate, and terminal posts may need extra hardware not counted here.
  • Post spacing typically 6–8 ft for wood privacy fence.
Formula
Sections = ceil(fence length ÷ post spacing). Posts = sections + 1. Pickets = ceil(section length ÷ (picket width + gap)) × sections. Rails = sections × rails per section.

100 ft fence, 8 ft post spacing, 5.5 in pickets

  1. Sections = 100 ÷ 8 = 12.5 → 13 sections. Posts = 14. Picket spacing ≈ 5.625 in each. ~17 pickets per 8 ft section × 13 ≈ 221 pickets. Rails = 13 × 3 = 39.

How do you calculate fence posts, rails, and pickets?

Divide each straight run by the maximum post spacing and round up to get sections; add one post at the end. Count each direction separately because a corner post can serve two runs. Rails equal sections × rails per section. Pickets depend on the clear section length divided by actual picket width plus the intended gap, rounded up. The calculator applies that layout consistently, but field-built end sections may be shorter than the selected maximum spacing.

Create a line-by-line takeoff instead of entering the entire perimeter as one straight run. Mark end, corner, gate, and change-of-grade posts on a sketch. Shared corner posts should appear once in the final total, while both gate jambs must be present. Preassembled panels use their specified post-center dimension, which may differ from the nominal panel width because brackets and posts occupy space.

How far apart should fence posts be?

Six to eight feet on center is common for component-built wood privacy fences, and Lowe's current installation guidance gives that typical range [1]. Product instructions, panel width, rail length, fence height, soil, wind exposure, frost depth, and locally adopted rules can require a different spacing. Closer posts can reduce rail span but do not by themselves prove the fence is adequate for wind.

Measure spacing horizontally and from post center to post center unless the product says otherwise. Do not lay out every hole before confirming the actual gate frame and panel dimensions. On slopes, a stepped panel fence is measured horizontally; a component fence that follows grade may use sloped rails. This calculator assumes one spacing and a straight, level run, so calculate slope segments separately.

How many pickets do you need for a privacy fence?

For a 96 in section using actual 5.5 in pickets with a 1/8 in gap, each module is 5.625 in and 96 ÷ 5.625 = 17.07. Rounding up gives 18 pickets if the full clear width truly is 96 in. In practice, posts occupy part of an 8 ft center-to-center bay, so measure the clear rail span or use the calculator's resulting section length consistently. A board-on-board fence needs a separate overlap layout and more boards than a single flat row.

Use actual measured picket width, not the nominal label. For a spaced decorative fence, the chosen gap changes privacy and count. For a solid privacy line, allow the movement recommended for the wood or composite product instead of forcing wet boards tightly together. Count caps, trim boards, kick boards, lattice, and fasteners separately because they are not pickets.

How do gates and corners change a fence material estimate?

A gate replaces part of the ordinary picket-and-rail run and normally needs dedicated hinge and latch posts, framing, hinges, latch, stop, and clearance. Subtract the planned gate opening from the fence length before calculating ordinary sections, then add the gate assembly from its manufacturer's schedule. Wide or double gates may need engineered posts or hardware and should not be inferred from standard line posts.

Every change in direction needs a corner or terminal condition. End posts, corner posts, and gate posts may be larger or differently reinforced than line posts. Before digging, confirm property boundaries, easements, permits, setbacks, height restrictions, and utility marking. The national 811 service directs excavators to request utility marks before digging [2]; private lines may require separate locating.

How many materials are needed for a 164 foot fence with one gate?

Suppose the total line is 164 ft with one 4 ft gate, leaving 160 ft of ordinary fence. At an 8 ft maximum spacing, 160 ÷ 8 = 20 sections. A simple straight run needs 21 structural post positions, but the gate layout may replace two of them with specified gate posts; reconcile the sketch instead of adding blindly. With three rails per section, order 60 rails before waste. At 17 pickets per 8 ft section, the field needs 340 pickets; with 7% for damage and selection, round up to 364 pickets. Add the complete gate kit and hardware separately.

If the line turns one corner, calculate both legs and share the corner post once. Legs of 96 ft and 68 ft at 8 ft maximum produce 12 and 9 sections. Separately they suggest 13 and 10 posts, but the shared corner makes 22 unique positions before gate adjustments. Geometry determines which posts serve more than one section.

Convert the takeoff to a purchase list only after selecting products. Rails may come in 8 or 16 ft lengths, posts in different treatment categories, and pickets by piece or bundle. Add approved fasteners, specified concrete or backfill, caps, field-cut preservative, and temporary bracing. Those quantities cannot be inferred safely from post count alone.

How to measure

Measure the fence line along the planned post centerline from end post to end post, following grade. Confirm post spacing matches your design and local wind-load habits.

How many fence posts are needed by length?

Straight run6 ft max spacing8 ft max spacingPosts at 8 ft
50 ft9 sections7 sections8 posts
100 ft17 sections13 sections14 posts
150 ft25 sections19 sections20 posts
200 ft34 sections25 sections26 posts

Simple straight run only: posts = rounded-up sections + 1. Add or reconcile corners and gates from a plan.

How many pickets fit in an 8 foot section?

Actual picket widthGapWidth per picketCount across 96 in
3.5 in0.125 in3.625 in27
3.5 in0.5 in4.0 in24
5.5 in0.125 in5.625 in18
5.5 in0.25 in5.75 in17

The clear space between posts may be less than 96 in on an 8 ft on-center layout; measure the actual section.

What fence materials should be counted separately?

ConditionExtra countWhyVerify
EndTerminal postFinishes a runCap and bracing
CornerCorner postServes two directionsRail attachment
GateTwo gate posts + kitHinge/latch loadsOpening clearance
SlopeSegment-specific railsStep or rack geometryPost length

Common mistakes

  • Forgetting gate posts and latch-side spacing.
  • Using nominal picket width without adding gap.
  • Not adding extra posts for changes in elevation or direction.

Frequently asked questions

How far apart should wood fence posts be?
Six to eight feet on center is a common planning range for component-built wood privacy fences. Product instructions, panel width, rail length, height, soil, frost, wind exposure, and local rules can require closer spacing. Measure horizontally from post center to post center unless the selected system specifies another layout.
How many fence posts do I need for 100 feet of fence?
A straight 100-foot run needs 14 posts when the maximum spacing is 8 feet. Divide 100 by 8, round 12.5 up to 13 sections, and add one end post. At a 6-foot maximum, it needs 17 sections and 18 posts. Corners and gates must be reconciled from the actual layout.
How many fence pickets fit in an 8-foot section?
About 18 actual 5.5-inch pickets fit across 96 inches with a 1/8-inch gap. The module is 5.625 inches, and 96 ÷ 5.625 = 17.07, which rounds up. Because an 8-foot on-center bay has posts occupying part of that width, measure the clear section before purchasing.
How many rails do I need for a privacy fence?
Multiply the number of fence sections by the specified rails per section. A 100-foot run divided into 13 sections needs 39 rails when each section uses three. Convert that count to purchasable rail lengths only after checking where joints land, because longer rails may span multiple posts in an approved layout.
Does the fence calculator include a gate?
No—the ordinary post, rail, and picket totals do not include a complete gate assembly. Subtract the planned gate opening from the standard fence run, then add the specified hinge post, latch post, frame, hinges, latch, stop, clearance, and bracing. Wide or double gates may need a design beyond standard line-post assumptions.
How do I calculate fence materials for a corner?
Calculate each straight leg separately and count the shared corner post only once. For 96-foot and 68-foot legs at 8-foot spacing, the runs produce 12 and 9 sections. Their separate post totals are 13 and 10, but sharing the corner leaves 22 unique post positions before gate adjustments.
How do I calculate fence materials on a slope?
Divide the slope into separately measured sections and choose either a stepped or racked layout before counting materials. Stepped panels are measured horizontally and can leave varying ground gaps; racked or component-built fences follow grade and change rail and picket cuts. The calculator's flat straight-run result remains a planning baseline, not a slope design.

Sources and references

Last updated:

  1. How to Build a Wood Fence Lowe's (2025)
  2. 811 Before You Dig Common Ground Alliance (2026)

Projects that use this calculator

Put this calculator on your site

Paste this into any page. The calculator works exactly as it does here, and the link below the frame is the attribution we ask for in return.

<iframe src="https://buildsitecalc.com/embed/en/fence-material" width="100%" height="720" style="border:1px solid #e2e8f0;border-radius:8px" loading="lazy" title="Fence Material Calculator"></iframe>
<p><a href="https://buildsitecalc.com/en/calculators/fence-material" target="_blank" rel="noopener">Fence Material Calculator</a></p>