Lumber & Framing
Updated Apr 20, 2026

Fence Calculator

Calculate posts, rails, boards, pickets, and concrete needed for privacy, picket, and ranch rail fence projects.

How to Calculate Fence Materials

Fence material estimation begins with the total linear footage and fence style. The number of posts, rails, and boards all depend on your chosen design, post spacing, and fence height.

Posts Needed Formula

Fence posts are the structural backbone. Calculate the number of posts based on total fence length and your chosen spacing:

Posts=Total LengthftPost Spacingft+1

Fence Boards Formula

The number of boards varies by fence style. For a privacy fence with no gaps between boards, and for a picket fence with spacing between each board:

Boardsprivacy=Lengthft×12Board Widthin
Boardspicket=Lengthft×12Board Widthin+Gapin

Post Spacing and Depth

Fence HeightPost LengthHole DepthMax Spacing
4 ft6 ft24"8 ft
5 ft7 ft24"8 ft
6 ft8 ft30"8 ft
8 ft10 ft36"6 ft

Fence Style Comparison

  • Privacy fence - boards placed side by side with no gaps, typically 6 ft tall with 3 horizontal rails per section
  • Picket fence - boards spaced 2 to 3 inches apart, usually 3 to 4 ft tall with 2 rails per section
  • Ranch / split rail - horizontal rails only with no vertical boards, 2 to 4 rails per section, best for property boundaries and livestock

Concrete Per Post

Each fence post should be set in concrete for stability. A standard post hole is 3 times the post width in diameter and one-third the total post length deep. For a typical 4" × 4" post in a 10" diameter hole:

  • 4 ft fence (24" deep hole) - approximately 0.7 bags (50 lb) per post
  • 6 ft fence (30" deep hole) - approximately 1.0 bags (50 lb) per post
  • 8 ft fence (36" deep hole) - approximately 1.3 bags (50 lb) per post
Property Line Setback Rules
Most municipalities require fences to be set back 2 to 6 inches from the actual property line. Building a fence directly on or over the property line can result in forced removal at your expense. Always verify your property boundaries with a survey and check local setback requirements before digging post holes.
Gate Planning
Plan gate locations before setting posts. Gate posts need to be stronger - use 6" × 6" posts or double 4" × 4" posts for gates wider than 4 feet. Set gate posts 6" deeper than line posts and add extra concrete for stability.

Frequently Asked Questions