Wall framing calculator
Enter one wall's length and height, its studs and each door and window rough opening. You get every stud by kind (on layout, king, jack, cripple and corner), the plates, any fireblocking, a header for each opening read from the International Residential Code's header tables, a drawing of the wall and a lumber list in board feet.
More: ends, plates, wind
Traditional rule, stated by This Old House and PNNL Building America Solution Center
Studs to buy
13
2x4 × 8 ft: 9 full height, cut to 7 ft 8 5/8 in, and 4 to cut jacks, cripples and sills from
- On layout
- 7
- Kings
- 2
- Jacks
- 2
- Cripples
- 4
- Corners
- 0
- Plate
- 36 ft
Opening 1: 2-2x4 header
Table R602.7(1) allows 3 ft 1 in here for this 3 ft opening. 1 jack and 1 king each side.
Cripples: 2 above at 8 5/8 in, 2 below at 2 ft 7 in.
Also spans: 2-2x6, 2-2x8, 2-2x10, 2-2x12.
One source: the IRC (2021 and 2024 IRC), the code itself
- OK: 2x4 studs 16 in on center: Table R602.3(5) allows up to 24 in here.
- OK: 7 ft 8 5/8 in studs: Table R602.3(5) allows up to 10 ft between supports.
- OK: No mid-height fireblocking: the wall is 10 ft or less (R302.11).
Check your local code: jurisdictions adopt different editions and amend them, and your building department sets the ground snow load and wind speed.
Why: 9 full-height studs, 3 rows of plate, a header: 2-2x4.
Wall elevation
Seen from the face of the wall, its start on the left. Headers, kings and jacks are in the accent colour; cripples and rough sills are shaded. Studs sit centred on the layout marks, the end studs flush with the ends.
Lumber list
| For | Pieces | Size | Board feet |
|---|---|---|---|
| studs | 9 | 2x4 × 8 ft | 48 |
| cut pieces | 4 | 2x4 × 8 ft | 21.33 |
| headers | 1 | 2x4 × 8 ft | 5.33 |
| plates | 3 | 2x4 × 12 ft | 24 |
| Total | 98.67 | ||
Board feet are counted at nominal size on the stock length. Jacks, cripples, rough sills and fireblocks are packed onto stud stock with a 1/8 in kerf; header plies onto the shortest even length that holds them. No waste allowance is added.
Why these numbers?
The situation
A 12 ft wall of 2x4 studs 16 in on center, 1 opening.
From your input: the wall
What that means
Table R602.3(5): 2x4 studs in this wall go 24 in on center at most and 10 ft between lateral supports.
One source: International Code Council, the code itself , sources [1, 2]
So
Studs centred every 16 in from one end and one at the other end, 7 ft 8 5/8 in long under 3 plates: 7 on the layout.
Arithmetic: exact by definition
What that means
Table R602.7(1): the header for each opening by its span, the building width (24 ft) and ground snow (30 psf), with the jack studs (NJ) each end needs; 2x8 and deeper headers with cripples on top span 0.70 of the table.
One source: International Code Council, the code itself , sources [1, 2]
What that means
Table R602.7.5: the full-height (king) studs each end of an exterior header needs, by its span and the wind speed.
One source: International Code Council, the code itself , sources [1, 2]
So
Layout studs inside each opening’s framing are dropped; those inside the rough opening become cripples, so the layout carries on: 2 kings, 2 jacks, 4 cripples.
Arithmetic: exact by definition
The number
Check your local code: jurisdictions adopt different editions and amend them, and your building department sets the ground snow load and wind speed.
From your input: where you build
Sources
- International Code Council, 2024 International Residential Code, Chapter 6: R602.3 studs and plates, Table R602.3(5), R602.7 headers, Tables R602.7(1), R602.7(2) and R602.7.5 (free read-only text), read 2026-11-08
- International Code Council, 2021 International Residential Code, Chapter 6: the same sections and tables, printed identically (free read-only text), read 2026-11-08
Stud calculator: how the studs are counted
Studs are laid out from the wall's start, one every 16 or 24 inches on center, so sheathing and drywall edges land on them, with one more at the far end when the length isn't a whole number of spaces. A 12 foot wall at 16 inches is 9 spaces and 10 studs. An outside corner takes three studs by the usual method, the third backing the drywall inside; the advanced-framing corner uses two and carries the drywall on clips.
Each opening is framed out from its rough opening: jack studs under each end of the header, then the full-height king studs the header is nailed to. Layout studs that would fall in that framing are left out, and those inside the rough opening become cripples, above the header and, for a window, below the rough sill, so the layout carries on across the opening. The stud length is the wall height less the plates: an 8 foot 1 1/8 inch wall with a double top plate takes 92 5/8 inch studs.
Header size calculator: what the IRC tables say
Headers in exterior bearing walls come from IRC Table R602.7(1), and in interior bearing walls from Table R602.7(2). Each gives the longest opening a header of two, three or four 2x members (or one, between flat plates) may span, by what the wall carries, the building's width across the ridge and, outside, the ground snow load, with the number of jack studs each end needs. The tables are the same in the 2021 and 2024 editions. Widths between the columns are interpolated, as footnote c permits; snow loads round up to the next column, and under 30 psf use 30 where the roof live load is 20 psf or less. Where cripples bear on top of a 2x8, 2x10 or 2x12 header, its span is 0.70 of the table, because nothing braces its top edge. King studs in exterior walls follow Table R602.7.5, by the header's span and the design wind speed. A nonbearing partition needs no load-bearing header: a flat 2x does for an opening up to 8 feet with the plate within 24 inches above it.
Studs are checked against Table R602.3(5): 2x4 studs carrying a roof only go 24 inches on center, carrying a floor as well 16 inches, and can't carry two floors; bearing studs stop at 10 feet between supports, and partition studs at 14 feet for a 2x4 and 20 for a 2x6. Walls over 10 feet tall get a row of fireblocking every 10 feet (R302.11).
What the calculator will not do
The tables are for No. 2 Douglas fir-larch, hem-fir, Southern pine and spruce-pine-fir. An opening wider than any header in the table spans, a building wider than 36 feet, a ground snow load over 70 psf or a stud taller than the table allows needs an engineered header or stud (LVL, glulam, steel), so the calculator refuses it rather than guess. Wall bracing, hold-downs, sheathing and nailing schedules are not worked out here. Check your local code: jurisdictions adopt different editions and amend them, and your building department sets the snow load and wind speed.
The board foot calculator prices the lumber list, the 2x4 actual size page shows why a 2x4 is 3 1/2 inches wide, and the deck calculator and stair calculator do the rest of the framing.
Sources
- International Code Council, 2024 International Residential Code, Chapter 6: R602.3 studs and plates, Table R602.3(5), R602.7 headers, Tables R602.7(1), R602.7(2) and R602.7.5 (free read-only text), read 2026-11-08
- International Code Council, 2021 International Residential Code, Chapter 6: the same sections and tables, printed identically (free read-only text), read 2026-11-08
- International Code Council, 2024 and 2021 International Residential Code, R302.11 Fireblocking, item 1 (free read-only text), read 2026-11-08
- This Old House, How to frame a corner: two studs at the plate ends and a third nailed inside for backing, read 2026-11-08
- JLC, Training the Trades, basic wall framing: the two-stud California corner and on-center stud layout, read 2026-11-08
- PNNL Building America Solution Center, Advanced framing, insulated corners: two-stud corners with drywall clips, against the conventional three, read 2026-11-08
- NIST, PS 20-25 American Softwood Lumber Standard, Table 3: minimum dressed sizes, read 2026-11-07