Introduction
Behind every pressure-treated lumber takeoff are a handful of simple formulas: divide a run by spacing to count pieces, multiply pieces by length for linear footage, convert to board feet for pricing, and add a waste allowance. None of the math is hard — the skill is knowing which dimensions are real (actual, not nominal) and what counts as spacing (gap included for decking, on-center for joists).
The Pressure Treated Lumber Calculator applies these formulas automatically in metric or imperial. This guide shows each formula, where it applies, and a fully worked example cross-checked in both unit systems — so you can verify any result by hand. If you’re unsure which formula fits your project, the FAQ answers the most common “which math do I use” questions.
Formula 1: Piece Count from Spacing
Pieces = (Run ÷ Spacing) + 1, rounded up.
This is the master formula for anything laid out at intervals — joists, rafters, fence posts, balusters. The “+ 1” accounts for the starting piece: 12 spaces need 13 joists.
Example — joists: a 16 ft (4.88 m) run at 16 in (406 mm) on-center. Imperial: (16 × 12) ÷ 16 = 12, + 1 = 13 joists. Metric: 4,880 ÷ 406 = 12.02, + 1 = 13.02 → 13 joists.
Example — fence posts: a 100 ft (30.48 m) run with posts every 8 ft (2.44 m). Imperial: 100 ÷ 8 = 12.5, + 1 = 13.5 → 14 posts (actual spacing becomes 100 ÷ 13 = 7.69 ft). Metric: 30.48 ÷ 2.44 = 12.49, + 1 = 13.49 → 14 posts. Always round post counts up — a fractional post is a missing post.
Formula 2: Decking and Picket Counts
Boards = Deck width ÷ (Board width + Gap), rounded up.
The critical detail: spacing here is actual board width plus the gap, not on-center spacing. Use actual widths — 5.5 in (140 mm) for “6-inch” decking, not 6.
Example — decking: 16 ft (4.88 m) of deck width, 5/4×6 boards (5.5 in / 140 mm actual), 1/4 in (6 mm) gap. Pitch = 5.75 in (146 mm). Imperial: 192 ÷ 5.75 = 33.39 → 34 boards. Metric: 4,880 ÷ 146 = 33.42 → 34 boards.
Example — pickets: 100 ft (30.48 m) of fence, 1×6 pickets (5.5 in / 140 mm actual), no gap. Imperial: 1,200 ÷ 5.5 = 218.18 → 219 pickets. Metric: 30,480 ÷ 140 = 217.7 → 218 pickets — the 1-board difference is rounding in the metric board width (139.7 mm actual); use 139.7 mm for precision: 30,480 ÷ 139.7 = 218.18 → 219, matching exactly. For board-on-board styles, see the estimating guide.
Formula 3: Linear Feet (and Meters)
Linear footage = Pieces × Length per piece.
Linear feet is how most framing is priced and delivered. From the deck example: 34 decking boards × 12 ft = 408 linear ft; 13 joists × 12 ft = 156 linear ft. In metric: 34 × 3.66 m = 124.4 m; 13 × 3.66 m = 47.6 m. Check: 124.4 m × 3.28084 = 408.1 ft ✓.
Formula 4: Board Feet
Board feet = (Nominal thickness [in] × Nominal width [in] × Length [ft]) ÷ 12.
Board feet use nominal dimensions — the one place nominal is correct. One board foot = 144 cubic inches of nominal lumber.
Example: a 2×8×12 contains (2 × 8 × 12) ÷ 12 = 16 board feet. Metric equivalent: nominal 50 × 200 mm × 3.66 m = 0.0366 m³; 1 m³ = 423.78 board feet → 0.0366 × 423.78 = 15.5 ≈ 16 board feet (difference is rounding of the metric nominal sizes). Useful when a supplier prices hardwoods or wide stock by the board foot — see the cost guide for when that matters.
Formula 5: Waste Allowance
Order quantity = Calculated quantity × (1 + Waste %).
The waste factor covers cutoffs, defects, cull boards, and measuring mistakes — then round up to whole purchasable lengths.
| Project type | Suggested waste |
|---|---|
| Straight fence run, rectangular deck | 5–10% |
| Typical deck with stairs or railing | 10% |
| Angled deck, curves, pergola rafter tails | 10–15% |
| First-time DIY build | add ~5% to the above |
Example: 34 decking boards at 10% waste → 34 × 1.10 = 37.4 → 38 boards. 13 joists → 13 × 1.10 = 14.3 → 15 joists.
Formula 6: Concrete for Posts (Bonus)
Bags = Posts × Bags per post. A standard 4×4 post in an 8–10 in (200–250 mm) diameter hole, 2–3 ft (0.6–0.9 m) deep, takes roughly two 50-lb (22.7 kg) bags of concrete mix. Fourteen fence posts → 28 bags. (Volume purists: a 10-in-diameter, 30-in-deep hole is ~1.36 ft³; a 50-lb bag yields ~0.375 ft³, so 3.6 bags — but the post itself displaces volume, and 2 bags per post is the field rule that works.)
Full Worked Example: Both Systems Side by Side
A 12 × 16 ft (3.66 × 4.88 m) deck — decking boards 12 ft (3.66 m) long across a 16 ft (4.88 m) width, joists 12 ft long at 16 in (406 mm) on-center, 10% waste:
| Step | Imperial | Metric |
|---|---|---|
| Decking pitch | 5.5 + 0.25 = 5.75 in | 140 + 6 = 146 mm |
| Board count | 192 ÷ 5.75 = 33.39 → 34 | 4,880 ÷ 146 = 33.42 → 34 |
| Decking linear | 34 × 12 = 408 ft | 34 × 3.66 = 124.4 m |
| Joist count | (192 ÷ 16) + 1 = 13 | (4,880 ÷ 406) + 1 = 13.02 → 13 |
| Joist linear | 13 × 12 = 156 ft | 13 × 3.66 = 47.6 m |
| With 10% waste | 38 boards, 15 joists | 38 boards, 15 joists |
Every row agrees across systems — that agreement is your error check. If the metric and imperial answers diverge, one input wasn’t converted. A step-by-step project version of this example, including beams and posts, is in the estimating guide.
Related Guides
- Complete Guide — the full overview of PT lumber estimating.
- Estimating Guide — a step-by-step takeoff walkthrough with a worked deck.
- Common Mistakes — the arithmetic and measurement errors that distort results.
- Material Guide — ratings and treatments that affect which formula inputs you use.
- FAQ — quick answers on the math behind PT lumber counts.
Get Your Number
The formulas are short; accuracy lives in the inputs. Measure in one unit system, use actual dimensions for spacing math and nominal for board feet, include every gap, and round piece counts up before applying waste. Run your project through the Pressure Treated Lumber Calculator, then hand-check one member type with the formulas above — if your manual count matches, the rest of the takeoff is trustworthy.
Disclaimer: Calculator results are planning estimates only — actual material needs vary with site conditions, cutting losses, board quality, and product availability. Verify quantities with your supplier, check local building requirements, and consult a licensed professional for structural or code-related decisions.
