ProjectSums

Fence calculator

This calculator answers how many posts, rails, and pickets a fence run needs, and how much concrete goes in each post hole.

Calculator

ft
ft

Default 8 ft. 6 ft is the other common bay.

Spacing preset

ft

Up to 4 ft uses 2 rails. 5–8 ft uses 3 rails.

Added to the post count.

in

Default 5.5 in, the actual width of a nominal 1×6.

in

0 for a privacy fence.

%

Default 5% (the ×1.05 in the formula).

in

Default is 3 × the nominal post width. A 4×4 is a 12 in hole.

in

Default is 1/2 the above-ground height. Go below your frost line.

Result

7

posts

Sections
6
Rails (2 per section)
12
Pickets to buy
111
Concrete per post
1.40 ft³
Fast-Setting 50 lb bags per post
4
Concrete Mix 80 lb bags per post
3
Concrete for every post
9.80 ft³
Fast-Setting bags for every post
27
Hole depth should be 1/3 to 1/2 the above-ground height, and below your frost line.

Shopping list for this project

You need about 7 posts.

Materials: 7 posts, concrete for the posts, rails and pickets (buy locally).

Tools that help

As an Amazon Associate I earn from qualifying purchases.

More tools →

Sponsored / Amazon Associate picks

Tools after you estimate

ProjectSums may earn from Amazon qualifying purchases. Calculators stay free; these are not brand endorsements. Educational only.

All labeled picks

How this calculator works

Sections = ceil(length / spacing). Spacing defaults to 8 ft; 6 ft is the other common bay. Posts = sections + 1 + gates + extra corners. Rails = sections × 2 for a fence up to 4 ft tall, or sections × 3 for a fence 5–8 ft tall.

Pickets = ceil(length in inches / (picket width + gap)) × 1.05, then rounded up to a whole picket. The default picket is 5.5 in wide with a 0 in gap, which is a privacy fence. The 5% is editable.

Hole diameter defaults to 3 × the nominal post width, so a 4×4 calls for a 12 in hole. Depth defaults to ½ the above-ground height. The usual range is ⅓ to ½, and the hole should go below your frost line. Concrete per post, in cubic feet, is π × (diameter / 24)² × depth in feet − post area × depth. A 4×4 is 3.5×3.5 in, which is 0.0851 ft². A 6×6 is 0.2101 ft². Bags = ceil(net volume / yield). QUIKRETE Fast-Setting 50 lb yields 0.375 ft³. Concrete Mix 80 lb yields 0.60 ft³.

Source: QUIKRETE “Setting Posts” guide and Fast-Setting data sheet.

Worked example (illustrative). A 48 ft fence at 8 ft spacing and 4 ft high is 6 sections, 7 posts, 12 rails, and 111 pickets. A 4×4 post in a 12×24 in hole = 1.40 ft³ = 4 Fast-Setting bags.

FAQ

Why is the post count one more than the number of sections?

Each section sits between two posts, and the two ends of the fence each need their own post. Ten sections need eleven posts if it is one straight run. A closed rectangle shares corner posts, which is a different count.

Does nominal board width equal coverage?

No. A board sold as a 1×6 is typically about 5½ inches wide. Use the actual face width plus any gap. Using the nominal width under-buys pickets.

How do I estimate concrete for the posts?

This page does it. Diameter defaults to three times the nominal post width, and depth defaults to half the above-ground height. The concrete volume subtracts the post. A 4×4 in a 12×24 in hole is the worked example. Change the depth if your frost line is deeper.

Can this handle a slope?

The board count follows the run length you measure along the fence line. A slope does not change post count if spacing is measured horizontally, but it can change rail length and picket height. Enter the style you will build, and check a sloped layout on site before you cut everything.

Embed this calculator

Free to use on your site. Please keep the credit link.

Preview: open the embed · How embedding works

By ProjectSums Editors · Reviewed against manufacturer data and building-code references · Last updated October 4, 2026

Estimates only. Check product labels, manufacturer instructions and local building codes before you buy or build.