How to measure a wall for framing
Measure each wall on its own, along the line of the bottom plate. A room or a shed is several walls, and where two of them meet, one wall usually runs through and the other butts into it. So decide which walls carry the corner, or you will count that length twice.
For openings, use the rough opening on the door or window's own data sheet, not the size of the door. It is usually a little larger. Measure from the same end of the wall each time, and mark where each opening falls. That way you can see which common studs land inside it and turn into cripples.
Height matters for the code, not for the count. The 2021 IRC limits studs by size, height and what the wall carries, and a 2x4 wall carrying a floor and a roof has to be 16 inches on center. We read that table through a state adoption, and the layout was hard to extract, so check your own row before you commit.
A worked example
Here is a 20 foot wall at 16 inches on center with a corner at each end, a 3 foot door and a 4 foot window. These lines come from the same formula the calculator above runs.
20 ft wall, one 3 ft door, one 4 ft window
- Common studs: 240 ÷ 16 = 15, + 1 = 16
- At the corners: 2 × 2 = 4
- Full-height beside the openings: 4
- Jack studs: 4
- Total: 28 studs, and 60 ft of plate
Studs at positions that land inside an opening are still in the count, because they get cut down into 6 cripples above the headers and under the sill. That is a little generous, which is fine, since a few studs in any stack are too bowed to use. To price the stack in board feet, use the lumber calculator, and for the sheets that go on the wall, the drywall calculator.
Common studs for common walls
These count only the regularly spaced studs on a plain wall. Corners and openings come on top, and they often add a third again to the count on a wall with a door and a window.
| Wall | 16 in on center | 24 in on center | Plate, double top |
|---|---|---|---|
| 8 ft | 7 | 5 | 24 ft |
| 10 ft | 9 | 6 | 30 ft |
| 12 ft | 10 | 7 | 36 ft |
| 14 ft | 12 | 8 | 42 ft |
| 16 ft | 13 | 9 | 48 ft |
| 20 ft | 16 | 11 | 60 ft |
| 24 ft | 19 | 13 | 72 ft |
Mistakes that leave you short of studs
- Rounding down. A 13 foot wall is 9.75 spaces at 16 inches. You need 10 spaces and so 11 studs. Rounding down loses the stud that closes the wall.
- One king stud whatever the opening. Table R602.7.5 asks for 1 to 4 full-height studs per end by span, and more in high wind.
- Sizing a header by eye. The span tables depend on the load above and on your snow and building width. This calculator only flags how many you need to look up.
- Forgetting the second top plate. A double top plate means three plates along the wall, and its joints have to be offset by at least 24 inches.
- Counting a corner twice. Where walls meet, decide which one runs through, and measure the other to its face.
Questions
How many studs do I need for a 10 foot wall?
A 10 foot wall at 16 inches on center has 9 common studs, and at 24 inches it has 6. Corners, doors and windows all add more, so a plain wall with two corners is 13 at 16 inches.
16 or 24 inch on center?
Use whichever the code allows for your stud size, height and load. Under the 2021 IRC, a 2x4 wall carrying a floor and a roof must be 16 inches, while a 2x6 can be 24. Lower-grade 2x4 studs cannot exceed 16 inches, and 16 is the usual choice for drywall.
How many extra studs for a window?
At least four extra studs for a window up to 4 feet wide: one full-height and one jack at each end, plus cripples above and below. Wider openings need more, and Table R602.7.5 asks for up to four full-height studs per end as the span grows.
How many studs for a 12x12 room?
Four 12 foot walls at 16 inches on center have 10 common studs each, so 40, plus the corners. That is before any doors and windows. Run each wall through the calculator and add them up, since the openings differ.
How much plate does a wall need?
Three times the wall length: one bottom plate and a double top plate, as the 2021 IRC expects. A 20 foot wall needs 60 feet. End joints in the top plates must be offset by at least 24 inches, so plan your lengths.
When do I need a professional?
You need an engineer or a licensed builder for any wall carrying a floor or a roof that you are changing, and for any long header. Have the inspector see the framing before it is covered. Removing a bearing wall without proper support can collapse what is above it.
This stud count is a takeoff using 2021 IRC section R602, not a wall design. Allowed spacing depends on stud size, height and what the wall carries, and headers are flagged here but not sized, so check the span tables. The local building code as adopted and your inspector decide, and a bearing wall done wrong can bring down what sits on it.
Sources and review
- 2021 residential code, chapter 6, as adopted in Colorado, UpCodes, 2021.
- Framing calculator, Inch Calculator, no date shown, read November 2026.
Checked in November 2026. Spotted a wrong number? Report it and it goes in the corrections log.
How this is calculated
Every figure below is read from the code that produces the answer, so what is written here is what the calculator ran. The constants were last checked against their sources in November 2026.
The arithmetic
Common studs
Studs = Wall length in inches ÷ Spacing, rounded up, + 1
- Spacing
- Inches on center
Worked through: 156 ÷ 16 = 9.75, rounded up to 10, + 1 = 11 studs
Plate
Plate feet = Wall length × 3
- 3
- One bottom plate and a double top plate
Worked through: 20 × 3 = 60 ft
The constants, and where they come from
FULL_HEIGHT_BY_SPAN
Published figureFull-height studs at each end of a header, by span in feet
- 0
- 4, 1
- 1
- 6, 2
- 2
- 8, 2
- 3
- 10, 3
- 4
- 12, 3
- 5
- 14, 3
- 6
- 16, 4
- 7
- 18, 4
Applies to: Exterior walls below 140 mph Exposure B or 130 mph Exposure C. Higher wind needs its own check
Source: 2021 residential code, chapter 6, as adopted in Colorado, UpCodes, published 2021, read 2026-11. This source is about 5 years old, and it is the one the figure rests on.
Table R602.7.5, first column, read through UpCodes' copy of Colorado's adoption since ICC refused our request. 2024 numbering could not be checked.
PLATES_TOP_AND_BOTTOM
Published figurePlates running the length of a wall
Applies to: Wood-framed walls under the 2021 IRC. Local amendments differ
Source: 2021 residential code, chapter 6, as adopted in Colorado, UpCodes, published 2021, read 2026-11. This source is about 5 years old, and it is the one the figure rests on.
R602.3.2 requires a double top plate with a single-plate alternative under conditions, and R602.3.4 a bottom plate. End joints in top plates must be offset at least 24 inches.
STUDS_PER_CORNER_DEFAULT
ModelledExtra studs at each corner or wall junction
Applies to: A common three-stud corner. Other corner details use fewer
No published figure exists for this. It is derived, and the derivation is below rather than a citation to something that does not say it. Last checked in November 2026.
Our own default. Inch Calculator offers 1, 2 or 3 per end with no citation, and we read no primary source that sets a number.
INCHES_PER_FOOT
DefinitionalInches in one foot
Applies to: Definitional, everywhere
True by definition, so there is nothing to cite. The derivation is below.
Twelve inches make a foot by definition, so the wall length is multiplied by 12 before dividing by the spacing.
What the labels mean
- Published figure:
- taken directly from the source named beside it.
- Modelled:
- derived rather than measured, and the derivation is shown.
- Definitional:
- true by definition, like the number of inches in a foot, so there is nothing to cite.
If a figure here looks wrong, it may be. Tell us what you found and we will check it against the source and publish a correction if it needs one. How constants are chosen and how often they are reviewed is set out in our methodology.
How to use the stud calculator for wall framing
- 1
Enter the wall length and height
- 2
Choose the stud spacing the plan or the code allows
- 3
Count the doors and windows and enter their opening widths
- 4
Read the studs to buy and the feet of plate
- 5
Check every header against the span tables, since this does not size them
What this calculator assumes
Every estimate here rests on the assumptions below. Where your job differs from one of them, the figure will differ too.
- One straight wall. Run it once per wall, then add them up
- A stud is counted at every spacing position, with those falling in an opening cut down into cripples
- Full-height studs follow Table R602.7.5 for exterior walls in ordinary wind, and between listed spans the larger is used
- Headers are counted but not sized. Jack studs per end come from the header span tables, so enter your own number
Pro tips
- Lay the plates side by side and mark the layout on both at once
- Crown every stud the same way so the wall stays flat
- Buy several extra studs, because a few in any stack will be too bowed to use