Privacy fence calculator
Calculate posts, rails and pickets for a solid privacy fence in any material, with a zero-gap board layout by default.
Fence calculator
Enter your specs. Every result updates live and shows its formula.
Overview
A privacy fence is defined by its layout, not its material: solid boards with no gap between them, tall enough to block sightlines, commonly 6 feet. This calculator defaults to cedar, but every material this site supports can be built in a privacy style; the material dropdown stays fully open.
Because the gap is zero by default, picket count here is simply the usable run divided by board width, before waste.
Assumptions
- The picket gap is set to zero by default because this page is about a solid board layout.
- Height defaults to 6 feet, a common privacy height, and stays editable.
- Rail count and post spacing follow the same general formulas as the wood fence calculator.
Common mistakes
- Assuming privacy fencing is one specific material; it is a style available across wood, vinyl and composite alike.
- Leaving a visible gap by mistake, which defeats the purpose of a privacy layout; double check the picket gap field is set to zero.
- Building to a height that trips a local fence-height permit rule without checking the code first; 6 feet is common but not universal.
Fence calculation formulas
The same math the calculator runs, in plain terms. Nothing here is a black box.
-
Sections
sections = max(ceil(effective run / post spacing), 1)
-
Post count
posts = (sections + 1) along the run, minus named corner and end posts already placed, plus 2 gate posts per gate
-
Effective run
effective run = total length - sum of gate widths
-
Rail count
total rails = sections x rails per section
-
Picket count
pickets = ceil(run in inches / (picket width + gap)); total = ceil(raw x (1 + waste %))
-
Board-on-board pitch
pitch = picket width - 1 in overlap
-
Panel count
full panels = floor(run / panel width); add 1 cut panel if the remainder is over 0.01 ft; total = ceil(raw x (1 + waste %))
-
Concrete volume
per-hole = pi x (diameter / 2)^2 x depth; total = per-hole x posts; bags = ceil(total / bag yield)
-
Slope-adjusted run
slope run = effective run / cos(atan(slope % / 100)); shown alongside, counts use the flat run
-
Cost
materials = (posts x post price + rails x rail price + infill x unit price + 60 lb bags x bag price) x regional multiplier; labor = effective run x labor per ft x terrain multiplier x regional multiplier; installed total = materials + gate hardware + removal + permit + labor
Every number the calculator shows comes from these formulas applied to your inputs.
Next step
- Fence post concrete calculator Work out how many bags of concrete mix each fence post footer needs, accounting for the post itself, based on hole and post dimensions.
- Fence picket calculator Calculate exactly how many pickets you need from your fence run, picket width and gap, including a waste factor.
Related calculators
- Wood fence calculator Calculate posts, rails, pickets and concrete for a pressure-treated pine, cedar or redwood fence. Every formula shown, cost optional.
- Shadowbox fence calculator Calculate materials for a shadowbox fence, which alternates pickets on both sides of the rails for a semi-private, two-sided look.
- Board on board fence calculator Calculate pickets for a board-on-board fence, which overlaps boards for full privacy from both sides, with the overlap built into the formula.
Related reading
In-depth guides
Buying guide
A privacy fence is a layout choice, not a material: boards set with no gap between them, built tall enough to block a sightline, most often 6 feet. This calculator keeps that zero-gap layout fixed and lets the material and height move, which is the opposite emphasis of the general wood fence calculator, where style is one of several open settings. Because the gap is zero, picket count here reduces to the usable run divided by board width, before the waste factor is added on top, which makes a privacy estimate one of the more predictable numbers in a wood fence take-off once the board width is settled.
Privacy is not the only way to build a fully screened fence. Board-on-board overlaps pickets on alternating faces of the rail so both sides look finished and no sightline gets through at any angle, at the cost of noticeably more boards over the same run. Shadowbox alternates pickets on both faces too, but with a small gap rather than an overlap, trading some screening for airflow and a lower board count than board-on-board. All three share the same post and rail formulas; the difference is entirely in how the infill boards are counted, which is why the board-on-board vs shadowbox vs solid privacy fence comparison is worth reading before locking in a style.
Posts on a tall, solid privacy fence carry more wind load than an open style, which is the practical reason 6x6 posts at wider spacing are common once height reaches 8 feet, while 4x4 posts at 6 to 8 feet on center handle a standard 6 foot fence. Once post count and hole dimensions are set, the fence post concrete calculator converts that into bags of concrete mix for the order. If the picket count from this page needs double-checking against a different board width or gap assumption, the fence picket calculator isolates that single step and shows the pitch math directly.
Height is usually the detail that needs confirming with the local building department before anything is ordered, since a fence over a certain height commonly triggers a permit in a given jurisdiction even though 6 feet is a common default. The wood fence installation guide and the how to install a wood privacy fence post cover the build sequence once height and style are set, and how much does a wood fence cost gives a starting range for budgeting before you enter your own local prices. The full set of styles lives on the wood fence calculators hub.
Height and material together also set the hardware you will need beyond lumber. A post cap, whether decorative or a simple flat weather cap, keeps water out of the end grain on a flat-topped post, and a solid privacy layout needs more fasteners per linear foot than a gapped style simply because more boards attach to the same rails. None of that changes the post, rail or picket formulas this calculator runs, but it is worth budgeting as a line item alongside the lumber itself, especially when a privacy fence is being priced against a lower-count style like a picket fence, since the hardware gap between the two styles is smaller than the lumber gap.
Neighboring properties are also worth a mention before a privacy fence goes in: a tall solid fence built directly on or near a shared property line is one of the more common sources of boundary disputes, and confirming the actual survey line, rather than an assumed fence row or an old marker, avoids a rebuild later. That step sits outside what any calculator can verify, but it belongs in the same planning pass as the material take-off, since moving a fence after it is built costs far more than confirming the line before the first post hole is dug.
On sloped ground, a privacy fence is built either racked or stepped: racking angles each panel to follow the grade continuously, which suits a gentle, even slope, while stepping keeps each panel level and drops it at the next post, which suits a steeper or uneven grade. Both methods use the same post, rail and picket counts this calculator returns, since the choice affects how the boards meet the ground rather than how many boards or posts the job needs. Deciding between the two before ordering lumber matters because racked panels sometimes need slightly longer boards cut to the rake angle, which is worth flagging to a lumber yard ahead of time rather than discovering it mid-job.
Expected lifespan varies by species more than by anything else in the build: pressure-treated pine commonly serves 10 to 15 years, cedar 15 to 20-plus years with periodic maintenance, and redwood similarly to cedar, assuming posts are set below the frost line and boards are kept off wet soil. None of those lifespan differences change the picket, rail or post counts on this page, since the zero-gap privacy formula is the same regardless of species; they only affect how often the fence needs staining, board replacement or eventual rebuilding.
Frequently asked questions
What height is a standard privacy fence?
6 feet is the most common residential privacy fence height in the US, tall enough to block most sightlines while commonly staying under a local fence-height permit threshold; check your local code before finalizing height.
Is a privacy fence always wood?
No. Privacy is a layout, not a material: solid boards with no gaps between them. Vinyl and composite systems also come in privacy styles, and this calculator lets you switch material while keeping the zero-gap layout.
How many pickets do I need for a privacy fence?
With no gap, the count is the usable run divided by your board width, plus waste. For 100 feet with a 5.5 inch board, that is about 219 pickets before waste; the calculator adds its default waste factor on top.
Why does a privacy fence cost more than a picket fence?
A zero-gap privacy layout uses noticeably more boards over the same run than a picket style with a visible gap, and 6 foot privacy boards are usually pricier per board than shorter pickets. The cost difference is material quantity and size, not hidden fees.
How tall can a privacy fence be without a permit?
That is set by local code, and 6 feet is a common ceiling for a rear-yard fence in the US while some areas allow up to 8 feet or require a permit above 4 feet. Confirm with your building department; this calculator does not know your local limit.
What is the difference between privacy and board-on-board?
A standard privacy fence butts each board flush against the next on one face, fully solid from one side. Board-on-board overlaps boards on alternating faces so both sides are fully closed, which uses more boards. Both block sightlines; board-on-board looks the same from both yards.
Do privacy fences need more posts?
No. Post spacing and post count follow the same rules as any other wood style. The extra wind load of a solid 6 foot fence is why tall privacy fences are usually run with 6x6 posts at generous spacing rather than more posts closer together.
How long does a privacy fence last?
Lifespan is dominated by the species and your local climate: pressure-treated pine commonly serves 10 to 15 years, cedar 15 to 20-plus with maintenance, and redwood similar to cedar. Setting posts below the frost line and keeping boards off the soil extends every species.