Fence Calculator
Enter the fence length, the height, the post spacing and the gates, and pick a style. You get the posts, rails, pickets or panels, bags of concrete and fasteners for a wood privacy, picket, chain link or vinyl panel fence.
The whole line, gate openings included.
Changing this resets the post depth below.
The farthest apart posts go, center to center.
Actual width. A 1x6 is 5.5 in.
0 for a solid privacy fence.
For splits, knots and cuts.
Actual size. A 4x4 is 3.5 in. The hole is three times this.
Starts at half the fence height. Go below your frost line.
Leave any price at 0 to skip it.
Printed on the saved result.
Fence material estimate
Your fence materials
Posts to set
14 posts
For 96 ft of 6 ft wood privacy fence, posts no more than 8 ft apart.
Fence boards
231
Concrete, 50 lb bags
53
| Material | Quantity |
|---|---|
| Fence to build100 ft less 1 gate of 4 ft | 96 ft |
| Posts12 sections up to 8 ft, plus ends and gate posts. At least 9 ft long | 14 posts |
| Rails, 2x43 per section for a 6 ft fence, each 8 ft | 36 rails |
| Fence boards5.5 in wide, 0 in gap, 10% extra | 231 boards |
| Nails or screws2 per board at each rail, 4 per rail into the posts | 1,530 |
| Concrete10.5 in holes, 36 in of post in the ground, 19.6 cu ft | 53 50 lb bags |
| Gravel base6 in under each post, so dig 42 in deep | 4.2 cu ft |
How we calculated this
Posts. The fence line minus the gate openings, divided by your post spacing and rounded up, gives the sections. Posts are the sections plus one, plus one more for each gate, because a gate needs a post on both sides. A fence that closes on itself needs one post fewer.
Rails and pickets. Two rails per section for fences under 6 ft, three from 6 ft and four from 8 ft. Pickets are the fence length divided by the picket width plus the gap, plus your extra allowance. Fasteners are 2 per picket at each rail, plus two at each end of every rail.
Concrete. QUIKRETE's guide digs the hole 3times the post width, puts a third of the post's overall length in the ground on 6 in of gravel, and stops the concrete 3 to 4 in below the top. The volume here is that hole, minus the post, filled to 3.5 in below grade, at 0.375 cu ft per 50 lb bag. A wider or bell-shaped hole takes more.
What this is not. A layout. It does not place posts around slopes, steps or obstacles, and it leaves out gates, hinges, latches and post caps. Frost depth, wind and local rules can call for deeper or larger footings, and property lines and utilities need checking before you dig.
Sources for the figures used, all opened on November 20, 2026:
- QUIKRETE, Setting Posts project guide: hole size, depth and gravel base, checked 2026-11-20
- QUIKRETE, Fast-Setting Concrete Mix No. 1004 data sheet: yield per bag, checked 2026-11-20
- Wood Fencing: Planning and Installing Your Fence, instruction sheet distributed by The Home Depot (rails by fence height), checked 2026-11-20
- The American Fence Company, How to build a solid wood fence (nails per picket and rail), checked 2026-11-20
- Inch Calculator, Fence Calculator (post spacing, picket settings, extra lumber), checked 2026-11-20
- Chain Link Fence Manufacturers Institute, Product Manual CLF-PM0610 (updated March 2017), checked 2026-11-20
Example: 100 ft of 6 ft wood privacy fence with one gate
A 100 ft fence line with one 4 ft gate leaves 96 ft of fence. At 6 ft tall with posts 8 ft apart, a wood privacy fence takes 14 posts, 36 rails, 231 fence boards 5.5 in wide, about 1,530 nails or screws and 53 bags of 50 lb fast-setting concrete.
Example fence materials
Posts to set
14 posts
For 96 ft of 6 ft wood privacy fence, posts no more than 8 ft apart.
Fence boards
231
Concrete, 50 lb bags
53
| Material | Quantity |
|---|---|
| Fence to build100 ft less 1 gate of 4 ft | 96 ft |
| Posts12 sections up to 8 ft, plus ends and gate posts. At least 9 ft long | 14 posts |
| Rails, 2x43 per section for a 6 ft fence, each 8 ft | 36 rails |
| Fence boards5.5 in wide, 0 in gap, 10% extra | 231 boards |
| Nails or screws2 per board at each rail, 4 per rail into the posts | 1,530 |
| Concrete10.5 in holes, 36 in of post in the ground, 19.6 cu ft | 53 50 lb bags |
| Gravel base6 in under each post, so dig 42 in deep | 4.2 cu ft |
How we calculated this
Posts. The fence line minus the gate openings, divided by your post spacing and rounded up, gives the sections. Posts are the sections plus one, plus one more for each gate, because a gate needs a post on both sides. A fence that closes on itself needs one post fewer.
Rails and pickets. Two rails per section for fences under 6 ft, three from 6 ft and four from 8 ft. Pickets are the fence length divided by the picket width plus the gap, plus your extra allowance. Fasteners are 2 per picket at each rail, plus two at each end of every rail.
Concrete. QUIKRETE's guide digs the hole 3times the post width, puts a third of the post's overall length in the ground on 6 in of gravel, and stops the concrete 3 to 4 in below the top. The volume here is that hole, minus the post, filled to 3.5 in below grade, at 0.375 cu ft per 50 lb bag. A wider or bell-shaped hole takes more.
What this is not. A layout. It does not place posts around slopes, steps or obstacles, and it leaves out gates, hinges, latches and post caps. Frost depth, wind and local rules can call for deeper or larger footings, and property lines and utilities need checking before you dig.
Sources for the figures used, all opened on November 20, 2026:
- QUIKRETE, Setting Posts project guide: hole size, depth and gravel base, checked 2026-11-20
- QUIKRETE, Fast-Setting Concrete Mix No. 1004 data sheet: yield per bag, checked 2026-11-20
- Wood Fencing: Planning and Installing Your Fence, instruction sheet distributed by The Home Depot (rails by fence height), checked 2026-11-20
- The American Fence Company, How to build a solid wood fence (nails per picket and rail), checked 2026-11-20
- Inch Calculator, Fence Calculator (post spacing, picket settings, extra lumber), checked 2026-11-20
- Chain Link Fence Manufacturers Institute, Product Manual CLF-PM0610 (updated March 2017), checked 2026-11-20
How to calculate fence materials
A fence is a row of posts with something hung between them, so every count starts from the length of the line and the post spacing. Measure the whole line, gates included, then take the gate openings out.
The formulas:
- Fence to build = fence line minus (gates x gate width).
- Sections = fence to build divided by post spacing, rounded up.
- Posts = sections + 1, plus 1 for each gate.
- Rails = sections x rails per section (2 under 6 ft, 3 at 6 ft, 4 at 8 ft).
- Pickets = fence to build in inches divided by (picket width + gap), plus extras.
- Concrete = posts x (hole volume minus post volume), divided by the yield of one bag.
A worked example
A back yard needs 100 ft of 6 ft wood privacy fence with one 4 ft gate. That leaves 96 ft of fence. At 8 ft spacing it is 12 sections, so 13 posts plus 1 for the gate is 14 posts. A 6 ft fence takes 3 rails a section, so 36 rails. Boards 5.5 in wide with no gap come to 210, and 231 with 10% extra. Two nails per board at each of three rails, plus four per rail, is 1,530 nails or screws.
Each post is a 4x4, 3.5 in actual, set 36 in deep in a 10.5 in hole. The hole minus the post, filled to 3.5 in below the top, holds 1.4 cubic feet. Fourteen posts need 19.6 cubic feet, which is 53 bags of 50 lb fast-setting mix.
What changes by style
- Wood privacy. Boards butt together with no gap, so the board count is the highest of any style. A 6 ft fence takes three rails a section.
- Wood picket. Pickets are narrower and spaced, so the count drops by about half at equal picket and gap widths. Shorter fences take two rails.
- Chain link. Posts go up to 10 ft apart, so there are fewer of them, but every end, corner and gate post is a terminal post with its own fittings. Count corners carefully: each one takes two sets.
- Vinyl panel. Panels come in fixed widths and the posts are set to match, so measure the panel before you dig. A run that does not divide evenly ends in a cut panel.
Posts and concrete
The hole is where fence estimates drift. QUIKRETE's guide digs it three times the post width, which for a 4x4 is a 10.5 in hole, and stops the concrete 3 to 4 in below the top so soil can cover it. A wider auger, a bell-shaped bottom or loose soil all raise the bag count, and a narrower hole lowers it. The calculator shows the hole size and the cubic feet so you can check it against how you dig.
Gate posts carry the weight of the gate and the pull of the latch. The wood fencing instruction sheet says a fence is stronger when end, corner and gate posts are set at least 6 in deeper than the others.
Before you buy
- Check the property line and any height limit for your street.
- Call 811 to have buried utilities marked before you dig.
- Walk the line for slopes. A stepped fence on a slope can need longer posts and more sections than a flat one.
- Decide the gate hardware first, because the opening width depends on the hinges and latch.
Pricing a fence job
For a fence contractor, this list is the material side of the quote. Enter your supplier's prices and the calculator totals the posts, rails, infill and concrete. Add tear-out, haul-away, gates and labor per foot, then put it in front of the customer with the quote template.
Common Questions
How many fence posts do I need?
Divide the fence length by the post spacing, round up and add one for the last post, then add one more for each gate. A 100 ft line with one 4 ft gate leaves 96 ft of fence. At 8 ft spacing that is 12 sections and 13 posts, plus one for the gate, so 14 posts. A fence that closes on itself needs one fewer.
How far apart should fence posts be?
For a wood fence, 8 ft center to center is the typical spacing, and it is the default here. Chain link line posts go no more than 10 ft on center under the Chain Link Fence Manufacturers Institute's product manual. Vinyl posts are set by the panel: the spacing is the panel width. Closer spacing makes a stronger fence anywhere wind is a concern.
How deep should a fence post be?
QUIKRETE's guide puts one third of the post's overall length in the ground, on top of 6 in of gravel. For a 6 ft fence that is a 9 ft post with 3 ft in the ground, in a hole dug 3 ft 6 in deep. Local rules can ask for more, and in cold climates the bottom of the post should be below the frost line.
How many bags of concrete do I need per fence post?
It depends on the hole. QUIKRETE's guide makes the hole three times the post width. For a 4x4 post (3.5 in actual) set 36 in deep, that is a 10.5 in hole holding about 1.4 cubic feet of concrete around the post, which is just under four 50 lb bags of fast-setting mix at 0.375 cubic feet a bag. Narrower holes and shallower posts take less.
How many pickets do I need for a fence?
Divide the fence length in inches by the picket width plus the gap. For 96 ft of privacy fence with 5.5 in boards and no gap, 1,152 in divided by 5.5 is 210 boards, and 231 with 10% extra for splits and cuts. For a spaced picket fence with 3.5 in pickets 3.5 in apart, the same 96 ft takes 165 pickets before extras.
How many rails does a fence need?
Two rails per section for fences under 6 ft, three for a 6 ft fence and four for an 8 ft fence, according to the wood fencing instruction sheets distributed by The Home Depot and Lowe's. Rails sit about 4 in from the top and bottom of the pickets to keep them from moving. Multiply the rails per section by the number of sections.
What do I need for a chain link fence besides posts and fabric?
Top rail, sold in 21 ft lengths, and a set of fittings at every post where the fabric ends. Each of those takes a tension bar, tension bands no more than 12 in apart, a rail end and a brace band. Line posts take a loop cap and ties no more than 12 in apart, and the fabric is tied to the top rail no more than 18 in apart. The calculator counts each of these from the height, the corners and the gates.
Sources
- QUIKRETE, Setting Posts project guide: hole size, depth and gravel base, checked 2026-11-20
- QUIKRETE, Fast-Setting Concrete Mix No. 1004 data sheet: yield per bag, checked 2026-11-20
- QUIKRETE, Concrete Mix No. 1101 data sheet: yield of an 80 lb bag, checked 2026-11-20
- Wood Fencing: Planning and Installing Your Fence, instruction sheet distributed by The Home Depot (rails by fence height), checked 2026-11-20
- Wood fencing instruction sheet distributed by Lowe's (four rails for 8 ft fences), checked 2026-11-20
- The American Fence Company, How to build a solid wood fence (nails per picket and rail), checked 2026-11-20
- Inch Calculator, Fence Calculator (post spacing, picket settings, extra lumber), checked 2026-11-20
- Chain Link Fence Manufacturers Institute, Product Manual CLF-PM0610 (updated March 2017), checked 2026-11-20
Let your website write the quote
You just worked out a price by hand. This puts your price list to work on your website: a customer answers a few questions, the form works out the price from your own rates, and they get an itemized quote by email while you get the request. We set it up from your price list and host it for you, so there is no monthly fee to us.
- One quote request form for your business, with up to 10 questions and up to 15 priced items or options from your own price list
- The price worked out from your rates the moment the customer submits, with no reply needed from you
- An itemized quote emailed to the customer in your business name and colors, and an alert to you with every answer
- Every request saved to a Google Sheet that you own
- Added to your current website as an embed or a button, or delivered as its own page, with one round of changes
Turnaround: Live within 5 business days of getting your price list and logo.
You pay on Stripe's secure checkout page. We never see your card number.
Related Tools and Guides
- Deck calculator for boards, joists, posts and footingsEnter the deck size, the board size and the joist spacing. You get a full material list: deck boards, joists, beams, posts, footings, concrete and screws or hidden clips. It is a material estimate, not a structural design.
- Gravel calculator for post bases and pathsEnter the area, the depth and the type of gravel. You get the amount to order in cubic yards, tons and bags, with the published weight behind the tons shown, and the cost if you enter a price.
- Markup calculator to price the fence jobEnter any two of your cost, your selling price and your markup percent, and the calculator works out the third. It also shows the margin that markup produces, because the two are not the same number.
- Quote template for the customer's copyType your business, your customer and your line items, and a clean quote builds itself as you go. Save it as a PDF or print it. There is no file to download and no account, and nothing you type leaves your browser.
- All free business toolsCalculators and generators for pricing, quoting and running a small business.