Home›Lumber Calculator
Lumber Calculator
Work out the lumber for a stud wall: how many studs, how many plate boards, the total board feet, and the cost. Openings are counted, and it works for 2×4 or 2×6 walls at 16 in or 24 in spacing.
Calculate your lumber
Studs = ceil(length ÷ spacing) + 1, plus 2 extra studs per opening (king + jack studs). Plates = 3 × wall length (one bottom plate, two top plates). Board feet = pieces × thickness × width × length ÷ 12, using the nominal size.
Your results
How the lumber formula works
A stud wall is three parts: the studs that run vertically, the plates that run horizontally (one bottom plate, two top plates), and the extra studs around openings. Count each part separately.
Studs = ceil(wall length ÷ spacing) + 1 — one extra stud for the end of the wall
Opening studs = 2 per opening — one king stud and one jack stud on each side
Plate length = 3 × wall length — bottom plate + double top plate
Plate pieces = ceil(plate length ÷ board length)
Board feet = pieces × (thickness × width × length ÷ 12) — nominal size
16 in on centre is the standard for load-bearing walls; 24 in is used for non-load-bearing partitions. A 2×6 wall uses the same stud count but about 50% more board feet, and it leaves room for thicker insulation — which is why it is common in cold climates. Headers over doors and windows need extra lumber (a doubled 2×8 or 2×10) on top of this count.
Worked example
A 12 ft wall, 8 ft high, 16 in spacing, 2×4 studs, 8 ft boards, 1 door, 5% waste:
Regular studs: ceil(12 × 12 ÷ 16) + 1 = ceil(9) + 1 = 10 studs
Opening studs: 1 door × 2 = 2 studs
Total studs: 10 + 2 = 12 studs
Plates: 3 × 12 = 36 lin ft ÷ 8 = 4.5 → 5 pieces
Total pieces: (12 + 5) × 1.05 = 17.85 → 18 pieces
Board feet: 18 × (2 × 4 × 8 ÷ 12) = 18 × 5.33 = 96 board feet
Cost at $4 per stud: 18 × $4 = $72
A 24 ft wall at the same spacing needs 19 regular studs plus 2 per opening. At 24 in spacing the same 12 ft wall needs only 7 regular studs — but check your code: 24 in spacing is not allowed for load-bearing walls in some jurisdictions.
How much does lumber cost? (US, 2026)
Prices are 2026 US retail ranges (Home Depot / Lowe's lists). Prices vary by region and move with the lumber market; check local prices before ordering.
| Item | Typical price |
|---|---|
| 2×4 × 8 ft stud (pine) | $3.50–$5.00 |
| 2×4 × 10 ft stud | $5.00–$7.00 |
| 2×6 × 8 ft stud | $5.00–$8.00 |
| 2×6 × 10 ft stud | $7.00–$10.00 |
| 2×4 × 12 ft board | $7.00–$10.00 |
Waste allowance
Add 5% for offcuts and the odd crooked or bowed stud — about one in twenty studs is too bent to use straight. Add 10% on a long wall with many cuts, or if you are buying economy-grade lumber. Sight down every stud before you buy: a bowed stud is waste before you even cut it.
Frequently asked questions
How many 2x4 studs do I need for a 12 foot wall?
At 16 in spacing, 10 regular studs plus 2 per opening. A 12 ft wall with one door needs 12 studs and 5 plate pieces — 18 pieces with 5% waste.
How do I calculate lumber for a wall?
Studs = wall length ÷ spacing, rounded up, plus 1, plus 2 per door or window. Plates = 3 × wall length (bottom + double top). Divide the plate length by the board length to get plate pieces.
How many studs are in a 24 foot wall?
At 16 in spacing, 19 regular studs (ceil(24 × 12 ÷ 16) + 1 = 19), plus 2 per opening. At 24 in spacing it is 13 regular studs.
What is the difference between 16 and 24 inch stud spacing?
16 in spacing is the standard for load-bearing walls and is required for tile backing and heavy fixtures. 24 in spacing saves about a third of the studs and is used for non-load-bearing partitions. Some codes do not allow 24 in spacing on exterior or load-bearing walls.
How many board feet are in a 2x4x8?
5.33 board feet (2 × 4 × 8 ÷ 12). See the Board Foot Calculator for any size.