Fence Calculator
Enter your fence side by side and see the posts, rails, boards and concrete it takes.
Enter your fence side by side, with its gates, and see the posts, rails, boards or panels and bags of concrete it takes, drawn from above and in elevation. Add your own prices for a total.
Gates
Style
Height
Posts at most
More options3½ in posts · 5½ in boards · 3 rails · 3 ft in the ground · prices
Posts
Rails per section
QUIKRETE’s rule buries a third of the post and adds 6 in of gravel. Where the ground freezes, go below the frost line your building department gives.
Concrete bags
Your prices (optional, each)
ExampleYour fence
21posts
140 ft of fence with 1 gate: 19 sections between 21 posts, 57 rails and 299 boards.
Enter yours to see your result.
| Posts | 21 × 10 ft | 4×4; 2 corner, 2 end, 2 gate, 15 line |
|---|---|---|
| Rails | 57 × 8 ft | 3 a section |
| Boards | 299 × 6 ft | 1×6; butted |
| Gates | 1 × 4 ft | bought or built, with hinges and a latch |
| Concrete | 60 × 80 lb | 10½ in holes, +10% |
| Gravel | 6.3 cu ft | 6 in under each post |
Concrete per hole and bag sizes: post hole concrete calculator.
An estimate of materials to buy, not engineering or code advice. Check sizes with your supplier and local building department. Terms
My shopping list
Add each part of a job and print one list. It stays on this device.
How this works: 4 sources,
How this works
Method
Each side, less its gate openings, is split into equal sections no longer than the post spacing, with a post at every section end; neighbouring sides share their corner post. Boards and pickets are counted along every stretch with their gap (board on board as overlapping layers), panels one per section, rails per section. Post holes follow QUIKRETE’s rule (three times the post’s width across, a third of the post in the ground, 6 in of gravel) and the concrete bags its data sheet’s yields, with the NRMCA’s 10% extra.
Sources
- Setting Posts project sheet (QUIKRETE)
- QUIKRETE Concrete Mix (No. 1101) data sheet (QUIKRETE, revised October 2022)
- CIP 31, Ordering Ready Mixed Concrete (National Ready Mixed Concrete Association, 2023)
- Voluntary Product Standard PS 20-25, American Softwood Lumber Standard (dressed sizes, standard lengths) (National Institute of Standards and Technology, 2025)
How it’s tested
12 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Limits
An estimate of materials to buy, not engineering or code advice. Check sizes with your supplier and local building department.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: a fence of any shape drawn from above and in elevation, with posts, rails, boards, pickets or panels, gates and concrete.
Key facts
- A backyard fence of 40, 60 and 40 ft with a 4 ft gate and posts at most 8 ft apart takes 21 posts, 57 rails and 299 butted 1×6 boards for a 6 ft privacy fence.
- QUIKRETE’s instructions set a fence post a third of its length in the ground, in a hole three times its width across, on 6 inches of gravel.
- So a 6 ft fence wants 9 ft of post, 3 ft of it buried: a 4×4 (3½ in) in a 10½ in hole takes about 3 bags of 80 lb concrete with 10% extra.
- Neighbouring sides share a corner post, and every gate needs a post on each side of it.
Sources: QUIKRETE Setting Posts project sheet; QUIKRETE Concrete Mix data sheet; NIST PS 20-25 for dressed lumber sizes.
All 4 calculators
Posts · Fence styles
How the fence is counted
Walk the fence line and write down each straight side in order, with the gates on it. The calculator turns a corner between each side and the next, so the sides share their corner posts, and ticking “closes the loop” joins the last side back to the first for a fence all the way round. Gates split a side into pieces; each piece is divided into equal sections no longer than your post spacing, with a post at the end of every section, so the gate posts come out of the same count.
Then the infill. Boards on a privacy fence are counted along every piece, butted or with a gap; pickets the same with their gap; board on board in two overlapping layers; ready-made panels one per section. Rails run between posts, two or three or four a section as your design has them. For the example above that is 21 posts, 57 rails and 299 boards.
Every post goes in a hole of concrete, sized by QUIKRETE’s rule (three times the post’s width across, a third of the post in the ground, plus 6 in of gravel); the bags use the same yields as the concrete calculator. Prices are yours to enter: nothing here pretends to know what lumber costs where you live.
Sources
- QUIKRETE, Setting Posts project sheet
- QUIKRETE, QUIKRETE Concrete Mix (No. 1101) data sheet
- National Ready Mixed Concrete Association, CIP 31, Ordering Ready Mixed Concrete
- National Institute of Standards and Technology, Voluntary Product Standard PS 20-25, American Softwood Lumber Standard (dressed sizes, standard lengths)
Product names are trademarks of their owners; Binary Decimal is not affiliated with any of them. Their instructions and data sheets are cited for the figures printed in them.
Common questions
How do I calculate how much fence I need?
Measure each straight side, subtract the gate openings, and divide each stretch by the post spacing, rounding up, for the sections; add one post per stretch, and take off one post per shared corner. The calculator does it side by side and counts the boards, rails and concrete too.
How far apart should fence posts be?
Many wood fences use 8 ft, which suits 8 ft rails, and some 6 ft for a stiffer fence in wind or with heavy boards; panels set the spacing to their width plus a post. Your supplier or the panel maker’s instructions give theirs.
How much concrete per fence post?
For a 4×4 on a 6 ft fence, QUIKRETE’s rule gives a 10½ in hole 3 ft deep on 6 in of gravel: about 1.55 cu ft of concrete, 2.6 bags of 80 lb, or 2.8 with 10% extra. Round up per post if you mix hole by hole.
How many boards for a 6 ft privacy fence?
About 2.2 boards a foot with 1×6 boards (5½ in wide) butted edge to edge: 100 ft of fence takes about 219, before gates. Leave a gap and it takes fewer.
Related tools
- Concrete CalculatorConcrete, gravel, sand, soil and mulch for any shape you draw, as bags, tons or truckloads
- Board Foot CalculatorBoard feet and cost of a lumber list, plus cut lists for plywood and boards, studs and lumber sizes
- Square Footage CalculatorSquare feet of any room you draw, and the paint, tile, flooring, drywall or shingles to cover it