How Many Studs Do I Need for a Wall? Framing Math Explained
Framing a wall sounds like simple math - wall length divided by stud spacing - but the actual count adds up fast once you include openings and corners. The short answer for a 20 ft wall at 16 inch on-center spacing with one door and two windows is about 31 studs. Here is the full math for any wall.
The basic stud count formula
For a straight wall with no openings:
Stud count = (wall length in inches ÷ spacing in inches) + 1
The +1 is the starter stud at one end. At 16 inch on-center spacing:
- 8 ft wall (96 in): 96/16 + 1 = 7 studs
- 10 ft wall (120 in): 120/16 + 1 = 8.5 → 9 studs
- 16 ft wall (192 in): 192/16 + 1 = 13 studs
- 20 ft wall (240 in): 240/16 + 1 = 16 studs
- 24 ft wall (288 in): 288/16 + 1 = 19 studs
At 24 inch on-center (advanced framing), the count drops by about 33%. A 20 ft wall at 24 in OC needs only 11 field studs vs 16 at 16 in OC.
Add studs for openings
Every door or window opening adds studs. The framing around an opening includes:
- 2 king studs - full-height studs that flank the opening
- 2 jack studs (also called trimmers) - shorter studs that carry the header from below
- 1-3 cripple studs - short studs above the header up to the top plate
That is 4-7 studs per opening. The king studs replace some field studs (they fall on the 16 in grid), but you still net about 4 extra studs per opening. A wall with 1 door and 2 windows = 12 extra studs.
Get the right header size for each opening with the header size calculator - it follows IRC R602.7 prescriptive tables.
Add studs for corners and intersections
Each corner where two walls meet needs special framing for drywall backing and structural connection. The most common method is a 3-stud corner - two studs in the first wall plus one in the second wall - adding 2-3 extra studs per corner beyond the basic count.
Intersections (where an interior wall meets an exterior wall) need similar treatment - usually a 2-stud or 3-stud backing assembly. For a typical room with 2 outside corners and 1 interior wall intersection, plan on 6-9 extra studs for the wall framing connection points.
Putting it together: a worked example
A 20 ft exterior wall, 8 ft tall, 16 in OC, with 1 door (3 ft wide) and 2 windows (3 ft wide each):
- Field studs: 240/16 + 1 = 16
- Openings (3 × 4 extra studs each): 12
- Corners (3 extra at one end): 3
- Total: 31 studs
Round up to 35 studs to allow for cut waste and culled bows (you will toss 1-2 studs per 30 for being too crooked to use). Run your specific wall through the stud calculator - it also calculates top and bottom plates and header lumber.
How long should the studs be?
Stud length depends on ceiling height plus the plate thickness:
- 8 ft wall: 92-5/8 in studs (96 in - 3 × 1.5 in plates = 91.5 in, but 92-5/8 in is the standard pre-cut length to account for drywall)
- 9 ft wall: 104-5/8 in pre-cut studs (or cut from 12 ft stock)
- 10 ft wall: 116-5/8 in studs (cut from 12 ft stock)
Most home improvement stores sell 92-5/8 in "pre-cut studs" specifically for 8 ft walls - cheaper than buying 8 ft 2x4s and trimming each one. For taller walls, buy 10 or 12 ft 2x4 stock and cut to length on-site.
How many top and bottom plates?
Plates run horizontally and tie the studs together at the top and bottom of the wall. Load-bearing walls need a doubled top plate - two stacked plates with joints offset by at least 4 ft.
- Bottom plate: 1 × wall length
- Top plate (doubled): 2 × wall length
- Total plate lumber: 3 × wall length
For a 20 ft wall, that is 60 ft of plate lumber - so 4 sticks of 2x4x16 ft (allowing offsets and cuts at corners). Always use straight, premium-grade plate material - bowed plates make the whole wall wavy.
What is the difference between 16 and 24 inch on-center?
16 in OC is the residential default:
- Matches drywall dimensions (4x8 or 4x12 sheets land on studs without cuts)
- Stiffer walls, less drywall sag
- More studs (33% more than 24 in OC)
24 in OC (advanced framing) is increasingly common for energy-efficient walls:
- Saves 15-20% on lumber cost
- Less thermal bridging (more space for insulation)
- Requires 1/2 in or thicker drywall (5/8 in for ceilings)
- Exterior sheathing must span 24 in (most OSB and plywood handles it fine)
- Best paired with 2x6 studs for the deep insulation cavity
How much will the lumber cost?
At rough 2026 US prices (2x4 SPF, $5 per 8 ft stud):
- 35 studs: $175
- 5 plates (2x4x16 ft) at $10 each: $50
- Header lumber (2x10 doubled, 12 ft): $50
- Total framing lumber: ~$275
Add about 15% for fasteners, joist hangers and miscellaneous hardware = $315 total. Use the lumber cost calculator to total a multi-wall framing job with current prices.