Skip to content
YardMath

Fence Calculator — Posts, Pickets, Rails & Concrete

Enter total fence length, post spacing, gate count, and fence style to get posts, rails, pickets, and concrete bags needed. Includes post hole sizing.

Reviewed October 2026 · by The YardMath Estimating Desk · How we calculate

Standard: 3.5 in cedar picket

Privacy: 0 in; picket: 0.375–1.5 in

Typically 2–3× post width (3.5 in post → 8 in hole)

Fence Takeoff
Line posts—
Gate posts (2 per gate)—
Total posts—
Rails (8 ft boards)—
Pickets—
Concrete per post—
Total concrete (60 lb bags)—
Recommended post length—
Before you dig: Call 811 (national Dig Safe hotline) at least 3 business days before digging post holes. Underground utility lines are commonly found at post-depth levels.

How to Calculate Fence Materials

The key formula for posts: total fence length ÷ post spacing, plus 1 for the final end post, plus 2 per gate. For a 120 ft fence at 8 ft spacing: 120 ÷ 8 = 15 spans + 1 = 16 line posts. Add 2 gate posts for each gate.

Post Depth Rule

The standard rule is 1/3 of total post length below grade, with a minimum of 24 inches. In freeze-thaw climates, the footing must extend below the frost line — which ranges from 0 inches in deep South to 60+ inches in the upper Midwest. A post that heaves out of a shallow footing will tilt in the first hard winter.

Fence heightMin. burial depthPost length to buy
4 ft2 ft6 ft
5 ft2 ft7 ft
6 ft2 ft8 ft
7 ft2.5 ft10 ft
8 ft3 ft12 ft

Concrete per Post Hole

Hole sizeHole depth60 lb bags
6 in diameter24 in1 bag
8 in diameter24 in2 bags
8 in diameter36 in3 bags
10 in diameter36 in4 bags
12 in diameter48 in7 bags

Based on Quikrete 60 lb bag yield of 0.45 cu ft. Sources: Quikrete product data

Frequently asked questions

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

At 8-foot post spacing: 100 ÷ 8 = 12.5, round up to 13 spans, plus 1 end post = 14 posts. At 6-foot spacing: 100 ÷ 6 = 16.7 → 18 posts (including both ends). Always add 1 post per gate side.

How deep should fence posts be set?+

The standard rule is that post depth equals 1/3 of the total post length, with a minimum of 2 feet and the footing extending below the local frost line. A 6-foot fence post (for a 6-foot privacy fence above grade) should be at least 8 feet total with 2 feet in the ground.

How many bags of concrete per fence post?+

One 60 lb bag of Quikrete (0.45 cu ft yield) is enough for a 6-inch hole at 24 inches deep (≈ 0.39 cu ft). An 8-inch hole at 24 inches requires 2 bags of 60 lb (≈ 0.70 cu ft). An 8-inch hole at 36 inches requires 3 bags. The calculator computes this automatically based on hole diameter and depth.

How many pickets do I need for 100 feet of privacy fence?+

A standard 3.5-inch cedar privacy picket with a 3/8-inch gap uses one picket per 3.875 inches = about 310 pickets per 100 linear feet. The calculator adjusts for picket width and gap.

How much fence do I need for my yard?+

Measure the perimeter of the area you want to enclose and subtract gate widths. Most residential lots require 100–300 linear feet for a backyard fence. Use a property survey or measure each side with a measuring wheel or tape for accuracy.

Guides for this calculator

Related calculators