Fence calculator
This calculator answers how many posts, rails, and pickets a fence run needs, and how much concrete goes in each post hole.
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.
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.
Related calculators
- ConcreteThis calculator answers how much concrete a slab, footing, or post hole needs, in cubic yards for ready-mix and in whole bags for bagged mix.
- DeckThis calculator answers how many deck boards and joists to buy, and about how many screws that layout uses. It does not size spans.
- Mulch, soil & gravelThis calculator answers how many cubic yards — or bags — of mulch, topsoil, or gravel a bed needs at the depth you plan to spread.
- Renovation budgetThis calculator answers what a project costs from the allowances you enter, and what the monthly payment would be if you borrowed part of it.
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.