Does a wall need studs every 16 inches or every 24 inches? The answer depends mostly on the stud size and on how many floors sit above the wall. The 2021 International Residential Code (IRC) table settles most cases.
Stud size decides the spacing for most bearing walls. Under the 2021 IRC Table R602.3(5), a 2×4 bearing wall under one floor takes 16 inches on center, while a 2×6 takes 24 inches. The table values come from state-code mirrors because ICC blocked access. Local codes and your building department make the final call.
What 16 and 24 Inches On Center Mean
On center, often written o.c., measures from the center of one stud to the center of the next. Sixteen inches on center puts a stud every 16 inches. Twenty-four inches on center puts a stud every 24 inches, so the wall uses fewer studs.
Builders have used 16 inches for a long time. The DOE Building America Solution Center notes that wood-framed houses have traditionally been built with 2×4 studs at 16 inches on center. That habit explains why 16 inches feels like the default.
Habit does not set the rule, though. The sources in this article read from the 2021 IRC table, and your state or city may adopt a different edition or add amendments. To count studs for a real wall, use the Stud Calculator. The tool does the arithmetic. This article explains the code rule behind the spacing choice.
Stud Size Decides the Spacing for Bearing Walls
For a bearing wall, stud size and the number of floors above decide the spacing. A 2×4 bearing wall under one floor and a roof takes 16 inches on center. A 2×6 bearing wall in the same position can use 24 inches on center.
Section R602.3.1 of the 2021 IRC says, “The size, height and spacing of studs shall be in accordance with Table R602.3(5).” The table, not a single number, is the rule.
ICC publishes the official 2021 IRC text, but its site blocked our access during research. The table values below therefore come from two state-code mirrors on UpCodes, one based on the Connecticut code and one on the Texas code. The two mirrors agree on every value shown here.
| Stud size | Roof and ceiling only | One floor plus roof and ceiling | Two floors plus roof and ceiling |
|---|---|---|---|
| 2×4 | 24 in on center | 16 in on center | Not permitted |
| 2×6 | 24 in on center | 24 in on center | 16 in on center |
The City of Mound, Minnesota, publishes a wood framing handout with the same bearing values for 2×4 and 2×6 studs. The handout does not state its edition year, so use it as a cross-check, not as a code source.
How Nonbearing Walls and Attic Spans Change the Answer
A nonbearing wall carries no floor or roof load, so the table allows 24 inches on center for both stud sizes. Height is the limit to watch. A nonbearing 2×4 wall may reach 14 feet, and a nonbearing 2×6 wall may reach 20 feet, both at 24 inches on center.
Two footnotes in the same table add conditions. Footnote a says bearing walls must be sheathed on at least one side, or have bridging no more than 4 feet apart. Footnote c limits a habitable attic on 2×4 studs to a roof span of 32 feet. Over 32 feet, the walls step up to 2×6 studs or need engineering.
Run this checklist before you choose 24 inches for a bearing wall:
- Load type. The wall carries only a roof and ceiling, or it is a 2×6 wall with one floor above.
- Bracing. The wall meets the sheathing or bridging condition in footnote a.
- Attic span. Any habitable attic on 2×4 studs spans 32 feet or less.
- Local approval. Your adopted code and building department accept the same values.
Worked Example: Counting Studs in an 8 Foot Wall
An 8 foot wall is 96 inches long. The arithmetic below counts studs at each spacing, including the end stud at each end of the wall. This is our hand-checked math, not a code figure.
- At 16 inches on center. Divide 96 by 16 to get 6 spaces. Add one end stud: 6 + 1 = 7 studs.
- At 24 inches on center. Divide 96 by 24 to get 4 spaces. Add one end stud: 4 + 1 = 5 studs.
- The difference. 7 minus 5 is 2, so 24 inches uses two fewer studs in every 8 foot segment.
These counts ignore corners, door and window framing, and the extra pieces a plate layout needs. Those details add studs, so count them before you order lumber.
Framing Practice: Why Some Builders Use 2×6 at 24 Inches
Some builders frame exterior walls with 2×6 studs at 24 inches on center. Practice guides call this advanced framing. Practice is a separate question from code permission, so keep the two apart.
The DOE Building America Solution Center says research has shown exterior framed walls can be adequately supported by 2×6 studs at 24 inches on center. The same page notes that 16 inches can be the maximum spacing allowed in some places, so check with local officials.
APA’s Advanced Framing Construction Guide, Form M400A, lists 24 inches on center for 2×6 framing in colder climates, zones 5 to 8. That guide is from 2014 and cites the 2012 IRC, so use it for practice, not as the 2021 rule.
The same guide says wood structural panel sheathing is recognized by code as bracing for studs up to 24 inches on center. It says most other bracing methods, such as let-in bracing, are limited to 16-inch framing. APA advises you to consult your local building official early in the design phase.
Practice guidance does not replace the code table. Wind, snow and seismic loads for your site can change the answer, so have your engineer confirm the framing before you build.
Where the Stud Calculator Needs a Caveat
The Stud Calculator takes wall length, a wall height of 8, 9 or 10 feet, a spacing choice, corners, doors, windows and price per stud. It has no stud size input. That gap matters, because the table gives 2×4 and 2×6 studs different answers at 24 inches.
Two of the tool’s statements need a correction for 2×6 walls. The tool says most bearing walls under a second floor need 16-inch spacing. That is true for 2×4 studs, but a 2×6 bearing wall under one floor and a roof may use 24 inches.
The tool also says 24 inches applies only when no floor sits above the wall. The table allows 24 inches for a 2×6 bearing wall with one floor above, so that limit is too strict for 2×6 studs.
The tool’s line that 16 inches is standard for load-bearing walls describes a common convention, and PNNL notes that 2×4 walls at 16 inches were the traditional build. Choose the spacing from the table for your stud size and wall type, not from the tool’s label. Its results change with the values you enter, and its cost figures use the price you type, so hand-check any count before it goes into a bid.
Local codes, wind and snow loads, and your building department decide the final spacing. This article is general information, not a permit or an engineering review.
Run your wall length and openings through the Stud Calculator, then check the spacing against the table in this guide before you order lumber.
FAQs About 16 vs 24 Inch Stud Spacing
Is 16 inch stud spacing required for every wall?
No. The 2021 IRC table allows 24 inches on center for some bearing walls, depending on stud size and floors above. Nonbearing walls also allow 24 inches. Your adopted code and building department make the final call.
Can 2×6 bearing walls use 24 inch studs under two floors?
No. For two floors plus a roof and ceiling, the 2021 table gives 16 inches on center for 2×6 studs. It does not permit 2×4 studs in that case. Check the footnotes and your engineer.
How many studs go in an 8 foot wall at 16 and 24 inches?
At 16 inches on center, an 8 foot wall has 7 studs. At 24 inches, it has 5 studs. Both counts include the end studs and ignore corners, doors and windows. This is our arithmetic, not a code figure.
Does the Stud Calculator’s 16 inch rule hold for 2×6 walls?
Not in every case. The tool’s line holds for 2×4 bearing walls under a second floor. For 2×6 bearing walls under one floor and a roof, the 2021 table allows 24 inches on center.
Does the table allow 24 inch spacing under a roof only?
Yes. The 2021 IRC table allows 24 inches on center for both 2×4 and 2×6 bearing walls that carry only a roof and ceiling. Local code still controls the final spacing.
What does the 32 foot attic footnote mean?
A habitable attic supported by 2×4 studs is limited to a 32 foot roof span. Over 32 feet, the walls step up to 2×6 studs or need engineering. Check your adopted code for the exact wording.
Is 2×6 at 24 inches adequate for exterior walls?
The DOE Building America Solution Center says research shows 2×6 studs at 24 inches can adequately support exterior walls. Wind, snow and climate loads still need a check by your building official or engineer.
Sources and Further Reading
References Used in This Article
- 2021 International Residential Code, Chapter 6, Section R602.3.1 and Table R602.3(5), Connecticut state-code mirror on UpCodes, accessed 2026-11-18.
- 2021 International Residential Code, Chapter 6, Table R602.3(5), Texas state-code mirror on UpCodes, accessed 2026-11-18.
- City of Mound, Minnesota, “Wood Framing Information,” Table 2 (undated), accessed 2026-11-18.
- APA – The Engineered Wood Association, Form M400A, Advanced Framing Construction Guide (2014), hosted copy, accessed 2026-11-18.
- U.S. DOE Building America Solution Center, Minimum Wall Studs (updated 2022-09-16), accessed 2026-11-18.
The table values come from state-code mirrors, not the ICC text. Local codes and your building department decide. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated 2026-11-18.

Shakeel Muzaffar is the Founder and Editor-in-Chief, with over 15 years of experience in digital publishing and online tool development. He oversees editorial quality and formula verification to ensure accurate, practical, and easy-to-use calculators.