How to Calculate Fence Materials
Successful fence planning starts with three core measurements: total fence length, post spacing, and fence height. Post spacing—typically 6 to 8 feet apart—directly affects how many posts you'll need. A longer span between posts reduces material costs but requires stronger posts to prevent sagging.
Once you input these values, the calculator automatically determines:
- Number of posts required (including corner and end posts)
- Fence sections needed between each pair of posts
- Total horizontal rails for structural support
- Pickets or boards required for the fence face
- Concrete volume for setting posts below the frost line
For picket fences, you'll also define picket width and spacing—the gap between adjacent pickets. These two dimensions combined determine how many pickets fit along your fence length.
Core Fence Calculations
These formulas account for the spacing and dimensions you provide. Post count includes both intermediate posts and endpoints. Rail calculations assume horizontal members are distributed evenly across all sections. Concrete volume formulas differ depending on whether you use square or round posts.
Posts = ⌈Fence length ÷ Post spacing⌉ + 1
Sections = ⌈Fence length ÷ Post spacing⌉
Rails = Rails per section × Sections
Pickets = ⌈Fence length ÷ (Picket width + Spacing)⌉
Post length = Fence height × 1.5
Concrete (round) = (π/4) × [(3D)² − D²] × (Post length/3) × Posts
Concrete (square) = (3W × 3T − W × T) × (Post length/3) × Posts
Fence length— Total perimeter or run you're enclosing, measured in feet or metresPost spacing— Distance between post centres; typically 6–8 ft (2–2.4 m)Fence height— Visible height of the finished fence above groundPost length— Total length of each post; buried portion is one-third of totalPicket width— Width of each vertical board or picketPicket spacing— Gap between adjacent picketsRails per section— Number of horizontal support beams (usually 2–3)D (round posts)— Diameter of a circular postW, T (square posts)— Width and thickness of a square or rectangular post
Why Post Spacing Matters
Post spacing is the single largest driver of material quantity and cost. A 300-foot fence with 6-foot spacing requires far more posts—and more concrete—than the same fence with 8-foot spacing. The trade-off is structural: tighter spacing (6 ft) suits tall fences (6–8 ft) and high-wind regions, while looser spacing (8 ft) works for short fences (3–4 ft) in sheltered areas.
Buried depth follows a standard rule: at least one-third of the post length must be underground. So a 4×4 post supporting a 6-foot-tall fence needs to be 9 feet long overall—3 feet buried and 6 feet above ground. Skipping this can lead to leaning or collapsed sections within a few seasons.
Common Mistakes to Avoid
Apply these insights to prevent costly rework and material waste.
- Ignoring local frost depth — Posts must extend below your region's frost line to prevent heave. In northern climates, this can mean 3–4 feet of burial, not the standard one-third. Check local building codes before finalizing post length.
- Underestimating picket overlap and waste — Pickets and boards aren't 100 % usable off the truck; cuts at corners, gates, and around obstacles generate 10–15 % waste. Order 10–15 % extra material to avoid mid-project shortages.
- Forgetting about gate openings — If your fence includes a gate, subtract its width from the picket count and adjust the rail layout. A 4-foot gate on a 100-foot fence reduces picket demand significantly but changes structural requirements.
- Mixing post types without recalculating — Round and square posts require different concrete volumes and burial depths. If you decide mid-project to switch from 4×4 to a round post, recalculate concrete needs—the volumes differ substantially.
Concrete Requirements for Stable Posts
Concrete is non-negotiable for long-term fence stability. The volume depends on post shape and the size of the hole—which is typically 3 times the post width or diameter on each side, creating a generous collar around the post.
For a 4×4 square post in a 6-foot-tall fence, you need approximately 0.32 cubic yards (4,608 cubic inches) of concrete per post. Round posts have a smaller footprint, reducing concrete demand. Always order concrete in whole bags or cubic yards; partial deliveries cost more and create waste. Pre-mixed bags work for small projects (under 10 posts); consider ready-mix concrete trucks for larger fences.