Skip to content

Stud Calculator

Count every framing piece in a wall - commons, king studs, jacks, cripples, corners and tees - and check the spacing you picked against IRC Table R602.3(5) before you cut.

Wall
ft
ft
Stud size
On-centre spacing
What the wall carries
Openings
×
in
×
in
Corners, wind speed, framing style and cost
×
×

A corner and an intersection are studs the length formula never sees, because they belong to two walls at once. Count the corners this wall ends at and the partitions that land on it.

Framing style
Wind speed and exposure
×
%
$

Jacks per end is a minimum of one. IRC Tables R602.7(1) and R602.7(2) set the real number from the header span, the species and the load, so check yours against the span table before you cut.

Openings do not save studs. They displace a handful of commons and put king studs, jacks and cripples in their place — and how many king studs depends on your wind speed, not on the opening.

Wall framing

Framing pieces for this wall
IRC Table R602.3(5)
Common studs
King studs
Jack studs
Cripples
Corners & tees
Fireblocking
Plate stock
Studs to buy
What each opening really costs
Doors
Windows
King studs come from IRC Table R602.7.5, which is indexed by header span and ultimate design wind speed — a 16 ft header needs four full-height studs at each end below 140 mph and two at or below 115 mph.
How it’s calculated
A material take-off and a code check — not a structural design. The spacing verdict comes from IRC Table R602.3(5), the king-stud count from Table R602.7.5, the double top plate from R602.3.2 and the fireblocking from R302.11. Those tables assume Exposure B, a roof live load not exceeding 20 psf and a ground snow load not exceeding 30 psf, and your jurisdiction may amend any of them. Header sizes and the jack studs that carry them come from Tables R602.7(1) and R602.7(2), which this tool does not reproduce. Confirm everything with your building department before you cut.

Quick Answer

A stud calculator counts framing pieces, not just the marks on the plate. A 24 ft by 9 ft wall at 16 in on centre has 19 positions on the layout, but with one 38 in door, one 50 in window, two corners and one tee it needs 38 pieces: 14 commons, 6 king studs, 4 jacks, 8 cripples and 6 for the corners and the tee.

Framing elevation of a 24 by 9 foot wall in timber colour, with the 24 kings, jacks, cripples and corner studs the length-divided-by-spacing formula never counts picked out in indigo, and the 5 positions it counts inside the door and window openings drawn as dashed outlines
The layout formula counts 19 positions in this wall. Five of them fall inside an opening, and it never counts the other 24 pieces at all.

Stud Calculator Formula: Layout, Openings, Corners and Plates

Every stud calculator starts with the same line, and most of them stop there:

Layout positions:
positions = ⌈ wall length in inches ÷ spacing ⌉ + 1

That is the stud layout, not the stud count. It tells you where the marks go on the plate. It says nothing about what happens at a door, at a window, where this wall meets another one, or whether the spacing you picked is allowed at all. On the 24 ft wall this calculator opens with, the layout gives 19 positions and the finished wall needs 38 pieces — exactly twice as many.

The full count is five separate terms, and this calculator runs all five:

Framing pieces:
pieces = commons + kings + jacks + cripples + junction studs
where commons = positions − ∑ ⌊ rough opening ÷ spacing ⌋

Each opening removes the layout positions that land inside it — the floor of its rough width divided by the spacing — and then puts back more pieces than it took. A 38 in door removes 2 positions and adds 6. A 50 in window removes 3 and adds 12.

King Studs, Jack Studs and Cripples: What Each Piece Does

The pieces the layout formula misses are not obscure. They are the ones a framer cuts every day, and each has its own rule for how many you need.

PieceWhat it isHow many
Common studA full-height stud on the regular layout, plate to plateLayout positions, minus the ones inside an opening
King studA full-height stud running past the header, nailed to its endFrom IRC Table R602.7.5, by header span and wind speed
Jack studA shortened stud under the header that carries it down to the plate; also called a trimmerAt least one each end; the span tables set the real number
Cripple studA short stud filling above a header, or above and below a windowOne layout position each, doubled under a window for the sill
Corner postThe built-up post where two walls meetTwo extra studs beyond the wall-end stud already counted
Tee / partition postBacking where a partition lands on this wallTwo extra studs, or none with ladder blocking

A door gets cripples above the header only. A window gets them above the header and below the sill, which is why a window of similar width costs roughly twice the cripples.

Corners and tees are the two the formula can never see, because they belong to two walls at once. A traditional three-stud corner adds two studs beyond the stud already standing at the end of the wall. Advanced framing uses a two-stud corner with drywall clips, and ladder blocking at intersections instead of a full post — the calculator switches both when you select it, and warns you that whoever hangs the board has to know before you frame it that way.

King Studs Come from the Wind Speed, Not from the Opening

This is the part no other stud calculator asks about. The number of full-height studs at each end of a header is not a matter of preference, and it is not set by the opening width alone. IRC Section R602.7.5 and Table R602.7.5 index it by maximum header span and ultimate design wind speed and exposure category.

Maximum header span< 140 mph Exposure B, or < 130 mph Exposure C≤ 115 mph Exposure B
4 ft1 each end1 each end
6 ft2 each end1 each end
8 ft2 each end1 each end
10 ft3 each end2 each end
12 ft3 each end2 each end
14 ft3 each end2 each end
16 ft4 each end2 each end
18 ft4 each end2 each end

Table R602.7.5, minimum number of full-height studs at each end of headers in exterior walls.

Read the 16 ft row twice. A double garage header needs eight full-height studs across the two ends in a 140 mph county and four in a 115 mph one. That is the same header, the same span, the same builder — and twice the king studs. A calculator that assumes “two kings per opening” is wrong by four pieces on one opening, and it is wrong in the direction that leaves you short at the lumber yard.

The table stops at 18 ft, and so does this calculator. Enter a rough opening wider than that and it says the king studs are not shown rather than extrapolating a row that does not exist. A span past 18 ft needs an engineered header and engineered supports, not a table lookup.

Jack studs are a separate question from king studs, and this calculator does not pretend otherwise. It takes jacks per end as an input with a minimum of one, because the real number comes from the header span tables, R602.7(1) and R602.7(2), which depend on the species, the grade and the load above. Check yours there before you cut.

The Spacing You Pick May Not Be Legal

Stud spacing is usually discussed as a preference — 16 in on centre for strength, 24 in to save lumber. It is not a preference. IRC Table R602.3(5) caps it by stud size, by laterally unsupported height and by what the wall carries, and this calculator checks your combination against the table before it counts anything.

Stud sizeBearing heightRoof & ceiling onlyOne floor + roofTwo floors + roofNonbearing
2 × 310 ft at 16 in
2 × 410 ft24 in16 in14 ft at 24 in
2 × 610 ft24 in24 in16 in20 ft at 24 in

A dash is not a large number — it means the table has no entry for that combination at any spacing. The full code table also lists 3 × 4 and 2 × 5, which this calculator does not offer.

Three consequences fall straight out of that table, and all three surprise people:

  • A 2 × 4 carrying one floor and a roof is capped at 16 in on centre. Not 24. The 24 in figure everyone quotes is the roof-and-ceiling-only column.
  • A 2 × 4 under two floors and a roof has no entry at all. Not at 24 in, not at 16, not at any spacing. That wall wants a 2 × 6 or a 3 × 4.
  • Every bearing height in the table is 10 ft. A 12 ft bearing wall is off this table entirely and belongs to Table R602.3(6) or an engineered design.

Nonbearing walls are the generous column, and it is the one most interior partitions live in: a 2 × 4 nonbearing partition is permitted to 14 ft at 24 in on centre. That is why the same 2 × 4 can be legal at 24 in in a closet wall and illegal at 24 in in the exterior wall three feet away. Select what the wall actually carries and the calculator reads the right column for you.

Plates and Fireblocking Are Material Too

Two more things go on the truck with the studs, and neither appears in a stud count.

Plate stock is three times the wall length. IRC R602.3.2 requires a double top plate with end joints offset at least 24 in, so a wall gets one bottom plate and two top plates: 72 linear feet for a 24 ft wall. If you buy plate stock by the board and want the conversion, the square feet to linear feet calculator handles that step.

Fireblocking depends on the height. R302.11 requires fireblocking in concealed stud spaces at intervals not exceeding 10 ft, so a 9 ft wall needs none and a 12 ft wall needs one intermediate row — a block in every bay. On the worked wall below, that one row would be 19 blocks. The calculator shows the row count and the block count as soon as the height crosses 10 ft, and says “not required” below it rather than leaving the field blank.

How to Use the Stud Calculator

  1. Enter the wall length and height in feet. Height is floor to the underside of the double top plate. It decides both whether your stud size is legal and whether the wall needs fireblocking.
  2. Pick the stud size and the on-centre spacing. The chips are the sizes and spacings the code table covers.
  3. Choose what the wall carries. Nonbearing, roof and ceiling only, one floor plus roof, or two floors plus roof. This is the column of Table R602.3(5) that applies to you, and the verdict panel updates as soon as you change it.
  4. Enter the openings as rough opening widths, in inches. Not the door or window size — a 3-0 door is usually a 38 in rough opening.
  5. Open Advanced for corners, wind speed, framing style and price. Count the corners this wall ends at and the partitions that land on it. Set the wind speed from the IRC wind map or your building department; it is what drives the king stud count.
  6. Read the verdict before the count. If the panel says NOT PERMITTED, the piece count is still arithmetic but the wall is not buildable as specified — change the size, the spacing or the height first.

Worked Example: A 24 ft × 9 ft Wall

One 38 in door, one 50 in window, two corners, one tee, 2 × 4 at 16 in on centre carrying one floor and a roof, below 140 mph Exposure B. This is what the calculator opens with, so you can follow every line of it on screen.

StepWorkingPieces
Layout positions⌈288 in ÷ 16 in⌉ + 119
Commons the openings displace⌊38 ÷ 16⌋ + ⌊50 ÷ 16⌋ = 2 + 3−5
King studsDoor 3.17 ft span → 1 each end; window 4.17 ft → 2 each end+6
Jack studs1 each end × 2 ends × 2 openings+4
CripplesDoor 2 above; window 3 above + 3 below+8
Corners and tees2 corners × 2 + 1 tee × 2+6
Framing pieces14 commons + 6 + 4 + 8 + 638

Plate stock 72 linear feet. Fireblocking not required at 9 ft. At 10% waste the calculator says to buy 33 studs — commons, kings, jacks and junction studs come out of full stock, while cripples are short enough to nest into the offcuts.

Look at what the two openings did. They displaced 5 commons and added 18 pieces: the door is a net +4 and the window a net +9, for +13 across the wall. The results panel prints that row by row under “what each opening really costs”, because it is the single most common estimating mistake in wall framing — the intuition that a hole in the wall means less lumber.

Now take the same wall to 12 ft high and two things change at once. The verdict flips to NOT PERMITTED, because every bearing height in Table R602.3(5) is 10 ft. And R302.11 adds a row of fireblocking: 19 bays, so 19 blocks that no stud count would ever have shown you. Framing stairs in the same build? The stair stringer calculator applies the IRC rise and run limits the same way.

Stud Calculator: FAQ

A king stud is a full-height stud that runs from plate to plate alongside an opening, past the end of the header, and is end nailed to it. It is not shortened. The minimum number at each end of a header comes from IRC Table R602.7.5 and depends on the header span and the ultimate design wind speed — a 16 ft header needs four each end below 140 mph Exposure B and two at or below 115 mph.

Yes, jack stud and trimmer are the same piece. It is a shortened stud that sits inside the king stud and carries the header down to the bottom plate, so its length is the rough opening height rather than the wall height. IRC R602.7.5 requires one or more at each end; the header span tables R602.7(1) and R602.7(2) set the real number from the span, the species and the load.

A cripple is a short stud that fills the space an opening leaves: above a header, and above and below a window. It stands on the regular layout, so the count is the number of layout positions that fall inside the rough opening. A 50 in window at 16 in on centre has three positions inside it, which means three cripples above the header and three below the sill.

16 in on centre is the common default and 24 in is used where the code allows it, but the maximum is set by IRC Table R602.3(5) rather than by convention. A 2 × 4 carrying one floor and a roof is capped at 16 in on centre; the same 2 × 4 carrying only a roof and ceiling is allowed 24 in.

If the partition is nonbearing, yes: Table R602.3(5) permits a nonbearing 2 × 4 up to 14 ft of laterally unsupported height at 24 in on centre. If the wall carries a floor or a roof it moves into the bearing columns and the cap tightens. Select what the wall carries in the calculator and the verdict panel names the column it used.

At 16 in on centre the layout has 19 positions, but a real 24 ft wall with one 38 in door, one 50 in window, two corners and one tee needs 38 framing pieces: 14 commons, 6 king studs, 4 jacks, 8 cripples and 6 for the corners and the tee. Change any of those inputs and the count changes with it.

No, they cost studs. An opening displaces the layout positions that fall inside it, then puts back king studs, jacks and cripples in their place. On the worked wall the door is a net gain of 4 pieces and the window a net gain of 9. Only an opening wide enough to displace more commons than its own framing replaces would break even, and standard doors and windows are nowhere near that wide.

Subtract the plates. A 9 ft wall is 108 in tall, and with one 1.5 in bottom plate and a 3 in double top plate the common studs are 103.5 in. That is why precut studs come in odd lengths — they are cut so that the finished wall lands on a round height once the three plates are added. The calculator counts pieces and plate stock rather than cutting a list, so check the precut length your yard stocks against the number above.
Made with care

Want a calculator
built just for you?

Share the formula, the inputs, and who it's for — most reader-requested calculators ship within 14 days.

Calculator illustration