Wall Framing Calculator

US & Canada

Enter the wall length, spacing, corners and openings to get the studs and plates to buy, with a stud size check against the IRC or NBC table.

Your wall

1. Wall size

ft
ft

One straight wall. Frame a house wall by wall and add up the lists.

2. Code and studs

The code and load are used for the stud size check. The NBC check covers exterior walls only.

3. Corners and openings

corners
studs
openings
in

1 extra stud gives each corner 2 studs, the NBC 9.23.10.5 minimum; raise it if your corner detail uses more. Opening studs follow IRC Table R602.7.5 or NBC 9.23.10.6.

4. Plates

ft
%

Both codes call for a bottom plate and a double top plate in bearing walls, with a single plate allowed only under set conditions. The allowance applies to studs.

Result

0

Shopping list

Shopping list

Layout studs in a door or window opening are left in the count to cover cripples and sills (our assumption). Headers are sized from span tables and are not included.

How the stud count works

  • Layout studs = wall length ÷ spacing, rounded down, + 1
  • Corners = corners × extra studs per corner (1 by default, so each corner has the NBC minimum of 2)
  • Openings, IRC = 1 jack stud + the full-height studs from Table R602.7.5, each side
  • Openings, NBC = 2 studs each side, or 3 where the lintel is over 3 m
  • Plates = wall length × 3 rows (1 bottom, 2 top), or × 2 with a single top plate

Layout studs that fall inside a door or window are left in the count; they cover the cripples above the header and below the sill. That is our assumption, not a code figure. Headers and their size come from span tables and are not counted here.

Layout studs by wall length

Calculated: layout studs only, before corners and openings.

Layout studs by wall length and spacing
Wall 16 in 24 in 400 mm 600 mm
8 ft (2.44 m) 7575
10 ft (3.05 m) 8686
12 ft (3.66 m) 107107
16 ft (4.88 m) 139139
20 ft (6.1 m) 16111611
24 ft (7.32 m) 19131913
30 ft (9.14 m) 23162316
40 ft (12.19 m) 31213121

Stud size and spacing: IRC 2021

From Table R602.3(5), maximum spacing in inches. Bearing studs are limited to a 10 ft laterally unsupported height; non-bearing 2 × 4s to 14 ft and 2 × 6s to 20 ft, at up to 24 in.

IRC 2021 Table R602.3(5), bearing walls, maximum stud spacing
Wall carries 2 × 4 2 × 6
Roof and ceiling only 24 in 24 in
Roof plus one floor 16 in 24 in
Roof plus two floors Not listed 16 in

Footnote c: a habitable attic on 2 × 4 studs is limited to a 32 ft roof span; beyond that, use 2 × 6 or an engineered design. 2 × 3 studs "shall not be used in exterior walls".

Stud size and spacing: NBC 2020

From Table 9.23.10.1, exterior walls, as printed: maximum spacing and maximum unsupported height.

NBC 2020 Table 9.23.10.1, exterior walls
Wall carries 38 × 89 mm (2 × 4) 38 × 140 mm (2 × 6)
Roof and ceiling only 600 mm, 3.0 mSee table
Roof plus one floor 400 mm, 3.0 m600 mm, 3.0 m
Roof plus two floors 300 mm, 3.0 m400 mm, 3.6 m

The table also lists 38 × 64 mm at 400 mm (2.4 m) under a roof only, 64 × 89 mm at 400 mm (3.0 m) with two floors, and 38 × 140 mm at 300 mm (1.8 m) with three floors. "See table" means that size has no separate row for that load in the part we read. Interior wall rows are left out on purpose: the PDF text merged some cells, so confirm interior walls against the printed table. Ontario's amendments re-issue Table 9.23.10.1 with the same exterior values.

Studs at openings: IRC Table R602.7.5

Minimum full-height studs at each end of a header in an exterior wall, in addition to the jack stud(s).

IRC 2021 Table R602.7.5, full-height studs at each end of headers
Header span Under 140 mph Exp. B or 130 mph Exp. C 115 mph or less, Exp. B
4 ft (1.22 m) 1 1
6 ft (1.83 m) 2 1
8 ft (2.44 m) 2 1
10 ft (3.05 m) 3 2
12 ft (3.66 m) 3 2
14 ft (4.27 m) 3 2
16 ft (4.88 m) 4 2
18 ft (5.49 m) 4 2

For spans between rows, the table's footnote says use the larger span. The second column assumes jack studs, not framing anchors.

Sources

Stud counts, metric equivalents of inch spacings (16 in = 406.4 mm, 24 in = 609.6 mm) and plate lengths are calculated. NBC values are from the 1st printing; check the 2nd printing (errata of March 31, 2025) for any change to Table 9.23.10.1.

Common questions

How many studs for a 20 ft wall at 16 in on centre?
20 ft is 240 in; 240 ÷ 16 = 15 spaces, plus one stud to close the last space, so 16 studs before corners and openings. At 24 in on centre, 11.
How do I count studs for windows and doors?
Under the IRC, each side of a header gets at least one jack stud (R602.7.5) plus the full-height studs in Table R602.7.5: 1 for a 4 ft header, 2 for 6 or 8 ft, 3 for 10 to 14 ft and 4 for 16 or 18 ft in the stronger wind column. Under the NBC, studs are doubled each side of an opening, or tripled where the lintel is over 3 m (9.23.10.6).
How many studs does a corner need?
NBC 2020 9.23.10.5: exterior corners must be framed with no less than the equivalent of 2 studs. The calculator adds 1 extra stud per corner by default to reach that; raise it if your corner detail uses more.
Do I need a double top plate?
Usually. IRC R602.3.2 calls for a double top plate, with end joints offset at least 24 in; a single plate is allowed only when tied at corners and splices and the joists or rafters sit within 1 in of the studs. NBC 9.23.11.3 requires at least 2 top plates in loadbearing walls, with a single plate allowed where loads are within 50 mm of the studs, and in all non-loadbearing walls.
Can I frame exterior walls with 2 × 4s at 24 in on centre?
Under IRC Table R602.3(5), 2 × 4 bearing studs can be 24 in on centre when they carry only a roof and ceiling, 16 in when they also carry one floor, and are not listed for two floors. Height is limited to 10 ft. Under NBC Table 9.23.10.1, 38 × 89 mm exterior studs can be 600 mm on centre under a roof only and 400 mm with one floor above.
What does a 20 ft wall with 2 corners and 2 windows need?
With 3 ft openings under the IRC: 16 layout studs, 2 at corners and 8 at the openings, so 26 studs, plus 60 linear ft of plate (6 boards of 16 ft).
What changes for a 10 ft opening?
A 10 ft header under the IRC needs 1 jack plus 3 full-height studs each side in the stronger wind column, so a 20 ft wall with one 10 ft opening needs 24 studs before corners. In NBC terms, a lintel over 3 m (9 ft 10 in) triples the studs each side: a 20 ft wall at 400 mm with two corners and one 3.2 m opening needs 24.