How the Calculators Work
Every number on this site comes from a formula you can check. This page explains the math, the defaults we chose and why, the sources behind them, and what the calculators deliberately do not do.
The short version
- US board feet are counted on nominal sizes, the way US yards bill them. Metric markets use actual sizes and cubic meters.
- Framing counts come from laying out the members on the wall, floor or roof — not from a per-square-foot rule of thumb.
- Cut pieces are fitted into real stock lengths by a fast heuristic optimizer. It is good, not provably perfect.
- Waste allowances are inputs with sensible defaults (usually 10% for framing, 5–10% for decking and fencing). Change them to match your experience.
- Prices are editable samples dated October 2026, not quotes.
- Weights use wood densities after the USDA Forest Products Laboratory Wood Handbook.
- US code checks cite the International Residential Code (IRC) section. Your local code may differ — always check it.
- We do not size beams, joists, rafters or headers for load, and nothing here is engineering.
Board feet and lumber sizes
US: nominal sizes, per PS 20
US softwood lumber is named by nominal size. Under the American Softwood Lumber Standard (PS 20, administered with the American Lumber Standard Committee), a dry 2×4 actually measures 1½″ × 3½″; 2×4s and 2×6s are ½″ under nominal width, while 2×8, 2×10 and 2×12 are ¾″ under. Yards and price indexes still tally and price softwood by nominal board feet, so the calculators do too:
board feet = thickness (in) × width (in) × length (ft) ÷ 12
| Piece | Actual size (dry) | Board feet |
|---|---|---|
| 2×4 × 8 ft | 1½″ × 3½″ | 5.33 |
| 2×6 × 12 ft | 1½″ × 5½″ | 12.00 |
| 2×10 × 16 ft | 1½″ × 9¼″ | 26.67 |
| 4×4 × 8 ft | 3½″ × 3½″ | 10.67 |
A thousand board feet is one MBF. A price per MBF converts to a price per piece as MBF price ÷ 1,000 × board feet per piece.
Hardwood: quarter thickness
Hardwood follows the National Hardwood Lumber Association's quarter-inch naming: 4/4 is about 1″ rough, 8/4 about 2″. Board feet are tallied on the rough quarter thickness, not the surfaced thickness — an 8/4 board 7″ wide and 10 ft long is 11.67 board feet even though it planes to about 1¾″.
Metric markets: actual sizes
In Europe, the Nordic countries, Brazil, Japan and the Gulf, lumber is sold by its actual section in millimeters and priced per cubic meter or per running meter. The calculators use actual dimensions for volume there. For reference, 1 board foot = 0.0023597 m³, so 1 m³ ≈ 423.8 board feet.
Weight always uses actual size
Weight is real wood, so it is always computed from the actual section, never the nominal one: weight = actual volume × density.
Framing counts: layout, not rules of thumb
The wall, floor, roof, deck, shed and fence calculators lay members out the way a framer would and then count what they drew. The drawings you see on each calculator are generated from the same members as the lumber list.
- Studs, joists and rafters:
ceil(length ÷ spacing) + 1, then extra members for corners, intersections and openings (king and jack studs, minus the common studs an opening displaces). Cripples above and below openings are counted from the layout. - Plates: one bottom plate plus a double top plate, fitted into stock lengths.
- Headers: cut length = opening width + 3″ (1½″ of bearing on each jack stud). The header size is your input — see "What we do not do" below.
- Rafters: length is geometry —
run × √(1 + (pitch ÷ 12)²)plus the overhang at the same slope. - Sheathing and subfloor: area divided by the sheet area, with a waste allowance.
As a cross-check, a 20 ft wall, 8 ft high, at 16″ on center with two three-stud corners and one 36″ window comes to 22 studs, or 25 with 10% waste. The trade rule "one stud per foot of wall plus 10%" gives 22. Layout counts tend to land a little higher than the rule of thumb because they include corners and openings explicitly.
Stock lengths and the cut optimizer
Yards sell lumber in fixed lengths (8 to 20 ft in 2 ft steps in the US; market-specific lengths elsewhere). When a project needs cut pieces, the optimizer decides which lengths to buy and how to cut them:
- Cuts are sorted longest first.
- For each new board, it simulates a best-fit fill of every available stock length and keeps the one that wastes the smallest share of its length. Ties go to the longer board, so there are fewer pieces to carry.
- A saw kerf (3 mm, about ⅛″, by default) is charged between cuts.
- Pieces longer than the longest stock length are split and flagged so you can plan a splice.
This is a heuristic for a problem (one-dimensional cutting stock) that is expensive to solve perfectly. It is fast and deterministic and usually close to the best plan, but it does not guarantee the absolute minimum number of boards.
Waste allowances
Real jobs lose boards to crowns, splits, knots, wrong cuts and offcuts too short to use. Published framing estimates commonly add 10–15% for waste. The calculators use these defaults — the low end of that range for framing, because the layout already counts corners, openings and plates explicitly — and every one is an editable input:
| Work | Default | Why |
|---|---|---|
| Framing | 10% | Layout already counts corners |
| Decking and fencing | 5–10% | Culls and end trims |
| Sheet goods | about 10% | Openings and edges |
Waste is applied to piece counts and always rounded up — you cannot buy 0.4 of a board.
Prices
Each market ships with sample prices dated October 2026 so an estimate is never empty: lumber per MBF in the US and per cubic meter elsewhere, plus sheet goods per sheet and concrete per bag. They are typical retail starting points, not quotes. For context, the National Association of Home Builders reported the framing lumber composite at about $507 per MBF at the end of September 2026; retail yard prices run well above wholesale composites.
Every price is editable, and your prices are saved on your device. Lumber prices move weekly and vary from store to store, so enter your yard's prices before you rely on a total.
Wood densities and weight
Weights use typical air-dry densities (about 12% moisture content) for each species, after the USDA Forest Products Laboratory Wood Handbook and related tables. Douglas-fir, for example, is about 34 lb/ft³ air-dry, so a 2×4×8 weighs about 9.9 lb. Pressure-treated lumber is listed at its wet-from-the-plant weight, which is how it is usually bought and carried. Real boards vary by roughly 10–15% with moisture and growth.
Log rules
Log scale calculations follow the three common US log rules, using the small-end diameter inside the bark (D, inches) and log length (L, feet):
- Doyle:
(D − 4)² × L ÷ 16. Underestimates small logs and overestimates large ones. - Scribner: a diagram rule with no taper allowance; Scribner Decimal C rounds to the nearest 10 board feet.
- International ¼″: assumes a ¼″ kerf and ½″ of taper per 4 ft, and is the most consistent of the three.
The rules disagree substantially on small logs, which is why the results are shown side by side. Board feet for a 16 ft log, from Virginia Cooperative Extension:
| Diameter | International ¼″ | Scribner Dec C | Doyle |
|---|---|---|---|
| 12″ | 95 | 80 | 64 |
| 16″ | 180 | 160 | 144 |
| 20″ | 290 | 280 | 256 |
| 24″ | 425 | 400 | 400 |
Building code references (US)
Where a US calculator checks a rule, it cites the section of the International Residential Code (IRC) the rule comes from, for example:
- IRC R311.7.5.1 / R311.7.5.2 / R311.7.2 — stair riser height of at most 7¾″, tread depth of at least 10″, headroom of at least 6′8″.
- IRC Table R602.3(5) — 2×4 bearing studs may be spaced up to 24″ on center when they carry only a roof and ceiling, up to 10 ft tall.
- IRC R507 and the American Wood Council's DCA 6 deck guide — the 40 psf live / 10 psf dead load basis for prescriptive decks, cantilever no more than one quarter of the backspan, joist hangers at least 60% of joist depth.
Jurisdictions adopt different editions of the IRC and amend it. These checks are a reminder, not an approval: check your local code and your building department. Outside the US, the calculators do not claim compliance with any national code.
What we do not do
- No member sizing from loads. Joist, rafter, beam and header sizes depend on species, grade, spacing, span, snow and wind loads, and come from published span tables. Until those tables are transcribed and reviewed, the calculators take the member size as your input and count the material; they do not choose the size for you.
- No engineering. Nothing on this site is a structural design, a stamped drawing or a substitute for a licensed professional.
- No live prices. Prices are samples you edit, not a feed from any store.
- No fasteners-to-code schedules. Nail and screw counts, where shown, are estimates for shopping, not a fastening schedule.
Sources
- Southern Pine Inspection Bureau — Nominal vs. actual lumber sizes (PS 20)
- Southern Pine Inspection Bureau — Lumber size categories
- Southern Pine Inspection Bureau — Density of wood
- NIST — American Lumber Standard Committee comments on PS 20-20 (April 2024)
- Woodworkers Source — What does 4/4 mean? (NHLA quarter thicknesses)
- USDA Forest Service, Forest Products Laboratory — Wood Handbook: Wood as an Engineering Material
- Oregon Wood Innovation Center, Oregon State University — Table of relative working and physical properties of wood
- Virginia Cooperative Extension — Log rules and board-foot tables (CNRE-201)
- WOODWEB — Measuring logs and lumber
- International Code Council — International Residential Code (public access)
- Town of Timnath — 2018 IRC residential stair guide
- City of Blaine, MN — Basic wood framing (IRC Table R602.3(5))
- American Wood Council — DCA 6 Prescriptive Residential Wood Deck Construction Guide: updates and errata
- Fine Homebuilding — Get deck joists right (IRC R507 / DCA 6)
- Fine Homebuilding forum — Framing takeoff (stud rule of thumb)
- National Association of Home Builders — Framing lumber prices
Spotted a number that disagrees with a source, or a source we should add? Please tell us — corrections are reviewed and the fix is noted on this page's date.