A 20 ft wall at 16 in on center takes 16 studs on layout; with two corners, one wall meeting it, one window and 10% extra, buy 27 studs and six 12 ft boards for the plates.
In this guide
- How to measure and count a wall
- The wall stud formula
- Stud layout chart: 12, 16, and 24 in on center
- Corners, intersections, and openings
- Plates: bottom plate and double top plate
- How long should the studs be?
- Example: a 12 × 12 ft room, wall by wall
- Load-bearing walls: check the code and call a pro
- Frequently asked questions
To count the studs for a wall, divide its length in inches by the stud spacing, round up, and add one for the far end. Then add one stud per corner, two per wall that meets it, and four per door or window.
Our wall stud calculator works as a simple wall framing calculator: it counts studs and plate boards for one straight wall at 12, 16, or 24 in on center. Run it once per wall and add the results.
How to measure and count a wall
- Measure the wall length in feet, end to end (12 ft 6 in is 12.5 ft).
- Count the corners on one wall only. Each corner belongs to two walls; enter it on just one.
- Count the walls that meet this one along its length (T-intersections). A wall meeting at an end is a corner.
- Count the doors and windows.
- Set the plate board length and extra. The 10% default is our allowance for culls, mistakes, and offcuts, not a code or industry figure.
Spacing is measured on center, from stud center to stud center. Home Depot notes that "Vertical studs are 16 to 24 inches apart" and says: "Starting at one end, measure and mark the plates every 16 inches." The calculator does the same: a stud at each end and one at every mark from the first end.
The wall stud formula
- Layout studs = wall length (in) ÷ spacing (in), rounded up, + 1
- Extras = 1 per corner + 2 per wall that meets this one + 4 per door or window
- Studs to buy = (layout studs + extras) × (1 + extra % ÷ 100), rounded up
- Plate boards = 3 × wall length (ft) × (1 + extra % ÷ 100) ÷ board length, rounded up
Worked example (the calculator's default values)
A 20 ft wall at 16 in on center, 2 corners, 1 wall meeting it, 1 window, 12 ft plate boards, and 10% extra:
- Layout: 240 in ÷ 16 = 15, plus 1 = 16 studs
- Extras: 2 (corners) + 2 (intersection) + 4 (window) = 8, for 24 studs
- With extra: 24 × 1.10 = 26.4, rounded up to 27 studs
- Plates: 3 × 20 = 60 linear ft; 60 × 1.10 ÷ 12 = 5.5, rounded up to 6 boards
The calculator shows: "You need 27 studs for a 20 ft wall. 16 studs at 16 in on center (one at each end), 2 for 2 corners, 2 for 1 wall intersection, 4 for 1 door or window (a king and a jack stud on each side), plus 10% extra. Plates: 60 linear ft for a bottom plate and a double top plate, or 6 boards of 12 ft with the extra."
Why 6 boards, not 5? Each 20 ft row is a 12 ft board plus an 8 ft piece, and each 8 ft piece needs its own 12 ft board. With 16 ft boards, it's 5 (60 × 1.10 ÷ 16 = 4.125).
Second example: a 12 ft partition with a door
A 12 ft interior wall at 24 in on center with one door, 8 ft plate boards, and 10% extra. Its ends tie into T-posts counted on the walls it meets, so it has 0 corners and 0 walls meeting it. Layout: 144 ÷ 24 = 6, plus 1 = 7; plus 4 for the door = 11; 11 × 1.10 = 12.1, so 13 studs. Plates: 36 linear ft; 36 × 1.10 ÷ 8 = 4.95, so 5 boards of 8 ft. The calculator shows: "You need 13 studs for a 12 ft wall."
Stud layout chart: 12, 16, and 24 in on center
Layout studs only (one at each end plus one per spacing mark), before extras:
| Wall length | 12 in o.c. | 16 in o.c. | 24 in o.c. |
|---|---|---|---|
| 4 ft | 5 | 4 | 3 |
| 6 ft | 7 | 6 | 4 |
| 8 ft | 9 | 7 | 5 |
| 10 ft | 11 | 9 | 6 |
| 12 ft | 13 | 10 | 7 |
| 14 ft | 15 | 12 | 8 |
| 16 ft | 17 | 13 | 9 |
| 20 ft | 21 | 16 | 11 |
| 24 ft | 25 | 19 | 13 |
With the default extras, a 20 ft wall takes 32 studs at 12 in (31.9 rounded up), 27 at 16 in, and 21 at 24 in (20.9 rounded up). The plates stay at 6 boards.
Corners, intersections, and openings
Corners
The U.S. Department of Energy (DOE) notes that "Exterior wall corners are typically framed with three studs," and that the third stud "generally only provides a nailing edge for interior gypsum board." Each wall already has an end stud, so the calculator adds 1 per corner.
DOE also describes insulated corners "constructed with two studs and drywall clips," and the Pennsylvania Housing Research Center (PHRC) at Penn State lists "2-stud corners, open for insulation" as advanced framing, against "3-stud 'California' or solid corners" as conventional. For two-stud corners, enter 0 and add the clips to your drywall list.
Walls that meet along the length
A DOE Building America report explains that "T-Intersections occur where an interior partition intersects an exterior wall." A conventional T-post adds 2 studs per wall meeting this one; that wall's own end stud is counted when you enter it. Ladder blocking "allows the elimination of two vertical studs," the report adds, and PHRC shows both details. With ladder blocking, enter 0.
Doors and windows: king, jack, and cripple studs
Home Depot's house framing guide has you "Attach the door frame's king studs to the top and bottom plates" and "Nail the jack studs into place against the king studs"; the jacks support the header. PHRC quotes the same count from the ANSI/RESNET/ICC 301 energy rating standard: "one pair of king studs, plus one pair of jack studs per window opening."
Studs that land inside an opening stay in the count as cripples, nailed "between the header and the top plate" and to "the sill and bottom plate," in Home Depot's words. Header, sill, and blocking lumber is extra.
Headers and the code
International Residential Code (IRC) section R602.7.5 says headers "shall be supported on each end with one or more jack studs or with approved framing anchors." In exterior walls, Table R602.7.5 asks for 1 full-height stud at each end of a header up to 4 ft and as many as 4 for longer ones, depending on span and wind, so wide openings can need more than the calculator adds. In nonbearing walls, R602.7.4 says "Load-bearing headers are not required" and allows a flat 2 × 4 header for openings up to 8 ft wide when the nailing surface above is within 24 in.
Plates: bottom plate and double top plate
The calculator counts three rows of plate, so plate lumber is 3 × the wall length.
- Bottom plate. Under IRC section R602.3.4, studs need full bearing on a nominal 2-by or larger plate at least as wide as the studs.
- Double top plate. R602.3.2 calls for "a double top plate installed to provide overlapping at corners and intersections with bearing partitions," with end joints "offset not less than 24 inches." On the default wall, run one top plate 12 + 8 ft and the other 8 + 12 ft, and the joints land 4 ft apart.
- Single top plate. An exception allows one, tied at corners, intersecting walls, and splices per Table R602.3.2, with the rafters or joists centered over the studs. Then the plates are 2 × the wall length.
- Door openings. "After you've completed the house framing, you can cut the sole plate and install the door," Home Depot says, so doors aren't deducted.
How long should the studs be?
This is arithmetic, not a code rule. The American Softwood Lumber Standard (PS 20) sets the minimum dressed size of dry nominal 2 in lumber at 1 1/2 in, so three plates take 4 1/2 in. Stud length = wall height (floor to the top of the top plate) − 4 1/2 in: 91 1/2 in for a wall 96 in high. Under an existing ceiling, measure floor to ceiling in several places and work from the shortest, as Home Depot's wall guide does.
Example: a 12 × 12 ft room, wall by wall
Four 12 ft walls at 16 in on center, one door, 12 ft plate boards, and 10% extra. The 4 corners go on walls A and C (2 each), none on B and D:
| Wall | Entered | Layout + extras | With 10% extra |
|---|---|---|---|
| A | 2 corners, 1 door | 10 + 2 + 4 = 16 | 18 |
| B | Nothing extra | 10 | 11 |
| C | 2 corners | 10 + 2 = 12 | 14 |
| D | Nothing extra | 10 | 11 |
| Room | 54 studs |
Wall by wall, the plates come to 4 boards each, 16 in all. Bought together, the room's 144 linear ft need 144 × 1.10 ÷ 12 = 13.2, or 14 boards, so entering walls one by one leaves a little extra. The same room then goes into the drywall calculator and the baseboard calculator. The paint calculator and the flooring calculator take the same 12 × 12 ft size.
Load-bearing walls: check the code and call a pro
This calculator estimates lumber; it doesn't engineer a wall. IRC section R602.3.1 says: "The size, height and spacing of studs shall be in accordance with Table R602.3(5)." That table's maximum spacing depends on stud size, stud height, and whether the wall carries a roof or floors. Load-bearing walls, exterior walls, headers, and wide openings must meet your local code, so have your building department or a qualified pro review that framing. Sheathing isn't counted; use the plywood calculator.
Frequently asked questions
How many studs do I need for a 12 ft wall?
10 on layout at 16 in on center: 144 in ÷ 16 = 9, plus 1 for the far end. It's 13 at 12 in and 7 at 24 in. Then add corners, walls that meet it, 4 per door or window, and your extra.
Should studs be 16 or 24 inches on center?
Home Depot says vertical studs are 16 to 24 inches apart, and PHRC lists 16 in as conventional and 24 in as advanced framing. IRC Table R602.3(5) sets your wall's maximum by stud size, height, and load, so check your local code.
How many studs do I need for a door or window?
Four extra: a king and a jack stud on each side. Studs that land in the opening become cripples. In exterior walls, headers over 4 ft can need more full-height studs under IRC Table R602.7.5.
How many studs are in a corner?
Three in a conventional corner: the two walls' end studs plus a third that, DOE says, generally only provides a nailing edge for drywall. So the calculator adds 1 per corner, entered on one wall. A two-stud corner with drywall clips adds none.
Do I need a double top plate?
Usually. IRC section R602.3.2 calls for a double top plate that overlaps at corners and intersections with bearing partitions, with end joints offset at least 24 in. A single top plate is an exception that needs the ties in Table R602.3.2.
How long should studs be?
The wall height, from the floor to the top of the top plate, minus 4 1/2 in for three plates at 1 1/2 in, the dry size of nominal 2 in lumber under PS 20. A wall 96 in high takes 91 1/2 in studs.
Sources
- 2018 Seattle Residential Code, Chapter 6: Wall Construction (IRC-based code text, PDF)
- Residential Code of Ohio, Ohio Admin. Code 4101:8-6-01, Wall Construction (IRC-based code text)
- U.S. Department of Energy, Building Science Education: Advanced Framing Insulated Corners
- U.S. Department of Energy, Building America: Advanced Framing II (Steven Winter Associates, 2010, PDF)
- Pennsylvania Housing Research Center (Penn State): Advanced Framing Techniques for High-Performance Homes, Webinar Handout (PDF)
- The Home Depot: How to Frame a Wall
- The Home Depot: 101 Guide to House Framing
- Voluntary Product Standard PS 20-20, American Softwood Lumber Standard (PDF)
Spot an error? Tell us.