Planning a solid board privacy fence without a precise material estimate is a reliable way to either overspend at the lumber yard or stall the project mid-build while waiting for a second delivery. The core challenge is deceptively simple — how many vertical boards, horizontal rails, and support posts does a given fence line actually require — yet the answer depends on the interplay of board width, gap or overlap configuration, post spacing, and an honest waste allowance.
This estimator resolves that problem in seconds. You define the fence geometry and lumber dimensions; the tool returns a complete bill of materials — board count, post count, linear rail footage, total wood volume in cubic metres, estimated weight, fastener count, and projected cost. Every variable is transparent, and every formula is documented below so you can verify the arithmetic against your own field measurements.
Required Project Parameters
To produce an accurate estimate, the following values must be established before running the calculation:
- Total Fence Length (m) — the complete linear run of the fence line, measured along the ground.
- Fence Height (m) — the height of vertical boards above finished grade.
- Post Spacing (m) — centre-to-centre distance between adjacent support posts. Standard practice ranges from 2.0 m to 2.5 m.
- Board Width (mm) — the face width of a single vertical picket or board.
- Board Thickness (mm) — the depth (thickness) of each vertical board.
- Gap / Overlap (mm) — the spacing between adjacent boards. A value of 0 produces a solid edge-to-edge fence. A positive value creates a spaced picket fence. A negative value produces board-on-board or shiplap overlap.
- Horizontal Rails (pcs) — the number of crossbeam rows connecting each pair of posts (typically 2 for fences ≤ 1.5 m, 3 for taller structures).
- Waste Factor (%) — additional material to compensate for cuts, defects, and end-trim loss.
- Wood Density (kg/m³) — species-dependent value used for weight estimation.
- Price per m³ ($) — unit cost of lumber for budget projection.
Theoretical Foundation & Formulas
The estimation engine decomposes the fence into three structural components — vertical boards, horizontal rails, and vertical posts — then calculates each independently before summing them into a total volume.
Board Quantity & Volume
The number of boards is governed by the fence length and the effective board width, which accounts for the gap or overlap between adjacent boards. In metric units, with board width $b_w$ and gap $g$ both converted from millimetres to metres:
$$b_{\text{eff}} = b_w + g$$
When $g$ is negative (overlap configuration), the effective width shrinks, which increases the total board count — a critical relationship that many manual estimates overlook. The raw board count is then:
$$N_{\text{boards,raw}} = \frac{L}{b_{\text{eff}}}$$
Applying a waste factor $w$ (expressed as a decimal, e.g., 0.05 for 5 %):
$$N_{\text{boards}} = \left\lceil N_{\text{boards,raw}} \times (1 + w) \right\rceil$$
The ceiling function ensures a whole-number result — you cannot purchase a fraction of a board. Total board volume follows directly, where $b_t$ is the board thickness in metres and $H$ is the fence height:
$$V_{\text{boards}} = N_{\text{boards}} \times H \times b_w \times b_t$$
Post Quantity & Volume
Posts are placed at the start and end of the fence run plus at every spacing interval $S$. The count is:
$$N_{\text{posts}} = \left\lceil \frac{L}{S} + 1 \right\rceil$$
The estimator assumes a standard 100 × 100 mm post cross-section with 0.8 m of burial depth below grade for stability. Total post volume therefore includes the below-grade portion:
$$V_{\text{posts}} = N_{\text{posts}} \times (H + 0.8) \times 0.1 \times 0.1$$
Rail Length & Volume
Horizontal rails span the full fence length, with one continuous run per rail row. For $n_R$ rail rows, total rail length (including waste) is:
$$L_{\text{rails}} = L \times n_R \times (1 + w)$$
Rails are assumed to be 50 × 100 mm in cross-section. Rail volume is:
$$V_{\text{rails}} = L_{\text{rails}} \times 0.1 \times 0.05$$
Total Volume, Weight & Cost
The three component volumes sum to the total lumber requirement:
$$V_{\text{total}} = V_{\text{boards}} + V_{\text{posts}} + V_{\text{rails}}$$
Weight is derived from the wood density $\rho$ (in kg/m³):
$$W_{\text{total}} = V_{\text{total}} \times \rho$$
And cost from the unit price $P$ (per m³):
$$C_{\text{total}} = V_{\text{total}} \times P$$
Fastener Estimation
The fastener count accounts for two screws per board-to-rail connection plus four screws per rail-to-post junction:
$$F = (N_{\text{boards}} \times n_R \times 2) + (N_{\text{posts}} \times n_R \times 4)$$
Technical Specifications & Reference Data
Selecting the correct wood density value is essential for accurate weight and logistics planning. The table below lists air-dry density (at approximately 12 % moisture content) for species commonly used in fence construction, compiled from the USDA Forest Products Laboratory reference data and industry sources.
| Species | Density (kg/m³) | Specific Gravity | Typical Use | Durability Rating |
|---|---|---|---|---|
| Western Red Cedar | 368 | 0.36 | Premium fencing, natural decay resistance | High |
| Eastern White Pine | 400 | 0.38 | Economy fencing, painted finishes | Low–Moderate |
| Spruce (SPF blend) | 420 | 0.42 | General-purpose framing and fencing | Low |
| Ponderosa Pine | 449 | 0.45 | Mid-range fencing, stainable | Low–Moderate |
| Douglas Fir | 545 | 0.53 | Structural posts, heavy-duty rails | Moderate |
| Southern Yellow Pine (treated) | 570 | 0.55 | Pressure-treated fence posts and rails | High (treated) |
| European Larch | 590 | 0.56 | Natural durability fencing without treatment | High |
| White Oak | 753 | 0.73 | High-end decorative fencing, gates | Very High |
| Ipe (Ironwood) | 1,050 | 1.05 | Exotic hardwood accent fencing | Exceptional |
Standard lumber cross-sections for fence components:
| Component | Common Cross-Section | Notes |
|---|---|---|
| Vertical Boards (Pickets) | 100 × 20 mm, 150 × 25 mm | Width dictates board count; thicker boards resist warping |
| Horizontal Rails | 50 × 100 mm, 38 × 89 mm | Must span post spacing without excessive deflection |
| Vertical Posts | 100 × 100 mm, 125 × 125 mm | Minimum 0.6–0.9 m burial depth depending on soil and height |
Engineering Analysis & Real-World Application
How Gap/Overlap Affects Board Count
The relationship between the gap parameter $g$ and total board count is not linear — it is inversely proportional through the effective width. A seemingly small change from 0 mm gap (solid fence) to −20 mm overlap (board-on-board) reduces $b_{\text{eff}}$ from 100 mm to 80 mm, increasing the board count by 25 % for the same fence length. This makes the gap/overlap parameter the single most cost-sensitive variable in the entire estimate.
Conversely, opening even a 10 mm gap increases $b_{\text{eff}}$ to 110 mm, reducing boards by roughly 9 % and improving wind load performance — a worthwhile trade-off in exposed locations where a solid panel acts as a sail.
Post Spacing and Structural Integrity
Post spacing $S$ directly determines the number of posts and, by extension, the unsupported span of each rail. The USDA Wood Handbook documents that deflection in a simply-supported beam increases with the cube of span length. Exceeding 2.5 m of post spacing with standard 50 × 100 mm rails risks visible sag over time, particularly with denser board cladding that adds dead load.
For fences taller than 1.5 m, increasing from two to three horizontal rails prevents board warping by reducing the unsupported vertical span of each picket. The fastener count rises proportionally, but the long-term maintenance cost drops considerably.
Waste Factor Calibration
A 5 % waste allowance is appropriate for straight-run fences with factory-cut boards. For projects with corners, angles, or irregular terrain, 10–15 % is more realistic. Board-on-board configurations with negative gaps inherently produce more off-cuts because overlapping edges must be trimmed uniformly, justifying a waste factor toward the higher end of the range.
Weight and Logistics
The weight estimate drives practical decisions: a 20 m fence at 2 m height using pine at 500 kg/m³ can easily exceed 500 kg of total lumber. Knowing this figure in advance determines whether the material can be transported in a standard pickup or requires a flatbed delivery. It also informs foundation decisions — heavy fences on soft soil may require wider post footings or concrete collars to prevent settling.
Frequently Asked Questions
Board width selection balances aesthetics, structural performance, and cost. Wider boards (150 mm) cover more area per piece, reducing total board count and installation labour. However, wider boards are more prone to cupping and warping as moisture content fluctuates seasonally.
Narrower boards (100 mm) are dimensionally more stable and produce a finer visual rhythm, but require more pieces — and therefore more fasteners and more installation time — per metre of fence. For most residential privacy fences, 100–125 mm boards in 20–25 mm thickness offer the best compromise between stability, coverage, and economy.
The 0.8 m (approximately 2.6 ft) burial depth reflects a widely accepted rule of thumb in fence construction: embed at least one-third of the total post length below grade. For a 2.0 m fence with a 2.8 m total post length, 0.8 m is exactly 28.6 % — close to the one-third guideline.
This depth provides adequate lateral resistance against wind loads and prevents frost heave in temperate climates. In regions with deep frost lines (below 1.0 m), posts may need to be sunk deeper, which increases the total post length and volume. Always consult local building codes, as many jurisdictions specify minimum embedment depths for fences above certain heights.
The cost projection is a material-only estimate based on the total wood volume multiplied by the price per cubic metre of lumber. It provides a reliable baseline for comparing design alternatives — for example, quantifying how much more a board-on-board fence costs versus a spaced picket design.
However, it excludes several real-world cost components: fastener hardware, concrete for post footings, finishing materials (stain, paint, sealant), labour, equipment hire, and delivery fees. Typically, total installed fence cost runs 2–3 × the raw material cost for professional installation, or approximately 1.3–1.5 × for owner-built projects where only hardware and consumables are added.
Professional Conclusion
Accurate material estimation is the foundation of any well-executed fence project. Manual board counting across a 20-metre run with overlapping boards, multiple rail rows, and a realistic waste allowance involves dozens of interdependent calculations — each one an opportunity for costly arithmetic error.
Automated estimation eliminates that risk. By encoding the exact geometric and volumetric relationships between fence length, board dimensions, post spacing, and gap configuration, this tool produces a verified bill of materials in seconds — complete with volume breakdowns, weight projections, and cost benchmarks. The result is fewer surplus boards, fewer emergency lumber runs, and a project budget grounded in engineering rather than guesswork.