Wall framing calculator
Enter the wall length and height, the stud spacing, and the doors and windows. The calculator lays out the wall and counts the studs, the king, jack and cripple studs, the headers and the plates. A drawing shows the wall from the front, to scale.
How the calculator works
- Stud length. The wall height less the bottom plate and the top plates: 96 − 3 × 1 1/2 = 91 1/2 in for an 8 ft wall with a double top plate.
- Layout. A stud at each end, and studs on centers measured from the left end: 16, 32, 48 in and on. Where a door, a window or a meeting wall falls on the layout, its own studs take the place of the layout studs.
- Corners. At each end that meets another wall at a corner, one more stud beside the end stud, to carry the other wall's drywall.
- Openings. Each door and window gets king studs from plate to plate, jack studs under the header, and a header. A window also gets a sill and cripple studs under it. Cripples above a header stand on the layout.
- King studs. In an exterior wall, the number at each side of a header comes from IRC Table R602.7.5. In an interior wall, one at each side.
- Studs to buy. The full-height studs, plus the studs that the jacks and cripples are cut from, plus the spares, rounded up.
- Plates. The wall length once for the bottom plate and once for each top plate, plus the sills and a flat header, divided into boards of the length you buy.
Worked example
An exterior wall is 20 ft (6.10 m) long and 8 ft (2.44 m) high, with studs 16 in (406 mm) on center and a corner at both ends. It has one 36 × 80 in door and two 36 × 48 in windows, double 2 × 8 headers, one jack stud at each side and a double top plate.
| Step | Calculation | Result |
|---|---|---|
| Stud length | 96 in − 3 × 1 1/2 in | 91 1/2 in (2324 mm) |
| Layout and end studs | 14 layout marks, 8 of them inside the openings, plus 2 end studs | 8 |
| Corner studs | 1 at each end | 2 |
| King studs | 3 openings × 2 sides × 1 | 6 |
| Full-height studs | 8 + 2 + 6 | 16 |
| Jack studs | 3 openings × 2, each 81 in long | 6 studs |
| Cripples above the headers | 8 pieces of 3 1/4 in, from 1 stud | 1 stud |
| Cripples under the windows | 8 pieces of 31 1/2 in, 2 from each stud | 4 studs |
| Studs to buy | (16 + 6 + 1 + 4) × 1.10 = 29.7 | 30 studs |
| Header boards | 2 × 41 in for the door, 4 × 39 in for the windows | 6 boards of 2 × 8 |
| Plates | 3 × 20 ft + 2 sills × 36 in | 66 ft (20.1 m) |
| Plate boards | 66 ft ÷ 16 ft = 4.1 | 5 boards of 16 ft |
| Sheets, one side | (160 − 45.8) sq ft ÷ 32 sq ft = 3.6 | 4 sheets of 4 × 8 ft |
The rough openings are 38 × 82 1/2 in for the door and 36 × 48 in for the windows, with the sills at 34 1/2 in. A header is the opening plus a jack stud at each side: 38 + 2 × 1 1/2 = 41 in. With studs 24 in (610 mm) on center, the same wall takes 28 studs.
Studs by wall length
For a straight wall with no openings, corners or walls that meet, divide the length in inches by the spacing, round up, and add 1 for the stud at the start.
| Wall length | 16 in on center | 24 in on center |
|---|---|---|
| 8 ft (2.44 m) | 7 | 5 |
| 10 ft (3.05 m) | 9 | 6 |
| 12 ft (3.66 m) | 10 | 7 |
| 16 ft (4.88 m) | 13 | 9 |
| 20 ft (6.10 m) | 16 | 11 |
| 40 ft (12.19 m) | 31 | 21 |
The counts are before spares. Each corner, opening and meeting wall adds studs; the calculator counts them.
Stud spacing in the IRC
The International Residential Code (IRC) gives the largest stud spacing in Table R602.3(5). These are the limits for 2 × 4 and 2 × 6 studs.
| Wall | 2 × 4 studs | 2 × 6 studs |
|---|---|---|
| Bearing, supports a roof and ceiling only | 24 in | 24 in |
| Bearing, supports one floor and a roof and ceiling | 16 in | 24 in |
| Bearing, supports two floors and a roof and ceiling | Not allowed | 16 in |
| Nonbearing | 24 in | 24 in |
The table also limits the stud height between supports: 10 ft for 2 × 4 and 2 × 6 bearing studs, 14 ft for 2 × 4 and 20 ft for 2 × 6 nonbearing studs. Section R602.3.2 asks for a double top plate, with an exception for a single top plate tied with steel plates. Interior nonbearing walls need at least a single top plate (R602.5).
King studs, jack studs and headers
A header carries the load over an opening. Jack studs under its ends carry it to the bottom plate, and king studs beside them run from plate to plate. IRC Table R602.7.5 gives the king studs at each end of a header in an exterior wall, for wind under 140 mph in exposure B or under 130 mph in exposure C.
| Header span | King studs at each end |
|---|---|
| Up to 4 ft (1.22 m) | 1 |
| Over 4 ft, up to 8 ft (2.44 m) | 2 |
| Over 8 ft, up to 14 ft (4.27 m) | 3 |
| Over 14 ft, up to 18 ft (5.49 m) | 4 |
For a span between two rows of the IRC's table, the larger row applies. The calculator takes the rough opening width as the span. The header size and the number of jack studs depend on the span, the loads and the snow; IRC Table R602.7(1) gives them for exterior bearing walls. The calculator does not size headers: choose the size from your plans or that table.
A nonbearing wall needs no load-bearing header. IRC section R602.7.4 allows one flat 2 × 4 as the header over an opening up to 8 ft (2.44 m) wide, with no cripples above it, when the space to the top plate is 24 in (610 mm) or less. Where the space is larger, the calculator puts cripples on the layout above it.
Lumber sizes
A 2 × 4 is not 2 by 4 inches. The American Softwood Lumber Standard, PS 20, gives the dry dressed sizes.
| Nominal size | Actual size | In millimeters |
|---|---|---|
| 2 × 4 | 1 1/2 × 3 1/2 in | 38 × 89 mm |
| 2 × 6 | 1 1/2 × 5 1/2 in | 38 × 140 mm |
| 2 × 8 | 1 1/2 × 7 1/4 in | 38 × 184 mm |
| 2 × 10 | 1 1/2 × 9 1/4 in | 38 × 235 mm |
| 2 × 12 | 1 1/2 × 11 1/4 in | 38 × 286 mm |
Two 2 × 8 boards with a 1/2 in spacer make a header as thick as a 2 × 4 wall is deep. The calculator counts the boards; it does not count the spacer.
Corners and walls that meet
Exterior corners are typically framed with three studs. The U.S. Department of Energy notes that the third stud generally only gives the drywall a nailing edge, and that a two-stud corner with drywall clips leaves more room for insulation. The calculator counts the third stud in the wall you enter; the other wall's end stud belongs to that wall. For a two-stud corner, choose None.
Where a wall butts into this wall between its ends, the calculator adds a stud at each side of the meeting wall, 3 1/2 in (89 mm) apart, to take its end stud and the drywall.
To board the wall, use the drywall calculator: it adds waste and counts the joint compound, tape and screws.
Questions
How many studs do I need for a 12 ft wall?
10 studs at 16 in on center and 7 at 24 in on center, for a wall with no openings or corners. Add 10 % for spares: 11 and 8. Each door, window and corner adds studs.
How do I calculate studs 16 inches on center?
Divide the wall length in inches by 16, round up, and add 1. A 20 ft wall is 240 in: 240 ÷ 16 = 15, plus 1 is 16 studs. Then add the studs for corners, openings and meeting walls, and spares.
How many studs per foot of wall?
About 3/4 of a stud for each foot at 16 in on center, and 1/2 at 24 in on center, plus one. With openings and corners, a wall takes more.
How long are the studs for an 8 ft wall?
91 1/2 in (2324 mm) with a bottom plate and a double top plate: 96 − 3 × 1 1/2 in. With a single top plate, 93 in.
How many studs go beside a door or window?
At each side, a jack stud under the header and a king stud from plate to plate. In an exterior wall, IRC Table R602.7.5 asks for 2 king studs at each side of a header over 4 ft and up to 8 ft, and more for wider spans.
What is a cripple stud?
A short stud above a header or below a window sill. Cripples stand on the stud layout, so that sheathing and drywall have something to fasten to.
Does an interior wall need a header?
A nonbearing wall needs no load-bearing header (IRC R602.7.4). One flat 2 × 4 may serve over an opening up to 8 ft wide when the space above it is 24 in or less. An interior bearing wall is framed like an exterior wall (R602.4).
How much extra lumber should I buy?
A typical allowance is about 10 % more studs, for bent, split and miscut ones. Type your own percent in the calculator.
Sources
- International Code Council: 2021 International Residential Code, chapter 6, Wall construction
- City of Seattle: 2021 Seattle Residential Code, chapter 6, with sections R602.3, R602.5, R602.7.4 and R602.7.5 and Tables R602.3(5) and R602.7.5 of the International Residential Code (PDF)
- NIST: Voluntary Product Standard PS 20-20, American Softwood Lumber Standard, Table 3 (PDF)
- U.S. Department of Energy: Advanced framing, insulated corners
- The Home Depot: Interior prehung door installation, prehung unit size selector (PDF)
- Drywall calculator
- Ceiling height: standard, minimum and basement ceiling heights
Checked on 15 November 2026. The calculator counts lumber; it does not size headers or check a wall's strength. Follow your plans and your local code.