Free online fence calculator
A fence estimate starts with post spacing and works out from there. Enter your fence length, height, style, and gate count to get posts, rails, pickets or rolls, and the concrete.
Saved to favorites
Your favorites live on the home page, under Your favorites. They're saved only on this device & browser — open the site on your phone or in another browser and you won't see them there. No account, no server.
How to use
- Enter total fence length and height in feet.
- Set your post spacing (8 ft is standard).
- Enter the number of gates.
- Choose your fence type.
- Read posts, concrete, rails, pickets or rolls, and gate posts.
Formulas
postsNeeded = ceil(fenceLength / postSpacing) + 1
gatePostsNeeded= gateCount × 2
concreteBags = ceil((postsNeeded + gatePostsNeeded) × 0.5)
Privacy / Picket:
railsPerSpan = ceil(fenceHeight / 2)
spans = ceil(fenceLength / postSpacing)
rails = ceil(spans × railsPerSpan × wasteMultiplier)
pickets = ceil(fenceLength × 3 × wasteMultiplier)
Split-rail:
railsPerSpan = 2 (height ≤ 3 ft) or 3 (taller)
rails = ceil(spans × railsPerSpan × wasteMultiplier)
Chain-link:
rolls = ceil(fenceLength × wasteMultiplier / 50)
Worked example
150-ft privacy fence, 6-ft height, 8-ft post spacing, 1 gate, 10% waste:
postsNeeded = ceil(150/8) + 1 = 19 + 1 = 20
gatePostsNeeded= 1 × 2 = 2
concreteBags = ceil(22 × 0.5) = 11 bags
railsPerSpan = ceil(6/2) = 3
spans = ceil(150/8) = 19
rails = ceil(19 × 3 × 1.10) = 63 rails
pickets = ceil(150 × 3 × 1.10) = 495 pickets
Notes
- Set posts 1/3 to 1/2 their total length into the ground — a 9-ft post gives 6 ft above grade.
- In frost-heave regions, bury posts below the frost line (typically 42–48 in in the northern US).
- Gate posts need to be at least one size larger than line posts to handle the swing load.
Frequently asked
How many fence posts do I need?
How much concrete do I need per post?
How many pickets per linear foot of fence?
What is the best post spacing for a fence?
How is chain-link fence measured?
How do I share my fence calculation?
Embed this calculator
Add this free calculator to your own site. Copy the snippet — it works anywhere you can paste HTML, and stays in sync with this page.
Related calculators
- Concrete calculator
Calculate bags or yards of concrete for the post footings.
- Lumber calculator
Estimate lumber board feet for fence rails and stringers.
- Gravel calculator
Calculate gravel for drainage around fence posts.
- Square footage calculator
Measure yard area for planning fence runs and gates.
- Paint calculator
Estimate paint or stain for your finished fence.