Yard
Fence calculator
Posts from the spacing, rails from the bays, pickets from the width and the gap, and concrete only if you ask for the holes.
Fence materials
140 pickets
9 posts and 24 rails over 8 bays.
- Bays
- 8
- Posts
- 9
- Rails
- 24
- Picket run
- 64 ft 0 in
- Post-hole concrete
- 14.14 cu ft
24 of the 80 lb bags
Bays = fence length ÷ spacing, rounded up. A straight run has one more post than bays; a closed run has the same number, because the corners are shared. Pickets cover the length minus the gate, starting and ending on a picket. Concrete is the cylinder of the hole times the post count, turned into 80 lb bags at 0.60 cu ft each.
- Post depth is a planning input, not a frost-line ruling. Call the building department for the burial depth where you are, then type that depth in.
Planning estimate. Read the disclaimer before you buy or build.
In the field
-
Measure the run that will actually get fence
Stop at the house, the gate, and the end post you already have. For a closed pen, measure the perimeter once, all the way around, and check the closed-pen box so the corners are not double-counted.
-
Choose a spacing you can divide, then let the last bay be shorter
Eight feet is the default because rails and panels are often sold that long. If the run is 70 feet, you will get nine bays and the last one will be shorter. Even the bays out in the field if you care how it looks. The count of posts will not change.
-
Match the picket width to the lumber, not the nominal name
A 1×6 is five and a half inches wide. A 1×4 is three and a half. The default is 5.5 with no gap, a butted privacy fence. A spaced picket wants the gap you will see, often a half inch to an inch.
-
Treat the gate as an opening, not as a missing post
The gate width is removed from the picket run. The posts stay, because the gate hangs on posts. Rails are still counted for every bay, including a gate bay. If the gate has its own frame, subtract those two or three rails when you order.
-
Set the hole to your frost depth, not to the default
Twenty-four inches deep and twelve inches across is a common starting hole, not a code. Cold counties want the bottom of the post below frost. The building department has the number. Type it in. The bags follow the cylinder you typed.
A wood fence is a rhythm of posts, a handful of horizontal rails, and a face of pickets. The rhythm is the part to get right, because every other count hangs off the bays. The face is just division, with one trap: the gap.
The default run
Sixty-four feet is eight panels if you space the posts eight feet apart, and it divides evenly so the last bay is not a sliver. A straight line needs posts at both ends, so eight bays are nine posts. Three rails in each bay is twenty-four rails. If you build with two rails, change the field. Privacy fences often want the third rail so the pickets do not warp between two nails. A short garden fence can live on two. The calculator will not lecture you. It will multiply what you type.
Pickets at five and a half inches, butted tight, cover sixty-four feet with 140 boards. The division is 768 inches divided by 5.5, which is 139.64, and you cannot buy the fraction. The extra third of a picket is real. Do not “round down because it was close.” The last gap, if you round down, is a hole at the end post.
Turn on a gap and the count falls. The formula does not put a gap after the last picket, because the fence ends on a board against the post, not on a mystery space. That is the same rule as deck boards. If you want daylight at both posts, your run of pickets is shorter than the fence by those two spaces. Shorten the length or accept a couple of extra pickets. Extra pickets are the cheap mistake.
Straight line or a box
Check “closed pen” when the fence returns to itself. The corner post is one post, shared by two sides. An 80 foot perimeter at 8 foot spacing is 10 posts, not 11. A rectangle that is 20 by 20 is that perimeter. Measure the outside, where the pickets will land, not the inside face of the posts, or you will be short a picket at every corner in a way the math cannot see. Corners eat a little width. One or two spare pickets cover a four-corner pen. They do not cover a measuring error of a whole bay.
A fence that dies into the house is a straight run. The house is not a post you can share in this count unless you are truly fastening the last bay to the wall and omitting the end post. If you set a post six inches off the siding, you still have that post. Leave the box unchecked.
Gates. The default gate width is zero. A 4 foot gate in the middle of the run removes 4 feet of pickets and does not remove a post. It often replaces a line post with a heavier hinge post, which is still one post in the count. Rails are the subtlety: the calculator still gives you rails for the gate bay, because many gates are a frame built from the same rail stock. If your gate is a kit with its own frame, subtract one bay’s rails from the order. The note is in the result, in plainer words: rails include every bay. Read that before you buy twenty-four 2×4s and discover three of them were the gate you already purchased as a unit.
Holes and concrete
Twelve inch diameter, twenty-four inch depth, nine holes. The radius is half a foot, the depth is two feet, and the volume of one hole is π times a quarter times two, about 1.57 cubic feet. Nine holes are about 14.1 cubic feet. At the 0.60 cubic foot yield of an 80 pound bag of ordinary concrete mix, that is 24 bags. The concrete calculator uses the same yield and will let you price 60 pound bags if that is what the store has. Fast-setting post mixes yield differently. Read the bag before you treat 24 as gospel.
Depth is local. Twenty-four inches is a common minimum people use for a 6 foot fence with an 8 foot post, leaving two feet in the ground. Frost lines in cold states are deeper than that, sometimes much deeper. The page repeats this because a calculator default should not masquerade as a footing design. Call the building department, type their number, and let the bags move. A shallow post in clay that freezes will lift, and the picket count will still have been correct on a fence that is now a wave.
Gravel in the bottom of the hole is drainage, and it is not concrete. If you want 6 inches of gravel and 24 inches of concrete, the auger goes down 30 inches and the concrete depth field stays 24. Diameter follows the post. A rule of thumb you will hear is a hole about three times the post width, so a 4×4 wants about a 12 inch hole. That matches the default. A 6×6 hinge post wants a bigger hole. Compute it separately or size every hole for the biggest post and accept the extra bags.
Layout that the count assumes
Set the end posts first, string a line, and space the middles so the bays look even. The calculator’s “rounded up” last bay is a material count, not a layout order. Eight bays in 64 feet is exactly eight. Nine bays in 70 feet can be a touch under 8 feet each if you divide 70 by 9 instead of leaving one short bay. The post count is the same either way: for a straight run, bays plus one. Rails get slightly shorter. Pickets follow the overall length, so they do not care that you evened the bays. This is the one place the fence is kinder than a deck.
Rails want to land on the posts. If you even the bays to 7 feet 9 inches, an 8 foot rail still reaches, with a small cut. If you stretch past the lumber you bought, the count is a fiction. Keep the spacing at or under the rail length.
Wind and gates are the structural part. A solid privacy fence is a sail. Post size, rail size, and whether you need a diagonal brace at the gate are not in the picket math. A 4×4 and two nails per picket is a common light fence and a poor gate post. Use a heavier post at the hinges, and brace the gate bay. The calculator still counts it as one post.
Along the new fence, people mulch or lay stone so the mower has a place to stop. That bed is the mulch calculator: length of the fence, a foot or two wide, a few inches deep. It is not included here. Neither is the stain. Stain follows the face area, both sides if you can see both sides, and the end grain of the pickets drinks more than the face. Compute gallons from the can’s coverage once you know whether you are coating one side or two.
A deck railing is not this fence. Balusters have a code spacing, often small enough that a 4 inch sphere cannot pass, and the posts are tied to the framing. Use this page for a yard fence. Use the deck calculator for the deck, and look up the guard requirements before you copy a 5½ inch picket with a gap onto a stair rail. Different rules, similar lumber, easy to confuse on a Saturday.
Set the ends, count the bays, buy the posts the layout needs, and let the pickets be the last thing on the truck. They are the big number and the small decision. The posts are the fence.
Questions worth asking first
Why 9 posts and 140 pickets on the default fence?
Sixty-four feet at 8 foot spacing is 8 bays. A straight run has a post at each end, so 9 posts. Three rails per bay is 24 rails. Pickets at 5.5 inches with no gap cover 768 inches, which is 139.6 pickets, so you buy 140. The holes, 12 inches wide and 24 deep, are about 1.57 cubic feet each. Nine of them are about 14.1 cubic feet, which is 24 of the 80 pound bags at 0.60 cubic feet per bag.
Why does a closed fence use fewer posts?
Because the last corner is the first corner. An 80 foot perimeter at 8 foot spacing is 10 bays and 10 posts if you check the closed box. The same 80 feet in a straight line is 11 posts. Forgetting the box on a four-sided pen orders four extra posts. Forgetting to uncheck it on a straight run leaves you one post short, which is the worse error.
How does the gap change the picket count?
The fence starts and ends on a picket, so the gaps are one fewer than the pickets. The count is the smallest number of pickets whose widths, plus the gaps between them, cover the run. A half-inch gap on a narrow picket removes a lot of boards. A zero gap is a privacy face. Do not type the gap you want and also overlap the boards in your head. Overlap is a negative gap this form cannot see. Count overlapped boards as a coverage width smaller than the board.
Are the rails 8 feet long?
The count is one rail per bay per rail-line. If your spacing is 8 feet and you buy 8 foot rails, the count matches the sticks. If the last bay is shorter, you still might cut that rail from a full stick, so the count is what you buy, and one stick becomes the short bay plus scrap. If you space posts at 6 feet, buy rails that make that cut without buying an extra full length you do not need, or keep the spacing at the lumber you can get.
Does the concrete include a gravel base in the hole?
No. The volume is the cylinder of the diameter and depth you typed, times the posts. If you put 6 inches of gravel in the bottom and then 24 inches of concrete, the concrete depth is 24 and the hole is deeper than that. Type the concrete depth, not the auger depth, if they differ. A bell at the bottom of the hole is extra concrete the cylinder misses. Add a little or bell them and remeasure.