Stud Spacing Calculator: How Many Studs Does a Wall Need?
Stud count calculator
- Studs to buy
- 17
- Layout studs (straight wall)
- 13
- Layout studs inside openings
- −0
- Extra at corners
- +4
- Extra at openings
- +0
- Plate (double top + bottom)
- 48.0 lin ft
Enter the wall length and spacing. The calculator counts the straight-wall studs, adds extras at corners and openings, applies your allowance, and works out how much plate you need. It also warns if your spacing is wider than 24 inches, the widest in the common cases of the International Residential Code stud table, and points you to the table for your own case.
The count
Studs start at one end and repeat every spacing interval until the other end, and a final stud closes the wall.
layout studs = ceil(length in inches ÷ spacing) + 1
A 16-foot wall at 16 inches on centre is 192 ÷ 16 = 12 bays, so 13 studs. A 10-foot wall at 24 inches is 120 ÷ 24 = 5 bays, so 6 studs. A 12-foot wall at 19.2 inches is 144 ÷ 19.2 = 7.5, rounded up to 8 bays, so 9 studs. The last bay is narrower than the others when the length is not a multiple of the spacing, which is why the division rounds up.
What the building code limits
The IRC does not give one standard spacing. Table R602.3(5) in the 2021 edition sets the maximum by stud size, height and what the wall carries, and it is on the ICC’s free-view page for IRC chapter 6. This page does not reproduce it. Three single facts help you read it. First, spacing in the common cases tops out at 24 inches, and the calculator warns if you enter more. Second, a stud that is fine at 24 inches under a roof alone can be limited to a closer spacing when it also carries a floor, so the load above matters as much as the stud size. Third, section R602.3.1 allows some exceptions, and bearing walls have sheathing or bridging requirements in the table’s notes. Spacing wider than the table allows needs engineering. Local codes can be stricter.
Plates
IRC R602.3.2 requires wood stud walls to be capped with a double top plate, with end joints offset at least 24 inches. Add one bottom plate and you need 3 × the wall length in plate stock. The 16-foot wall above needs 48 linear feet.
Corners and openings
The code gives no universal count for corner studs. Builders commonly add two or three studs at each corner or T-intersection to give a nailing surface for the finish and to tie the walls together. So the calculator treats “extra studs at each corner” as your input, default 2. Openings are the same: each window or door replaces the layout studs that would sit inside the rough opening and adds its own king and jack studs on each side.
For openings in exterior walls, IRC Table R602.7.5 sets the minimum number of full-height studs at each end of a header. The count rises with the header span and depends on the design wind speed and exposure, so look yours up in the table on the ICC free-view page. The calculator’s “studs on each side of an opening” box is yours to set, default 2.
Worked example: a wall with two windows
A 20-foot exterior wall at 16 inches on centre, two corners, two 3-foot windows:
- layout: 240 ÷ 16 = 15 bays, so 16 studs
- each 3-foot opening spans 36 inches, which removes floor(36 ÷ 16) = 2 layout studs, so 4 in all
- corners add 2 × 2 = 4, and the openings add 2 × 2 studs per side × 2 openings = 8
- total = 16 − 4 + 4 + 8 = 24 studs, and with a 10% allowance for crooked boards, 27
The removal of layout studs inside an opening is an estimate, because the true count depends on where the opening sits in the layout. Count again on your framing plan before ordering.
Why 16, 19.2 and 24
Sheet goods are 4 feet wide, and 16 inches divides evenly into 48 (three bays) and 24 divides into it twice. 19.2 inches puts five bays in 96 inches. Those are arithmetic facts about how layouts land on panel edges, not code requirements. To find the clear gap between studs, subtract the stud’s actual thickness from the on-centre spacing: if your studs are 1½ inches thick, a 16-inch spacing leaves a 14½-inch gap.
A second source: the Department of Energy’s 2x6 wall guide
The U.S. Department of Energy’s Building America construction guide for 2x6 walls says its stud spacing requirements are based on the International Residential Code. It states that 2x6 framing at 24 inches on centre is permitted for one- and two-story houses, with or without a habitable attic. For three-story construction, the maximum 2x6 stud spacing for the bottom story is 16 inches on centre, and upper stories may be at 24 inches. For nonbearing exterior walls, it says 2x6 studs at 24 inches on centre can be up to 20 feet high. The guide is written against the 2012 and 2015 IRC, so the 2021 table above is the one to use for current work, but it agrees with the 2x6 rows listed here. It also notes that 2x6 studs have higher compression and bending capacity, which allows increased stud spacing and fewer jack and king studs at openings.
Check before you build
This calculator estimates material. It does not design a wall. Stud height, load path, wind and seismic bracing, and header sizes all come from your local code and, for anything unusual, an engineer. See the framing hub for related tools, the stair calculator for the stairwell opening, the fence post calculator for outdoor layouts, and the beam deflection calculator for headers.
Locks exact unit rise & unit run repeatability across every stringer
Captures out-of-square wall angles for tight finished treads
IRC-compliant bearing support at top ledger & landing header
Dimensional Lumber & LVL Section Properties (AWC NDS / PS 20)
Nominal vs. actual dressed dimensions, cross-sectional area A, section modulus S, moment of inertia I, board-foot factor, and unit weights.
| Nominal Size | Actual (b × d) | Area A (in²) | Section Mod. S (in³) | Inertia I (in⁴) | BF / lin ft | Dry Wt (lb/ft) |
|---|---|---|---|---|---|---|
| 2x4 | 1.5" × 3.5" | 5.25 | 3.063 | 5.359 | 0.6667 | 1.28 |
| 2x6 | 1.5" × 5.5" | 8.25 | 7.563 | 20.797 | 1 | 2.01 |
| 2x8 | 1.5" × 7.25" | 10.875 | 13.141 | 47.635 | 1.3333 | 2.64 |
| 2x10 | 1.5" × 9.25" | 13.875 | 21.391 | 98.932 | 1.6667 | 3.37 |
| 2x12 | 1.5" × 11.25" | 16.875 | 31.641 | 177.979 | 2 | 4.1 |
| 4x4 | 3.5" × 3.5" | 12.25 | 7.146 | 12.505 | 1.3333 | 2.98 |
| 4x6 | 3.5" × 5.5" | 19.25 | 17.646 | 48.526 | 2 | 4.68 |
| 6x6 | 5.5" × 5.5" | 30.25 | 27.729 | 76.255 | 3 | 7.35 |
| 1-3/4x9-1/2 LVL | 1.75" × 9.5" | 16.625 | 26.323 | 125.034 | 1.6667 | 4.85 |
| 1-3/4x11-7/8 LVL | 1.75" × 11.875" | 20.781 | 41.13 | 244.207 | 2 | 6.06 |
| 1-3/4x14 LVL | 1.75" × 14" | 24.5 | 57.167 | 400.167 | 2.3333 | 7.15 |
Reference standard: AWC National Design Specification (NDS) Supplement & NIST PS 20. Click any column header to sort or click a highlighted preset pill inside the calculator to auto-fill values.
Enter your ZIP or postal code to compare bids from vetted local finish & stair framing carpenters matched to your calculated scope.
Enter a valid 5-digit US ZIP (or 3–8 character postal code) to check local availability.
Frequently asked questions
How far apart should wall studs be?
IRC 2021 Table R602.3(5) sets the maximum by stud size, height and load, and it tops out at 24 inches on centre in the common cases. The same stud can be limited to a closer spacing when it carries a floor as well as the roof. Read the table for your case, and note that your local code may be stricter.
How do you calculate the number of studs in a wall?
Divide the wall length in inches by the spacing, round up to whole bays, and add one. A 16-foot wall at 16 inches on centre is 192 ÷ 16 = 12 bays, so 13 studs, before corners and openings.
Is 16 inches on centre or 24 inches better?
Neither is better in general. The code table decides what is allowed for a given stud size, height and load. Closer spacing uses more lumber and gives more fixing points for sheathing and drywall.
How many top plates does a stud wall need?
IRC R602.3.2 caps wood stud walls with a double top plate, with end joints offset at least 24 inches. With one bottom plate, a wall needs three times its length in plate stock.
Sources
- Construction Guide: Next Generation High Performance Walls, Climate Zones 3-5, Part 1: 2x6 Walls (stud spacing by number of stories, aligned with the 2012/2015 IRC), U.S. Department of Energy, Building America, accessed November 2026.
- 2021 International Residential Code, Chapter 6 Wall Construction (R602.3.1, R602.3.2, Table R602.3(5) and Table R602.7.5, referenced by number), International Code Council, accessed November 2026.