Stud Wall Framing Calculator
How many studs, plates, headers, cripples, and pounds of nails does your wood-frame wall actually need? This free framing calculator gives DIYers and rough carpenters an instant material take-off — straight from 2021 IRC R602.3, R602.7, and R602.3(1) — with NO labor cost, NO pricing, and no guesswork about box-vs-common nail substitution.
Most online "stud calculators" stop at perimeter ÷ 16″. The real math layers on: corner adders (3 studs for a conventional California corner, 1 for an advanced-framing 2-stud corner with drywall clips), T-intersections (2 studs traditional, 0 with ladder blocking), king + jack studs per opening (from R602.7.5 wind-speed table), cripples above dropped headers and below window sills, and pressure-treated bottom plates wherever wood bears on concrete (R317.1). Forget any of those and you make a second trip to the lumberyard.
Header sizing is a 4-dimensional lookup — what the wall supports (roof + ceiling only, or +1 floor center-bearing, or +2 floors clear-span), ground snow (30 or 50 psf with interpolation), building width (12 / 24 / 36 ft with interpolation), and the size of header lumber you want to use. The calculator runs that lookup for every opening, returns the smallest size that works, flags openings that exceed prescriptive scope (LVL territory), and applies the 0.70 multiplier when the header is dropped below the top plate. Free, no signup.
Stud Wall Framing Calculator
Size studs, plates, headers, cripples, and fasteners for 2×4 and 2×6 wood-frame walls — straight from 2021 IRC R602.3, R602.7, R602.7.5 and R602.3(1).
Stud / wall configuration
16" o.c. is the default for bearing walls. 24" o.c. requires 2×6 for most bearing conditions (R602.3 Table R602.3(5)) and triggers advanced framing assumptions for corners and T-intersections.
Building inputs
Headers are tabulated at 30 psf and 50 psf with linear interpolation; building width at 12 / 24 / 36 ft (perpendicular to ridge). Wind > 140 mph or snow > 70 psf is outside IRC prescriptive scope.
Framing options
Walls
Openings
Related Calculators
Basement Remodel Calculator
Live basement finishing cost range — pick scope, size, finish, region. Egress, bath, sewage ejector adders explained. Free, no signup.
Drywall Calculator
Instantly calculate drywall sheets, joint compound, tape, screws & cost from your room dimensions. Supports 4×8 and 4×12 sizes. Free, no signup.
Insulation Calculator
Free insulation calculator for fiberglass batts, blown-in cellulose, spray foam & rigid board. Bags by square footage, R-value by climate zone, code check.
How to Use This Calculator
- Pick the global stud configuration: stud size (2x4 or 2x6), wall height (precut for 8, 9, or 10 ft), and stud spacing (16" o.c. default for bearing, 24" o.c. for advanced framing).
- Set the building inputs: what the headers support (roof + ceiling only is the lightest case), ground snow load in psf, building width in ft (perpendicular to ridge), and ultimate design wind speed Vult in mph.
- Pick framing options: conventional vs. advanced framing (2-stud corners + ladder T), double vs. single top plate (R602.3.2 exception), headers tight to top plate (avoids the 0.70 span reduction), and whether to include sheathing fasteners.
- Add each wall: length in ft, wall type (exterior bearing / interior bearing / non-bearing / gable), number of 90° corners on this wall, number of T-intersections, and linear feet of bottom plate that sits on concrete (drives the PT requirement).
- Add openings to each wall: door or window, rough-opening width and height in ft, and whether the header is braced tight to the top plate. The calculator runs the R602.7(1) / R602.7(2) header lookup per opening.
- Click Calculate: see studs to order (with waste), plate linear footage split into PT and KD, 16-ft stick counts, anchor bolt count for R403.1.6, a full header schedule with NJ jacks and king studs per opening, and a fastener weight schedule rounded up to standard package sizes (1, 5, 30, 50 lb).
- Read the installation notes — they cover top-plate offset, R317.1 PT compliance, R602.7.5 4-16d end-nailing per header, hurricane-region connectors when Vult > 115 mph, and the box-vs-common substitution rule.
How the Header Span Lookup Works
IRC R602.7(1) tabulates allowable header spans as a 4-dimensional lookup: load condition (rc / rc1cb / rc1cs / rc2cb / rc2cs) × ground snow (30 / 50 psf) × building width (12 / 24 / 36 ft) × header size (1-ply through 4-ply by lumber depth). Snow and width interpolate linearly per footnote. The calculator iterates from the smallest header size upward, picks the first that meets your rough-opening width, and returns NJ (jack studs per end) from the same row plus the king-stud count from Table R602.7.5 based on your wind speed. When the header is dropped below the top plate (not tight to the underside of the double top plate), the calculator multiplies tabulated 2×8 / 2×10 / 2×12 spans by 0.70 per footnote f — a common cause of undersized headers in remodels. Openings that exceed every prescriptive option flag for engineered LVL/LSL design.
Frequently Asked Questions
How many studs do I need for a wall?
Base studs = ⌈wall length in feet ÷ spacing in feet⌉ + 1 (the closing stud at the end of the run). At 16″ o.c. (1.333 ft) a 20-ft wall takes 16 + 1 = 17 base studs. Then add adders: 2 studs per 90° corner (conventional 3-stud California corner), 2 studs per T-intersection (conventional), 2 king + 2 jack per opening (with cripples above any dropped header and below every window sill at the same spacing). Round the final total up by 10–15% waste for cuts and culls. Advanced framing (24″ o.c. with 2-stud corners and ladder T-intersections) reduces the count by roughly 5–10%.
What size header do I need for a 5-foot rough opening?
For a 5-ft R.O. in an exterior bearing wall supporting roof + ceiling only, 30 psf snow, 24 ft building width, in No. 2 SPF/DF-L/Hem-Fir: per IRC R602.7(1) a two-ply 2×6 carries 4.5 ft tabulated — short. Step up to a 2-2×8 (6 ft tabulated, NJ = 1) or 2-2×10 (7.5 ft tabulated, NJ = 2 for added safety). If the header is dropped below the top plate (not tight to its underside), R602.7(1) footnote f multiplies the tabulated span by 0.70 — that drops the 2-2×8 to 4.2 ft and forces a 2-2×10. Add the R602.7.5 end-nail of 4-16d into each king stud, and the king count from Table R602.7.5 (1 king per end at this span and wind ≤ 140 mph).
Do I need pressure-treated bottom plates?
Yes — wherever the bottom plate bears on concrete or sits less than 8 inches above exposed earth, per 2021 IRC R317.1 (relocated to R304 in IRC 2024). This applies to exterior foundation walls AND to interior partitions on slab-on-grade unless an impervious moisture barrier separates the plate from the slab. Use AWPA U1 UC3B (above-ground exposed) or UC4A (ground contact) preservative-treated lumber, marked with the AWPA quality stamp. Fasteners into PT must be hot-dipped galvanized (ASTM A153), silicon bronze, or stainless steel — standard zinc-plated nails corrode within a few seasons in modern copper-based preservatives.
What's the difference between common and box nails?
Common and box nails of the same penny size (e.g. 16d) have the same length but different shank diameters. A 16d common is 3-1/2″ × 0.162″; a 16d box is 3-1/2″ × 0.135″. The smaller box shank gives box nails only 60–80% of the lateral capacity of commons per NDS Table 12N — and that's why IRC Table R602.3(1) tabulates separate counts for each. Do NOT substitute 1:1. The table lists alternates: where common spec is 16d at 16″ o.c., the box alternate is typically 10d box / 3″×0.131″ at 12″ o.c., or 16d box at 12″ o.c. Pneumatic clipped-head nails (3″ × 0.131″) substitute on the box schedule.
How does single top plate framing work?
IRC R602.3.2 allows a single top plate (in lieu of the standard double top plate) when three conditions are met: (1) every in-line top-plate joint is spliced with a 3″ × 6″ × 0.036″ galvanized steel splice plate fastened with 6-8d nails per side (or an equivalent wood splice per Table R602.3(1) Item 13); (2) rafters, trusses, or joists above are aligned with the studs below within 1″ — known as 'stack framing'; (3) at least one side of the wall is sheathed (typically wood structural panel). Single top plate is part of APA advanced framing and saves the 5-1/4″ of plate stack — but it requires planning the rafter / truss layout up front. Most production framers stick with the double top plate.
How many king studs go at each end of a header?
IRC Table R602.7.5 tabulates king (full-height) studs separately from jack studs. For wind ≤ 140 mph: 1 king per end for spans up to 6 ft, 2 kings for 6–10 ft, 2–3 kings for 10–14 ft. For higher wind exposures the count bumps up one tier. R602.7.5 also requires each king stud to be end-nailed to the header with 4-16d (3-1/2″ × 0.135″) — a connection that is in ADDITION to the built-up header face nailing of Table R602.3(1) Item 10. The 'NJ' column in R602.7(1)/(2) is jacks only; many estimators miss that the king-stud count is a separate lookup.
When does an opening need an engineered LVL header instead of dimensional lumber?
Switch to LVL when (1) the rough opening exceeds the largest dimensional span in R602.7(1)/(2) for your load condition — typically 12 ft for a 2-2×12, less for heavier loads; (2) you have point loads from above (girders, ridge beams, posts bearing on the header — R602.7 tables assume distributed load only); (3) the wall exceeds the tall-wall provisions of R602.3.1 Exception 2; (4) tributary roof load on a stud exceeds 6 ft; (5) the building is in a hurricane-prone region or SDC D2 with three or more stories. LVL is sized from the manufacturer's span tables (Boise Cascade Versa-Lam, Weyerhaeuser Microllam, Roseburg RFPI) — not from the IRC.
What stud spacing should I use — 16 or 24 on center?
16″ o.c. is the conservative default and is required by IRC R602.3 for certain configurations (utility grade studs, 2×4 bearing walls supporting two floors plus roof). 24″ o.c. is permitted by Table R602.3(5) for most 2×4 and 2×6 walls supporting only roof + ceiling, and for 2×6 walls supporting one floor + roof + ceiling. 24″ o.c. is the basis for APA Advanced Framing — it reduces stud count by ~33% and improves wall R-value (every stud is a thermal bridge), but it requires verification that drywall and sheathing have adequate support: 5/8″ drywall is typically required on 24″ o.c. ceilings, and exterior WSP sheathing may need a thicker panel.
How many anchor bolts do I need for the bottom plate?
IRC R403.1.6 sets the baseline at 1/2″ × 10″ anchor bolts at 6 ft on center, embedded at least 7″ into the foundation concrete, with washers (3″ × 3″ × ¼″ steel plate or equivalent). Minimum two bolts per plate piece. One bolt must be within 12″ (but not less than 4″) of each end of the plate piece. For Seismic Design Category D0–D2, or for two-story buildings, spacing tightens to 4 ft on center and 5/8″ bolts are often required. Hurricane-prone regions add an anchor strap (Simpson MAS / MASA) at every other stud to create the continuous load path from rafter heel down.
Why do I need cripples below a window but not always above?
Cripples maintain the same stud spacing as the rest of the wall so that interior finish and sheathing have continuous nailing every 16″ or 24″. Below the window: always required, between the bottom plate and the rough sill, because there's nothing else holding the sill flat against the wall plane. Above the header: required only when the header is dropped (set below the top plate, with empty cavity above). When the header is built tight to the underside of the double top plate — which is the recommended detail because it avoids the R602.7(1) footnote f 0.70 span reduction — there's no cavity above and no cripples are needed.