Wall framing calculator
Studs, plates, headers, and cripples — itemized, not rolled into one stud count. Imperial or metric, with the openings counted as the framing they add rather than the studs a shortcut pretends they remove.
01 How the math works
A stud wall is several counts, not one. Studs repeat along the length. Plates run the length three times over — one bottom plate and a doubled top plate. Each door and window puts a header on a pair of jack studs, adds a king stud outside each jack, and fills the space above the header (and below a window sill) with short cripples. Roll all of it into a single "studs = length ÷ spacing" and you lose the two places the order goes wrong: the framing an opening adds, and the length the studs are actually cut to.
Plates = 3 × wall length (1 bottom + 2 top)
Per opening = 2 king + 2 jack + cripples + 1 header
Header length = rough opening width + 3 in (2 jack bearings)
Cripples = ceil(opening width ÷ spacing) + 1 (×2 for a window)
Pre-cut stud = wall height − 4-1/2 in of plate
The +1 on layout studs is the piece bare division drops — a 12 ft wall at 16 in on-center has nine bays, which needs ten studs, not nine, because there's a stud at each end of the last bay. The three plate courses come from IRC R602.3.2: a single bottom plate and a doubled top plate, so plate stock runs three times the wall length before you count splices.
02 Worked example
Take an interior partition: 12 ft long, 8 ft tall (3.66 m × 2.44 m), studs 16 in (406 mm) on-center, with one 36 in (914 mm) rough door opening.
Layout studs: (12 × 12 ÷ 16) + 1 = 10 studs, each cut to the pre-cut 92-5/8 in (2,353 mm) — the single bottom plate and doubled top plate take up the other 4-1/2 in of the 8 ft height. The door adds two king studs, two jack studs, a header 39 in long (36 in opening + 3 in for the two jack bearings, or 0.99 m), and four cripples above it. Real studs on this wall: 10 + 2 + 2 = 14, plus four cripples cut from the two studs the opening interrupted.
Plates: 3 × 12 = 36 lineal feet (10.97 m). Run the naive shortcut instead — length ÷ 16, then knock off a couple of studs for the door — and you land near 8 studs. The door didn't remove studs. It's the one opening in framing that costs more lumber than the blank wall it replaces.
03 When this calculator is wrong
The count itemizes the framing an opening adds, which is the correction most wall calculators skip: a door or window is +2 king, +2 jack, a header, and cripples — never a subtraction. Feed a calculator "length ÷ spacing minus two per opening" and it under-orders every wall with a door in it. Where this count still simplifies:
- It counts headers and studs but doesn't size them. Whether an opening needs a 2×6, a 2×10, or a built-up header is set by span and load in IRC Table R602.7(1)–(3), and whether the wall runs 2×4 or 2×6 at a given height and load is IRC R602.3 — neither is set by this count. Size the members from the table first, then come back for the count.
- Corner and partition framing varies. This adds two studs per corner and per T-intersection — the three-stud corner and the ladder-back that back the drywall. A two-stud corner with drywall clips uses fewer. Set the corner and partition fields to the detail you're actually framing.
- Cripples usually come from offcuts. The layout studs an opening interrupts get recut into the cripples above the header, so they rarely add to the buy — which is exactly why subtracting studs for an opening is the wrong move. On a tall wall with a low window, the below-sill cripples can outrun the offcuts; check the count against your cutoffs.
- It assumes a standard platform-framed wall. Balloon framing, a single top plate where R602.3.2 permits one, steel studs, and raised-heel or gable walls all change the plate and stud counts. Local code can override any of it, and the table at the permit desk is the one that wins.
04 What to do with the result
Order the to-buy count, not the raw layout number — it already carries the opening framing and the waste factor. The cost of returning a few unused studs is small; the cost of stopping a framing day to go get more is not, so round up rather than trim (that's the calibration on every calculator here: what to order, not what the math gives you). Cull crowned and twisted studs as you go — buy the count plus a couple of spares and set the worst ones aside for blocking and cripples.
Run the plates in the longest stock your transport allows to cut down top-plate splices; the price premium on 16 ft over 8 ft framing stock is under 15%, and every splice is a joint you'd rather not have in a bearing wall. Then check the header size and stud size against the code tables before you cut anything — this page gives you the bill of materials, not the structural sign-off.
05 Common questions
- How many studs do I need for a wall?
- Layout studs are ceil(length ÷ spacing) + 1 — a 12 ft wall at 16 in on-center is (12 × 12 ÷ 16) + 1 = 10. Then add two king and two jack studs for each door or window, two studs per corner, and two per partition tie-in. The 12 ft wall with one door comes to 14 studs before waste.
- How do you calculate studs 16 inches on center?
- Divide the wall length in inches by 16 and add one for the end stud: a 16 ft wall is (16 × 12 ÷ 16) + 1 = 13 studs. The +1 is the stud at the far end that plain division drops. Corners, tie-ins, and openings are added on top of that layout number.
- Do you subtract studs for a door or window?
- No — an opening adds framing. It takes two king studs, two jack studs, a header, and cripples, and the layout studs it interrupts get recut into those cripples. The net is more lumber than the blank wall, not less. Calculators that subtract a stud or two per opening under-order.
- How long are pre-cut studs for an 8 foot wall?
- 92-5/8 in (2,353 mm). The single bottom plate and doubled top plate stack to 4-1/2 in, and the pre-cut stud plus those three plates makes a 97-1/8 in rough wall that clears an 8 ft stack of drywall. A 9 ft wall pre-cuts to 104-5/8 in, a 10 ft wall to 116-5/8 in.
- How many plates does a wall need?
- Three courses — one bottom plate and a doubled top plate per IRC R602.3.2 — so plate stock runs 3 × the wall length. A 12 ft wall needs 36 lineal feet of plate before splice offsets and waste.