How to use this calculator
- Pick the right mode. Three tabs cover the lumber questions most framing jobs run into: Wall framing gives you studs, plates, headers, and sheathing for one or more walls; Floor / deck joists gives you joist count, rim, blocking, and subfloor for a floor system or deck; Board feet converts thickness × width × length × quantity into BF (and an optional cost if you enter a price). Pick whichever question you're trying to answer first — the other tabs stay there if you need them next.
- For walls, enter one wall at a time. Most framing projects aren't one straight wall — they're a back wall plus two sides plus an interior partition. Click "Add wall" up to five times and put each wall's length, height, and opening count separately. The calculator sums everything into one BOM. Stud spacing applies to all walls (typically 16″ on center; 24″ for advanced framing); openings (doors and windows) auto-add 2 king + 2 jack studs each, plus 2 cripples per window, plus a header sized by the IRC table.
- For joists, span × width sets everything. The span is how long each joist is (e.g., 12 ft); the width is how wide the floor or deck runs perpendicular to the joists. Joist size auto-defaults to 2×10 (good for ~15 ft floor spans per IRC), but you can pick 2×6 for short deck spans or 2×12 for long floor spans. Toggle rim joists, blocking (one row per 8 ft of span — IRC standard), and 3/4″ T&G subfloor on or off as your build calls for.
- For board feet, enter the stock piece. Pick thickness (2× for framing, 5/4 for decking, 4× for posts), width (4 for 2×4, 6 for 2×6, etc.), and length (most yards stock 8/10/12/14/16 ft). Enter quantity, and the calculator returns BF per piece and total BF using the industry formula
(T × W × L) ÷ 12. Add a price per BF (most softwood framing is $2–6/BF; hardwood lumber yards quote $5–25/BF) and the calculator returns total cost — useful for comparing yard quotes. - Print or copy the shopping list. The PDF is dated, branded, and lists every piece by name with subtitle context (e.g., "Header 2×8: 4 pcs — for openings 4–6 ft"). The "Copy list" button drops a clean text summary into your clipboard for texting to a spouse or pasting into a yard's quote form. Add ~10 % to sheathing and ~5 % to framing lumber for kerf loss and the inevitable warped board.
Why this lumber calculator is different
Most lumber calculators online answer one question and stop. After fetching the top 10 SERP results to compare, here's what's typical versus what this one adds:
- Most calculators are board-foot converters only. Lumber-yard sites (Lumber Capital, Hardwood Industries, Stonewood, Wisconsin Lumber, Parkerville) all ship a single-input
T × W × L × Qtyform. They answer "how many board feet are in this piece" but not "how many 2×4s do I need for a 12 ft wall." This tool covers both intents — board feet for stock pricing, and a full framing BOM for the actual build. - Most don't support multi-wall input. Real framing jobs are multiple walls, not one. Even the strongest direct competitor I found models a single wall at a time. This calculator sums up to 5 walls into one BOM, openings included, so you order once instead of running three separate calcs and reconciling totals manually.
- Most ignore door and window openings. Openings are the biggest framing-stud variable: each one adds 2 king + 2 jack studs and a header, and each window adds 2 cripples. Almost every other lumber calculator on the SERP makes you eyeball this. This tool asks for doors and windows per wall and computes the king/jack/cripple count and header schedule (by 2×6 / 2×8 / 2×10 / 2×12) automatically per IRC §R602.7.1.
- Most don't print a usable shopping list. Home Depot's project-calculator hub funnels you to SKUs at retail price. Lumber Capital wants you to call them. The standalone calcs give you a screen result you have to retype. This calculator outputs a one-page printable BOM with stud counts, plate LF, header schedule by size, sheathing sheets, hardware counts, and a board-feet total — ready to text to a spouse or hand to the yard counter.
- Nobody offers an embed. If you write about framing (contractor blog, /r/Construction, /r/HomeImprovement, /r/woodworking, framer's forum) the iframe at the bottom of this page lets you host the same calculator on your own site with attribution. Free, no signup, no analytics attached to the embed.
How it works (the math behind the numbers)
The wall framing math is well-established. For studs, the formula is the same one InchCalculator and every framing carpenter I've worked with uses:
field_studs = ceil(length_ft × 12 / stud_oc_in) + 1
opening_extras = (doors + windows) × 4 // 2 king + 2 jack per opening
window_cripples = windows × 2 // top + bottom cripples per window
total_studs = field_studs + opening_extras + window_cripples
plate_lf = ceil((double_top? 2 × L : L + L) × 1.05) // 5% waste
osb_sheets = sheathing? ceil(ceil(L × H / 32) × 1.10) : 0 // 10% waste The +1 on field studs accounts for the end stud closing the wall. Each opening adds 4 studs (2 king + 2 jack) and a header; windows add 2 cripples on top of that. Headers are sized per IRC 2021 §R602.7.1: openings ≤ 4 ft use double 2×6, 4–6 ft use double 2×8, 6–9 ft use double 2×10, 9–12 ft use double 2×12. Each header is two pieces of lumber, so the BOM doubles the count.
For joists, the count formula is similar — perpendicular spacing times width plus an end joist:
joist_count = ceil(width_ft × 12 / joist_oc_in) + 1
joist_lf = joist_count × span_ft
rim_lf = 2 × width_ft
blocking_lf = blocking_rows × (joist_count − 1) × (joist_oc_in − 1.5) / 12
plywood = ceil(ceil(span × width / 32) × 1.10) // 4×8 = 32 sqft, 10% waste
Blocking gets one row per 8 ft of span (IBC / IRC standard for solid blocking between joists). The bay-width formula (oc − 1.5) accounts for the actual 1.5″ thickness of a 2× joist — at 16″ oc you have 14.5″ between joists per bay. Joist size defaults are picked from IRC 2021 §R502.3.1 for #2 SPF at 16″ oc, 40 psf live load: 2×6 spans 9'-1", 2×8 spans 11'-11", 2×10 spans 15'-2", 2×12 spans 17'-6". Anything longer typically calls for engineered I-joists or LVL.
Board feet use the industry-standard nominal formula:
BF/piece = (thickness_in × width_in × length_ft) / 12
total BF = BF/piece × quantity Nominal means the size on the label, not the size after surfacing — a "2×4" is actually 1½″ × 3½″, but for board-foot pricing the industry uses the nominal 2 × 4. A standard 2×4×8 is 5.33 BF; a 2×10×16 is 26.67 BF. Cross-validated against InchCalculator's stud formula, IRC's published span tables, and HomeProjectCalculator's framing tool. The 15-fixture test file runs on every build, so the rendered tool can't drift from these inputs.
Three real-world examples
12 ft interior partition wall with one door, no sheathing
A 12 ft interior partition wall, 8 ft tall, 16″ on center, with one passage door (3 ft) and no windows. Sheathing turned off because it's an interior wall. The calculator returns: 14 studs (10 field + 4 king/jack), 38 LF of 2×4 plate (5% waste), 2 pieces of 2×6 for the door header. That's the math behind every closet wall, hallway wall, and basement-finish partition in residential framing. Cut a hair under 2 BF total framing lumber. If you're building this with a cordless drill and an impact driver, you'll be done with the framing in a Saturday.
12 × 16 ft second-story floor system, 16″ oc, 2×10 joists
A 12 ft joist span across a 16 ft wide room (typical second-floor bedroom or open-concept living dining), 16″ oc, 2×10 SPF #2 joists, full subfloor and blocking. The calculator returns: 13 joists (12 ft each = 156 LF), 32 LF of 2×10 rim joist, 29 LF of blocking, 7 sheets of 3/4″ T&G plywood, 26 joist hangers, ~384 subfloor screws. Total framing lumber for the floor system alone: ~360 BF of 2×10. Pair with a circular saw for cutting joists to length and a table saw for ripping the rim and blocking from full-length 2×10s.
100 2×4×8 studs at $4.50 per board foot
A common board-foot question: you're framing a single-car garage and the yard quotes you $4.50 per board foot for #2 SPF studs. You need ~100 studs in 2×4×8. The calculator returns: 5.33 BF per piece, 533 BF total, $2,400 for the studs. That's just the studs — you'd add plates, headers, and sheathing on top of that. The board-feet mode is the fastest way to compare yard quotes (some quote per BF, some per piece, some per bundle); converting everything to BF lets you see who's actually cheapest. Most softwood framing is $2–6 per BF depending on grade and region; hardwood lumber yards quote $5–25 per BF for furniture-grade material.
What changes how much lumber you actually need
The calculator gives you a strong starting point, but a real framing job has variables it can't see:
- Waste. The 5 % framing and 10 % sheathing margins built in cover saw kerf and standard miscuts. If you're framing on a steep slope, in tight quarters, or as a first-timer, bump those to 8 % and 15 %. The unused lumber is a known good investment; the second trip to the yard at 4pm on a Saturday is not.
- Opening sizes. The calculator assumes a typical 3 ft door and 3 ft window. A 6 ft slider, a 36 in entry, or a 8 ft garage door each have different header sizes (2×6 for ≤4 ft, 2×8 for 4–6 ft, 2×10 for 6–9 ft, 2×12 for 9–12 ft) and different king/jack stud requirements. If you have one oversized opening, run a second wall in the calculator with just that opening at the right width to get its specific header size, then add to your total.
- Local code. Most jurisdictions follow IRC, but amendments are common — hurricane zones may require additional bracing studs, seismic zones often call for thicker sheathing, and energy codes increasingly push 24″ oc with continuous insulation (advanced framing). Check with your local building official before ordering.
- Wood grade and species. The span tables here assume #2 SPF (Spruce-Pine-Fir, the most common framing species). Hem-fir, Douglas fir, and southern yellow pine have different (usually higher) spans. If you're using anything other than #2 SPF, pull the right table from the IRC before sizing joists.
- Regional pricing. Lumber prices vary by region and by year more than almost any other building material — 2×4 prices doubled from 2019 to 2022, then dropped 60 % over 2023. Always get a current quote from your local yard before ordering. The board-foot mode here is a comparison tool, not a price oracle.
For the build itself — cutting studs and plates, driving framing nails, ripping sheet goods, cutting headers — see Jake's reviews of circular saws (the framing carpenter's primary saw), miter saws (repeatable square crosscuts on studs and plates), table saws (ripping sheet goods and dimensional lumber), cordless drills (universal driver and pilot hole tool), and impact drivers (structural screws without stripping heads). For long workdays away from an outlet, a portable generator keeps everything running.
Frequently asked questions
How do I calculate how much lumber I need?
For framing: count the studs (length × 12 ÷ spacing + 1, plus 4 per opening and 2 cripples per window), the plates (double the wall length for a double top plate, plus the bottom plate, with 5 % waste), the headers (one per opening, sized by IRC R602.7.1), and the sheathing (wall area ÷ 32 sq ft per 4×8 sheet, with 10 % waste). For joists: count the joists (width × 12 ÷ spacing + 1), the rim (2 × width), and the subfloor (deck area ÷ 32). For stock pricing: convert everything to board feet using (thickness × width × length) ÷ 12. This calculator does all four automatically.
How many 2x4s will I need?
For a typical 8 ft tall wall at 16″ on center, you need ceil(wall_length_ft × 12 / 16) + 1 field studs, plus 4 extra per door or window opening (2 kings + 2 jacks), plus 2 cripples per window. A 12 ft wall with one door and one window needs 10 field + 8 (4 per opening) + 2 cripples = 20 studs. Add plate material on top of that — 24 LF of 2×4 for a double top plate plus 12 LF for the bottom plate, so roughly three 12 ft 2×4s for plates. Total: ~23 2×4 studs and 3 plate boards for a 12 ft wall.
How many board feet are in a 2x4x8?
A 2×4×8 contains 5.33 board feet using the industry formula (2 × 4 × 8) ÷ 12. Board feet use nominal dimensions — the size on the label, not the actual surfaced size (which is 1½″ × 3½″ for a 2×4). For other common stock: a 2×6×8 is 8 BF, a 2×10×16 is 26.67 BF, a 4×4×8 is 10.67 BF. Use the board-feet tab in the calculator above to convert any size and quantity in one step.
Can lumber calculators estimate wood cost?
Yes — the board-feet tab here has an optional "Price per board foot" input. Enter the yard's quoted price (most softwood framing is $2–6 per BF, depending on grade, region, and the year) and the calculator returns total cost. For framing-mode and joist-mode estimates, the calculator outputs total board feet which you can multiply by your local price. Lumber prices are volatile (they doubled from 2019 to 2022, then dropped 60 % through 2023), so always pull a current quote — the BF total here is the comparison tool, not a price oracle.
Can I embed this lumber calculator on my site?
Yes — copy the iframe snippet at the bottom of this page. The embedded version is a stripped-down variant designed for contractor blogs, /r/Construction and /r/HomeImprovement mods, framer's forums, woodworking communities, and lumber-yard sites that want to host a usable estimator alongside their pricing pages. Required attribution is built in. Free, no signup, no analytics attached to the embed.
Related tools
- Fence Calculator — posts, rails, pickets, concrete, and hardware for any wood, picket, split-rail, or chain-link fence.
- Retaining Wall Calculator — full BOM for a segmental retaining wall, including base, drainage, and geogrid.
- Metal Roofing Calculator — panels, screws, ridge cap, eave drip, and trim for any pole barn, garage, or house roof.
- Sonotube Calculator — full concrete pour plan for the deck or pole-barn footings going under your lumber-framed structure, with climate-region frost-line gate.
- Browse all free tools by Jake →
Recommended tools for the build
Framing is one of the most tool-hungry stages of any build — you're cutting, drilling, fastening, lifting, and squaring all day. Beyond the speed square and tape measure, here's what's on every Morrison-Construction framing job:
- Best Circular Saws — the framing carpenter's primary saw. Rips plates, crosscuts studs and joists, and notches headers faster than any miter setup. A 7-1/4″ corded or 60V cordless handles 2× framing all day.
- Best Table Saws — for ripping sheet goods (OSB, plywood subfloor) and dimensional lumber to width. Essential for headers built from 2× stock, ripping blocking from full-length 2×10s, and trim work.
- Best Miter Saws — repeatable square crosscuts on studs, plates, and headers. A 12″ sliding miter cuts 2×12 in one pass; a 10″ handles studs all day. The accuracy you can't match with a circular saw.
- Best Cordless Drills — for predrilling header connections, mixing adhesive with a paddle, and the occasional structural screw. Every framing crew has at least two.
- Best Impact Drivers — for driving structural screws into doubled plates, rim joists, and ledgers without stripping heads. The drill's faster cousin; saves time on every connection.
- Best Portable Generators — for long workdays away from an outlet. A 2,000–3,000 W inverter runs a circular saw plus a miter saw plus a drill all day on 1–2 gallons of gas.
Sources & methodology
- InchCalculator — How Many Studs Do You Need? — stud-count formula and per-opening adjustments.
- IRC 2021 §R602.7.1 — Header span table — header size by opening width (≤4 ft = 2×6, 4–6 ft = 2×8, 6–9 ft = 2×10, 9–12 ft = 2×12; doubled, supported by jack studs both sides).
- IRC 2021 §R502.3.1 — Floor joist span table — joist size by clear span for #2 SPF at 16″ oc, 40 psf live + 10 psf dead.
- APA Engineered Wood Association — subfloor sheathing standards (4×8 = 32 sq ft per sheet).
- HomeProjectCalculator — Lumber Calculator — cross-validation for stud-count and plate-LF formulas.
- Industry standard: board-foot formula
BF = (T × W × L) ÷ 12using nominal dimensions; length in feet, T and W in inches. Used by every U.S. lumber yard.
This calculator is reviewed annually for source currency. About Jake · Last reviewed May 14, 2026.
Embed this tool on your site
Free for contractor blogs, /r/Construction, /r/HomeImprovement, /r/woodworking, framer's forums, lumber-yard sites, and personal renovation logs. Required attribution is included in the snippet. No fee, no account, no analytics attached to the embed.
<iframe
src="https://diyrated.com/lumber-calculator/embed/"
width="100%"
height="820"
loading="lazy"
style="border:1px solid #e5dcd0; border-radius:16px; max-width:680px;"
title="Lumber Calculator (DIYRated)">
</iframe>
<p style="font-size:12px;color:#666;margin-top:8px">
Lumber calculator by
<a href="https://diyrated.com/lumber-calculator/">DIYRated</a>
· Reviewed by Jake Morrison, Licensed GC
</p>