How to Calculate Fence Materials: Posts, Rails, and Pickets
Introduction
A fence’s material list flows from one number: how many posts it needs. Everything else — the number of rail sections and the total picket count — is derived from post placement. This guide walks through how professional builders turn a simple linear footage measurement into a complete materials list for a wood or vinyl fence.
For a complete suite of fencing estimating tools, visit the fencing calculators hub .
Step 1: Calculate Post Count
Posts are spaced along the fence run and the count is rounded up to the nearest whole post. Most wood and vinyl fences space posts 6 to 8 feet apart on center — wider spacing needs stronger rails or posts to avoid sagging between supports, so don’t stretch spacing just to save on post count.
Formula:
Number of sections = Fence length ÷ Post spacing (round up) Total posts = Number of sections + 1
Example:
100 ft fence, 8 ft post spacing.
Sections: 100 ÷ 8 = 12.5 → round up to 13 sections Posts: 13 + 1 = 14 posts
For help with this calculation, use the Fence Materials Calculator .
Step 2: Calculate Rail Sections
Once posts are placed, the gaps between them become “sections,” and each section gets the same number of horizontal rails.
| Fence Type | Height | Rails per Section |
|---|---|---|
| Privacy fence | 6 ft | 3 rails (top, middle, bottom) |
| Privacy fence | 4 ft | 2–3 rails |
| Picket fence | Under 4 ft | 2 rails |
| Split rail | Any height | 2–3 rails |
Formula:
Rail sections = Number of sections × Rails per section
Example:
13 sections, 3 rails per section.
13 × 3 = 39 rails
Step 3: Calculate Picket Count
Pickets are calculated by dividing the total linear footage by each picket’s footprint, including its gap — picket width plus gap width gives the total space one picket occupies along the run. Use a gap of 0 for a solid privacy fence with no visible spacing between boards.
Formula:
Picket footprint = Picket width + Gap width (in feet) Pickets needed = Fence length ÷ Picket footprint (round up)
Example:
100 ft fence, 5.5 in pickets with a 0.25 in gap.
Picket width: 5.5 ÷ 12 = 0.458 ft Gap width: 0.25 ÷ 12 = 0.021 ft Footprint: 0.458 + 0.021 = 0.479 ft Pickets: 100 ÷ 0.479 = 209 pickets
Worked Example
The project:
100 ft fence
8 ft post spacing
3 rails per section
5.5 in pickets with a 0.25 in gap
Step 1: Posts
Sections: 100 ÷ 8 = 12.5 → 13 sections Posts: 13 + 1 = 14 posts
Step 2: Rails
13 sections × 3 rails = 39 rails
Step 3: Pickets
Picket footprint: (5.5 + 0.25) ÷ 12 = 0.479 ft Pickets: 100 ÷ 0.479 = 209 pickets
Common Mistakes to Avoid
Spacing posts too far apart to save material, which weakens the fence and risks sagging rails
Forgetting the +1 post when converting number of sections to number of posts
Not including the picket gap in the picket footprint calculation, which under-orders pickets
Using 2 rails on a tall privacy fence that really needs 3 for adequate support
How This Relates to Other Fencing Calculations
Post count is the foundation for several other fencing estimates:
Post length: Based on fence height and burial depth (see post length guide )
Post concrete: Based on hole size and post volume (see post concrete guide )
Gate hardware: Based on gate count and width (see gate hardware guide )
Stain coverage: Based on fence area (see stain coverage guide )
Cost: Based on materials and labor (see fence cost guide )
For projects requiring concrete, see also the concrete calculators hub .
Important Limitations
Estimates Are Not Construction Specifications
This guide provides estimating methodology. Actual material requirements can vary based on fence design, local codes, and site conditions. Always verify final quantities with your supplier or contractor.
Frequently Asked Questions
How far apart should fence posts be spaced?
Most wood and vinyl fences space posts 6 to 8 feet apart on center. Wider spacing needs stronger rails or posts to avoid sagging.
How many rails does a privacy fence need?
A 6-foot-tall privacy fence typically uses 3 horizontal rails (top, middle, bottom) for adequate support, while shorter picket fences under 4 feet often only need 2.
How many pickets do I need for a fence?
Picket count depends on picket width and spacing. For standard 5.5″ pickets with 0.25″ gap, you need approximately 14 pickets per 8-foot section.
What’s the difference between line posts and terminal posts?
Line posts are used along straight fence runs. Terminal posts (end, corner, and gate posts) are larger and require more concrete. See the fencing materials guide for more details.
Ready to calculate your fence materials? Use the free Fence Materials Calculator .
Explore More Fencing Resources
This guide covered the basics of fence material estimation. For a complete suite of estimating tools, visit our fencing calculators hub — where you’ll find dedicated calculators for materials, cost, post length, post concrete, chain link, vinyl panels, gate hardware, and stain coverage. Each calculator is paired with a full guide walking you through the math, common mistakes, and project-specific considerations.
