Fence Picket Calculator uses fence length ÷ picket spacing cycle to estimate total pickets, waste buffer, rails, and material cost for standard, board-on-board, and shadowbox layouts.
Most People Get the Count Wrong Before They Even Start
The instinct is to divide total fence length by picket width and call it done. That works if every board is glued edge-to-edge with no gaps and zero off-cuts — which is never true on an actual job site. The real count depends on the gap between boards, the layout pattern you’re using, how many sections your fence spans, and how much material you’ll lose to bad cuts, splits, and end-waste. This calculator works through all of that, including an optional cost estimate for both pickets and horizontal rails.
Three layout styles are supported: standard side-by-side, board-on-board (overlapping), and shadowbox (alternating front-and-back). Each mode changes how the pattern repeats — and therefore how many pickets you actually need per linear foot.
How the Picket Count Is Calculated
The core of the calculator is a cycle length — the linear distance consumed by one full repeat of the pattern. Dividing your total fence length by that cycle length gives you the number of repeats, and multiplying by the pickets per repeat gives you the raw count. Everything else is rounding and waste.
Standard (Side-by-Side) Layout
Each picket occupies its own width plus the gap before the next one. One picket per cycle.
Cycle Length = Picket Width + Gap Between Pickets Base Count = ⌈ (Fence Length in Inches ÷ Cycle Length) ⌉ × 1
At zero gap, cycle length equals picket width exactly. The formula still works — you’ll just get a tighter count than most installations actually need (more on that below).
Board-on-Board and Shadowbox Layouts
Both overlapping styles involve two pickets per cycle. The “gap” field becomes an overlap amount — how far each picket crosses over its neighbor. The cycle advances by the combined net width of both boards after overlap is subtracted from each edge.
Cycle Length = (2 × Picket Width) − (2 × Overlap Per Side) Pickets Per Cycle = 2 Base Count = ⌈ (Fence Length in Inches ÷ Cycle Length) ⌉ × 2
The calculator validates one hard constraint here: if the overlap you enter equals or exceeds the picket width, the cycle length collapses to zero or goes negative — geometrically impossible. You’ll see an “Impossible Geometry” error rather than a nonsense number.
Waste Buffer
Once the base count is established, the waste allowance is applied using ceiling arithmetic — the same rounding used throughout:
Extra (Waste) = ⌈ Base Count × (Waste % ÷ 100) ⌉ Total Pickets = Base Count + Extra
The default is 5%, which covers routine off-cuts. Jobs with many corners, angled runs, or gates should use 8–10%.
How the Rails Estimate Works
Horizontal rails are calculated separately from pickets. The calculator assumes standard 8-foot fence sections — the most common post spacing in residential wood fencing. It doesn’t ask for post spacing as an input; that value is fixed internally.
Sections = ⌈ Fence Length (ft) ÷ 8 ⌉ Rails = Sections × Rails Per Section
Rails per section defaults to 3, which is appropriate for a standard 6-foot privacy fence. A 4-foot decorative fence typically uses 2 rails; anything taller than 6 feet benefits from 4. The section count always rounds up, so a 75-foot fence produces 10 sections (not 9.375), which is correct — the last section is still a full set of rails even if the run is shorter.
If your post spacing is something other than 8 feet, the rails estimate will be off. Adjust the total manually: multiply your actual section count by the rails-per-section value the tool shows in the output card.
Board-on-Board and Shadowbox: Same Number, Different Look
This surprises a lot of people. Despite looking completely different on a finished fence, board-on-board and shadowbox use identical math in this calculator — the same formula, the same cycle, the same picket count for equal inputs.
The reason is structural. In board-on-board, every picket sits on the same face of the rails and overlaps the previous one. In shadowbox, pickets alternate between front and back faces. But from a counting perspective, both patterns consume two pickets for every cycle of `(2 × width) − (2 × overlap)` inches — the per-side coverage is the same regardless of which face each board is attached to.
Where the styles differ in practice: shadowbox provides the same visual coverage from both sides of the fence, while board-on-board is more solid from one side. But the lumber order is identical. If you’re switching between these two styles mid-project, your picket count doesn’t change — only your installation sequence does.
Worked Example: 75-Foot Cedar Privacy Fence
Say you’re running a 6-foot privacy fence along 75 feet of yard with standard dog-ear cedar 1×6s (actual face width: 5.5 inches), tight side-by-side with no gap, 3 rails per section, 5% waste, pickets at $2.50 each, rails at $8.00 each.
Cycle length: 5.5 + 0 = 5.5 inches
Fence length in inches: 75 × 12 = 900 inches
Base picket count: ⌈900 ÷ 5.5⌉ = ⌈163.6⌉ = 164 pickets
Waste buffer (5%): ⌈164 × 0.05⌉ = ⌈8.2⌉ = 9 pickets
Total pickets to purchase: 164 + 9 = 173 pickets
Sections: ⌈75 ÷ 8⌉ = ⌈9.375⌉ = 10 sections
Rails: 10 × 3 = 30 rails
Picket cost: 173 × $2.50 = $432.50
Rail cost: 30 × $8.00 = $240.00
Total material estimate: $672.50
On this job the tight zero-gap entry would trigger the calculator’s wood-drying note — a reminder worth heeding if those boards came straight off a delivery truck. Green cedar can shrink noticeably as it cures, which turns a flush install into a fence with visible gaps within a season.
Formulas at a Glance
| Calculation | Formula |
|---|---|
| Standard cycle length | Picket Width + Gap |
| Overlap-style cycle length | (2 × Picket Width) − (2 × Overlap) |
| Base picket count | ⌈ Fence Length (in) ÷ Cycle Length ⌉ × Pickets Per Cycle |
| Waste buffer | ⌈ Base Count × (Waste % ÷ 100) ⌉ |
| Total pickets | Base Count + Waste Buffer |
| Sections (8 ft assumed) | ⌈ Fence Length (ft) ÷ 8 ⌉ |
| Total rails | Sections × Rails Per Section |
| Grand total cost | (Total Pickets × Price/Picket) + (Total Rails × Price/Rail) |
Frequently Asked Questions
Why does the calculator warn me when I enter a zero gap on a standard fence?
The math is valid at zero gap — it just means pickets sit flush against each other. The note is a practical reminder: lumber from a supplier often has residual moisture content, and boards installed with no gap at all will buckle or bow as they dry and contract. The warning isn’t an error, it’s a flag to verify whether your wood has dried to installation moisture levels before you start nailing.
What happens if my overlap equals or exceeds the picket width?
The calculator blocks the calculation and shows an “Impossible Geometry” error. For board-on-board and shadowbox styles, the overlap can be any value less than the picket width — but at exactly equal values, the cycle length becomes zero (or negative), which makes picket count mathematically undefined. In practice this would mean two boards sitting directly on top of each other with nothing advancing, which isn’t a real fence layout.
My post spacing isn’t 8 feet. How do I correct the rail count?
The rail estimate is hardcoded to 8-foot sections and there’s no input to change that assumption. To correct it, take the “Rails Per Section” value from the output card and multiply it by your actual section count. For example, if your posts are 6 feet apart and your fence is 60 feet long, you have 10 sections — multiply by whichever rail count (2, 3, or 4) the tool shows for your selection.
The tool accepts feet-and-inches as a combined unit. Is there a gotcha when switching units?
Yes. When you switch from a split unit (ft + in) to a single unit (ft, m, etc.), the calculator converts your current combined value automatically. But if the inches portion is 12 or greater when using ft+in mode, the input is flagged as invalid — the calculator expects inches to stay below 12 in that mode, the same way you’d write a measurement on a tape measure. Enter 13 inches as 1 ft 1 in, not 0 ft 13 in.