Skip to content

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.

Stud Calculator Results update as you type
Wall
For several walls, add their lengths together and count every corner below.
16 in is the usual choice. 24 in is allowed for some walls; see the code table below.
Corners and openings
Corners and openings
Where this wall meets another wall, at the ends or along its length.
A common three-stud corner adds 2 to the layout. Use 1 for a corner with blocking or a ladder, or follow your plans.
Each adds a jack stud and a full-height king stud at both ends (4 studs). Wide openings in windy areas need more king studs: see the code notes.
Lumber
Lumber
%
Your allowance for crooked or split studs and blocking.
Your prices
Your prices
$
Leave both prices at 0 to skip the cost estimate.
$

Results

Studs to buy 31 studs 16 studs on layout at 16 in, plus corners and openings.

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

On this page 10 sections
  1. How many studs do I need for a wall?
  2. Worked example: a 20 ft wall with a door and a window
  3. Studs on layout by wall length
  4. How far apart can studs be? (IRC Table R602.3(5))
  5. Plates, headers and corners
  6. Before you buy
  7. Frequently asked questions
  8. Related calculators
  9. Sources and method
  10. 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

A 20 foot wall framed at 16 inches on center: 16 layout studs, a double top plate and a bottom plate, a window and a door each with a jack stud and a king stud on both sides, and an extra stud at each corner. 20 ft wall at 16 in on center layout king jack corner plates 16 + 4 corner + 8 opening = 28 studs, 31 with 10%
  1. Layout: 20 ft = 240 in. 240 ÷ 16 = 15 spaces, plus 1 = 16 studs.
  2. Corners: the wall meets another wall at each end. Three-stud corners add 2 each: 4.
  3. 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.
  4. Extra: 16 + 4 + 8 = 28, plus 10% = 30.8, so buy 31 studs.
  5. Plates: one bottom plate and a double top plate is 3 × 20 = 60 ft, or 4 boards of 16 ft.
  6. 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 length12 in o.c.16 in o.c.19.2 in o.c.24 in o.c.
8 ft9765
10 ft11986
12 ft131097
16 ft1713119
20 ft21161411
24 ft25191613
30 ft31242016
40 ft41312621

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))

StudBearing wall, roof and ceiling onlyBearing wall, one floor plus roofBearing wall, two floors plus roofNon-bearing wall
2 × 424 in (up to 10 ft tall)16 inNot allowed24 in (up to 14 ft tall)
2 × 624 in (up to 10 ft tall)24 in16 in24 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?
16 studs on layout at 16 in on center (240 ÷ 16 = 15, plus 1). With two corners and two openings, about 28, or 31 with 10% extra.
Is it one stud per foot?
People often use one stud per foot as a rough rule for 16 in spacing. It runs low once there are corners and openings: a 20 ft wall with two corners, a door and a window needs 28 studs before extra, not 20.
How long should studs be for an 8 ft wall?
An 8 ft wall measured from the floor to the top of the plates takes studs 91½ in long (7 ft 7½ in), because the bottom plate and double top plate take 4½ in. For a 9 ft wall, 103½ in.
Can I space studs 24 inches apart?
Often, yes. The IRC allows 24 in for 2 × 4 bearing walls that carry only a roof and ceiling, for 2 × 6 bearing walls carrying one floor and a roof, and for non-bearing walls (Table R602.3(5)). With a floor above, 2 × 4 bearing walls are limited to 16 in.
How many studs go around a window or door?
At least a jack stud and a full-height king stud on each side, so 4. The layout studs inside the opening become the short cripple studs. Wide exterior openings in windy areas need extra full-height studs under IRC Table R602.7.5.

Sources and method

Last checked October 13, 2026. How we build and test every calculator: methodology.

Add this calculator to your website

Free for any site: paste this code into a page and the calculator appears there, always up to date. No sign-up. It works on phones and resizes itself.

All embeddable calculators