A fence project usually goes wrong at the store, not in the yard: one post short with the holes already dug, or a stack of pickets left over that nobody will take back. This free fence calculator turns one measurement — the length of your fence — into a proper materials list. Enter the length, height, post spacing, picket size and gate count, and it works out the sections, posts, rails and pickets you need, plus a rough concrete estimate. Everything runs in your browser, with nothing to download or sign up for.
Quick answer: for a 100-foot fence with posts spaced 8 feet apart, you need 14 posts, 26 rails and 200 pickets (using standard 5.5-inch pickets with a half-inch gap), plus roughly one 50 lb bag of concrete per post — about 14 bags. The posts are always one more than the number of sections, because every section needs a post at each end. Enter your own numbers below to get your list.
How to use this fence calculator
- Enter the total fence length in feet — measure along the line the fence will follow. If the fence has several sides, either add the sides together for one combined list or run each side separately for a per-side list.
- Enter the fence height in feet. The height does not change the material counts in this calculator, but it is shown in your results summary so the list matches the fence you are actually planning.
- Set the post spacing (8 feet is the standard default), the picket width and the gap between pickets in inches, and the number of gates. Each gate counts as 4 feet wide and replaces pickets along that stretch.
- Press “Calculate Materials” — you get the number of sections, posts, rails and pickets, plus a rough concrete estimate of one 50 lb bag per post.
Each gate counts as 4 feet wide: gates replace pickets along that stretch, but posts and sections are still worked out on the full fence length.
— fence sections
— posts
— rails (2 per section)
— pickets
— bags of concrete, 50 lb (rough estimate — about 1 per post)
How the fence calculator works
Most wooden fences are built from one repeating unit: a section of rails and pickets stretched between two posts. Count the sections and everything else follows, using these formulas:
Sections = fence length ÷ post spacing, rounded up
Posts = sections + 1
Rails = sections × 2
Pickets = (fence length − total gate width) × 12 ÷ (picket width + gap), rounded up
Concrete ≈ 1 bag (50 lb) per post
The post count surprises people: posts stand at both ends of every section, and neighbouring sections share the post between them, so posts always come to one more than sections — 13 sections need 14 posts, never 13. Rails are counted at two per section, the standard arrangement for a wooden picket fence (a top rail and a bottom rail); if your style uses three rails, multiply the sections by three instead. Pickets are counted across the run in inches: each picket takes up its own width plus one gap, so a 5.5-inch picket with a half-inch gap covers 6 inches of fence.
The assumptions are stated plainly so you can judge the list: gates replace pickets, not posts — posts, sections and rails are still worked out on the full fence length, because a gate opening still sits between two posts — and each gate is treated as 4 feet wide. The concrete figure is a rough estimate only: one 50 lb bag per post is a common starting point, but the real amount varies with your soil, the depth and width of your post holes, and the size of the posts themselves.
A worked example
Say you are fencing a straight 100-foot run, 6 feet high, with posts every 8 feet, standard 5.5-inch pickets, a half-inch gap, and no gates.
Step 1: work out the sections. 100 ÷ 8 = 12.5, and you cannot build half a section, so round up: 13 sections.
Step 2: count the posts. Posts = sections + 1 = 13 + 1 = 14 posts.
Step 3: count the rails. Rails = sections × 2 = 13 × 2 = 26 rails.
Step 4: count the pickets. The run is 100 × 12 = 1,200 inches. Each picket covers 5.5 + 0.5 = 6 inches, so pickets = 1,200 ÷ 6 = 200 pickets.
Step 5: estimate the concrete. At roughly one 50 lb bag per post, that is about 14 bags.
Check the gate effect: add one 4-foot gate and the picket run drops to 96 feet, so pickets = 96 × 12 ÷ 6 = 192 — eight fewer pickets — while the posts, sections and rails stay exactly the same.
Common mistakes
- Forgetting the +1 end post. Sections and posts are not the same number: a run split into 13 sections needs 14 posts, because every section has a post at each end and neighbouring sections share theirs. Order posts equal to sections and you will be one post short at the far end, with the last section left hanging.
- Ignoring gates and over-buying pickets. A gate opening has no pickets across it. Leave the gate count at zero when you really do have a gate and you pay for pickets to cover a stretch that stays open — at standard sizes, one 4-foot gate is about 8 pickets’ worth of material.
- Using the picket width without the gap. Each picket occupies its width plus one gap, so a 5.5-inch picket with a half-inch gap covers 6 inches of fence, not 5.5. Forget the gap in the maths and you under-order by roughly a twelfth of the run — on a long fence, that is a second trip to the store.
- Ordering the exact count with no waste allowance. The calculator gives the true net count the fence needs, but real boards arrive warped, split or full of knots, and cuts go wrong. Treat the result as the net figure and add about 10% when you order — that allowance is buying advice, not part of the calculator’s maths.
Pro tips
- Check the rules and the line before you buy anything. Confirm your property line from a survey or plot plan, and check local fence rules and any HOA limits on height, style and placement first. Lumber can usually be returned; a fence built on a neighbour’s land, or above a legal height limit, has to come down — and that costs far more than the materials ever did.
- Buy about 10% more pickets than the count says. A few boards in every bundle arrive warped, split or simply ugly, and you will want spares from the same batch for repairs later. Extra pickets are cheap insurance next to a second delivery fee or a patch that visibly does not match.
Frequently asked questions
How many posts do I need for a fence?
Always one more than the number of sections: posts = sections + 1, where sections = fence length ÷ post spacing, rounded up. A 100-foot fence with posts 8 feet apart has 13 sections and needs 14 posts. Spacing the posts closer together — 6 feet instead of 8 — means more posts and more rails, but a noticeably sturdier fence.
How many pickets do I need?
Divide the picket run, in inches, by the picket width plus the gap, and round up: pickets = (length − gate width) × 12 ÷ (picket width + gap). For 100 feet with 5.5-inch pickets and a half-inch gap, that is 1,200 ÷ 6 = 200 pickets. Add about 10% on top when you order, to cover damaged boards and cutting waste.
How much concrete do fence posts need?
This calculator uses a rough estimate of one 50 lb bag of concrete per post, which is a reasonable starting point for typical post holes. Treat it as an estimate, not an exact quantity: the real amount depends on the diameter and depth of your holes, your soil, the size of the post and your local frost depth. Deep or wide holes, and soft soil, can easily take two bags per post — check the bag maker’s own guidance for your hole size before you buy.
Does the calculator include gates?
Yes. Enter the number of gates and each one is counted as 4 feet wide; that width is taken off the picket run, so you do not buy pickets for an opening that stays open. Posts, sections and rails are still counted on the full fence length, because the gate hangs between posts. The gate itself and its hinges and latch are not part of the material counts — you buy those separately as a gate kit or a pre-built gate.
How far apart should fence posts be?
For wooden fences, 6 to 8 feet apart is typical. Eight feet is the common standard and matches standard rail lengths, so it is the cheapest spacing per foot of fence. Six feet gives a stronger fence that resists sagging and wind load better, at the cost of more posts, rails and concrete. Panel-style fences are different: there the spacing is fixed by the panel width, usually 6 or 8 feet exactly.
More calculators
This fence calculator is the first of our home and DIY tools. Go back to the homepage to see the full list of free calculators, including the date, time, math, finance and education tools.
