Stud Calculator
How many studs and plates to buy for a framed wall, with the corners, doors and windows counted, and how long to cut the studs.
- Checked
- 2 sources
- Formula tested
- Works offline
Results
Studs
- Studs on layout
- 16
- Extra for corners
- 4
- Extra for doors and windows
- 8
- Stud length (wall height less 3 plates)
- 7 ft 7 1/2 in
Plates
- Plate (1 bottom + 2 top)
- 60 linear ft
- Plate boards
- 4 boards
Cost
- Studs and plates
- –
On this page 10 sections
- How many studs do I need for a wall?
- Worked example: a 20 ft wall with a door and a window
- Studs on layout by wall length
- How far apart can studs be? (IRC Table R602.3(5))
- Plates, headers and corners
- Before you buy
- Frequently asked questions
- Related calculators
- Sources and method
- Add this calculator to your website
How many studs do I need for a wall?
Divide the wall length in inches by the stud spacing, round up and add 1. Then add studs for corners (usually 2 each) and for every door and window (4 each: a jack stud and a full-height king stud at both ends). Add about 10% for crooked studs. A 20 ft wall at 16 in on center has 16 studs on layout; with 2 corners and 2 openings it needs 31 studs.
Worked example: a 20 ft wall with a door and a window
- Layout: 20 ft = 240 in. 240 ÷ 16 = 15 spaces, plus 1 = 16 studs.
- Corners: the wall meets another wall at each end. Three-stud corners add 2 each: 4.
- Openings: a door and a window. Each needs a jack stud under the header and a full-height king stud beside it, at both ends: 8. The layout studs that fall inside the openings are cut down for the short cripple studs above and below.
- Extra: 16 + 4 + 8 = 28, plus 10% = 30.8, so buy 31 studs.
- Plates: one bottom plate and a double top plate is 3 × 20 = 60 ft, or 4 boards of 16 ft.
- Stud length: 8 ft is 96 in. Three plates of 1½ in take 4½ in, so cut studs to 7 ft 7 1/2 in.
Studs on layout by wall length
Length ÷ spacing, rounded up, plus 1. Add corners, openings and extra on top.
| Wall length | 12 in o.c. | 16 in o.c. | 19.2 in o.c. | 24 in o.c. |
|---|---|---|---|---|
| 8 ft | 9 | 7 | 6 | 5 |
| 10 ft | 11 | 9 | 8 | 6 |
| 12 ft | 13 | 10 | 9 | 7 |
| 16 ft | 17 | 13 | 11 | 9 |
| 20 ft | 21 | 16 | 14 | 11 |
| 24 ft | 25 | 19 | 16 | 13 |
| 30 ft | 31 | 24 | 20 | 16 |
| 40 ft | 41 | 31 | 26 | 21 |
These are layout studs only. The calculator adds the corners, doors, windows and extra for your wall.
How far apart can studs be? (IRC Table R602.3(5))
| Stud | Bearing wall, roof and ceiling only | Bearing wall, one floor plus roof | Bearing wall, two floors plus roof | Non-bearing wall |
|---|---|---|---|---|
| 2 × 4 | 24 in (up to 10 ft tall) | 16 in | Not allowed | 24 in (up to 14 ft tall) |
| 2 × 6 | 24 in (up to 10 ft tall) | 24 in | 16 in | 24 in (up to 20 ft tall) |
From the 2021 International Residential Code, Table R602.3(5). Heights are between points of lateral support. A bearing wall holds up a floor, ceiling or roof above it; a non-bearing wall only divides space. If you're not sure which yours is, treat it as bearing and check with your building department.
Plates, headers and corners
- Plates: the IRC requires a double top plate, overlapping at corners and with joints offset at least 24 in (R602.3.2), and studs bearing on a 2-by bottom plate (R602.3.4). That is 3 × the wall length in plate stock.
- Headers: each header sits on one or more jack studs at each end, with a full-height stud beside it (R602.7.5). The calculator allows one of each, which Table R602.7.5 accepts for exterior openings up to 4 ft wide. Wider openings in high-wind areas need more full-height studs, and long headers may need two jack studs: check your plans.
- Corners and intersections: a three-stud corner adds 2 studs to the layout. Some builders use fewer with blocking or drywall clips. Enter what your plans show.
- Stud length: a 2-by plate is 1½ in thick when dry (American Softwood Lumber Standard), so three plates take 4½ in off the wall height.
Before you buy
- Sight down each stud at the yard and leave the badly bowed or twisted ones.
- Count each wall separately for a whole room or house, or add the lengths and count every corner and intersection.
- Add blocking and fire blocking where your plans or local code call for it (R602.8). The 10% extra usually covers it.
- Sheathing next? The plywood calculator counts wall sheets, and the drywall calculator covers the inside.
Frequently asked questions
How many studs do I need for a 20 ft wall?
Is it one stud per foot?
How long should studs be for an 8 ft wall?
Can I space studs 24 inches apart?
How many studs go around a window or door?
Related calculators
Sources and method
- International Code Council: 2021 IRC chapter 6 (wall construction) — Table R602.3(5) stud spacing and height; R602.3.2 double top plate; R602.3.4 bottom plate; R602.7.5 and Table R602.7.5 header supports
- NIST: American Softwood Lumber Standard (PS 20) — a dry 2 by 4 is 1½ × 3½ in
Last checked October 13, 2026. How we build and test every calculator: methodology.