Fence Calculator
Get posts, rails, pickets or boards, and concrete bags for a wood privacy, picket, or board-on-board fence, plus an optional materials cost.
How to measure
Measure the fence along the ground, following the line where the boards will stand. Break a long run into pieces you can tape, then add those pieces to get the total length. Include the ground in front of each gate in that total. The page subtracts the gates from the board and rail run, so leaving them in the tape measure and also typing them as gates is correct. Leaving them out and typing them again would drop the opening twice.
Write down each gate width. For one gate, type its width once. For several gates, use the width field for each gate when they differ. When every gate is the same width, one shared width is enough. A single straight run already includes both end posts. Add an extra corner post only when a turn needs a post beyond that straight count, not once for every corner you can see.
Set the maximum post spacing to 8 feet for a typical wood fence, or 6 feet when the fence is tall or the boards are heavy. The page splits the remaining length into equal bays that do not exceed that spacing. Measure the actual board width with a tape. A board sold as a 1x6 is usually 5.5 inches, and the nominal name will over-count or under-count the pickets.
Confirm the property line, the height limit, and any homeowners association rule before you buy. The bury depth starts at one third of the height above grade, and at least 2 feet, then you add gravel. Compare that hole with the local frost line and use the deeper one. Call 811 before you dig so buried utilities can be marked.
Formula
Usable length is the taped run minus each gate. Sections are that length divided by the maximum spacing, rounded up. Line posts are the section count plus one. Each gate adds two posts, and any extra corner or end posts you type are added after that. Rails are the sections times the rail lines, plus waste. Board step depends on the style: the board width, the width plus the gap, or the width minus the overlap. Waste uses a whole-number percent and rounds up once. Concrete is the round hole minus the post, rounded up per hole.
A 100 foot privacy fence, 6 feet high, posts at most 8 feet apart, and one 4 foot gate, leaves 96 feet of boards. That is 12 sections, 15 posts, 38 rails after 5 percent waste, and 231 boards after 10 percent waste. Each post is an 8 foot 4x4. Fifteen holes take 3 bags of 60 pound mix each, 45 bags in total.
Common mistakes
- Using the nominal 6 inch name when the board is actually 5.5 inches.
- Subtracting the gates twice, or leaving the gate width in the board run.
- Stopping at one third of the height and skipping the local frost line.
- Treating board-on-board and a two-sided shadowbox as the same count.
- Dividing the combined concrete volume by the bag yield instead of rounding each hole up.
- Adding one post per corner you can see on top of a straight line that already has both ends.
FAQ
How many posts do I need for 100 feet of fence?
A straight 100 foot run at 8 foot spacing is 13 sections and 14 posts, one more than the sections, so both ends are included. With one 4 foot gate the page first keeps 96 feet of fence: 12 sections and 13 line posts, then adds 2 gate posts, for 15. A gate that shares an end post in the yard may leave you one spare. Extra corner posts are added only if you type them.
How deep should a fence post be?
The default bury depth is one third of the height above the ground, and at least 2 feet. A 6 foot fence uses 2 feet in the ground. The hole is deeper by the gravel base, 6 inches unless you change it. This is a planning rule, not a frost-line map. Cold climates often need the bottom of the hole below the local frost line. Use whichever is deeper, and call 811 before you dig.
How many bags of concrete does one post need?
Concrete fills a round hole for the bury depth only. The gravel base is not concrete. The square post is subtracted unless you turn that off. Bags round up at each hole, then multiply by the post count, so you never split one bag across a hole. A 10 inch hole, 2 feet deep, around a 4x4 takes 3 bags of 50 pound mix. A label that says two bags is a short example. Read your bag.
What is the difference between privacy, board-on-board, and shadowbox?
Privacy boards touch, so the step is the actual board width and the gap stays at zero. Spaced pickets add the gap you type. Board-on-board overlaps on one face, so the step is the width minus the overlap. Shadowbox alternates boards on two faces with a gap you set, and the list counts both faces separately. It is not privacy times two. One hundred feet of 5.5 inch boards with 1 inch overlap is 267 boards before waste.
Does this include labor or the full install price?
No. Prices you type apply only to posts, rails, boards, concrete bags, and gate kits. Empty prices are skipped, and the total stays blank until at least one price is filled in. Labor, delivery, tax, permits, and contractor markup are not added. The page is a materials list for a site-built wood fence, not an install bid. Each gate is one kit. Hinges and a latch are not lines on the list.
Should I order extra boards?
The default adds 10 percent to the boards and 5 percent to the rails, then rounds up. You can change either percentage. Use the actual width, such as 5.5 inches for a 1x6, not the 6 inch name on the rack. The main count runs along the whole fence. Per-bay count in Advanced uses the clear gap between posts and is usually a little lower. Buy the stock length shown on the list.
What length of post, rail, and board do I buy?
Post length is the height plus the bury depth, rounded up to 6, 8, 10, 12, or 16 feet. A 6 foot fence buried 2 feet takes an 8 foot post. Each rail line needs one 2x4 per bay, in the shortest 8, 10, 12, or 16-foot piece that covers the spacing. A 12 foot rail can cover two 6 foot bays. Boards use the shortest of 3, 4, 5, 6, or 8 feet that reaches the fence height.
Why does each gate add two posts?
The fence is counted as one straight run. Gate width comes out of the boards and rails, the run still has a post at each end, and every gate adds two more posts. That matches a gate in the middle of the line. A gate at the very end may share a post, so the list can be one post high on purpose. The drawing is only a schematic and does not place the gate in the yard.
Related tools
- Estimate board feet for the posts and rails Price sawn boards, with waste and lumberyard tally.
- Pack the rails onto the boards you can buy Pack these boards onto stock lengths before you buy.
- Count deck boards inside the fence Count deck boards from the frame size and the gap.
- Plan the whole deck in one list Walk a deck from size to a combined shopping list.
By Lumber Calc Editorial Team · Checked against the 2021 IRC & AWC DCA 6 · 2024 sections not yet verified · Last updated Nov 3, 2026