Stud Calculator
Wall length, spacing, corners and openings in — a full 2x4 count out, waste included.
Rule of thumb: 3 studs per corner, 4 per door, 6 per window, plus 10% waste. Stamped plans and local code always win over an estimate.
How a stud count is actually built
A framed wall is four counts stacked on top of each other, and each one is simple on its own. First come the field studs: the wall length in inches divided by the on-centre spacing, rounded up, plus one. Second come the corner and intersection studs, because where two walls meet you need extra material to catch drywall on the inside face. Third come the studs that frame each opening — king studs, jack studs and the short cripples above and below. Fourth is the plate lumber, which is a completely separate pile of wood from the studs even though it is cut from the same 2x4 stock.
The plus-one is the part people get wrong most often. Spacing tells you how many bays the wall has, not how many studs. Twelve bays need thirteen studs, the same way twelve fence sections need thirteen posts. Skip it and the last sheet of drywall arrives with nothing behind its edge.
Worked example: a 24 ft wall with one door and one window
Take a 24-foot interior wall framed at 16 in on centre, with two corners where it meets other walls, one door and one window. In inches the wall is 24 x 12 = 288. Divide by 16 and you get 18 bays exactly, so field studs are 18 + 1 = 19.
Now the extras. Two corners at 3 studs each is 6. One door at 4 studs — two kings, two jacks — is 4. One window at 6 studs — two kings, two jacks, plus cripples above and below the rough opening — is 6. That is 16 extra studs, bringing the raw total to 35.
Add the waste factor. Framing lumber arrives crowned, split, twisted or with a knot exactly where you need to nail, and you will crosscut a few studs into cripples anyway. Ten percent on 35 is 38.5, so you buy 39 studs. On a small job round up again to a bundle you can carry home in one trip; the leftovers become blocking.
Plates are separate. A standard wall has one bottom plate and a doubled top plate, so three runs the full length of the wall: 3 x 24 = 72 linear feet. Buy that in 8-foot sticks and you need 72 / 8 = 9 boards. Total 2x4 purchase for this wall: 39 + 9 = 48 pieces, before blocking, backing and the header.
The 15-1/4 trick that keeps sheets landing on studs
Here is the layout detail that separates framers from first-timers. Sheet goods — drywall, OSB, plywood — come 48 inches wide and must break on the centre of a stud, so the first stud's centre needs to sit at 16 inches, 32 inches, 48 inches and so on from the end of the wall. But you measure from the outside face of the end stud, and the end stud is 1-1/2 inches thick.
So you pull your tape and mark the first stud at 15-1/4 inches, then hook that mark and go 16 inches from there for every stud after. That quarter-inch offset — half of 1-1/2 inches, minus the 1/2-inch you also lose at the end stud — puts the centre of the third stud at exactly 48 inches, right where the first sheet's edge lands. Most tapes have the 16-inch marks printed in red and a diamond every 19.2 inches for 24 in on-centre engineered layouts. If you find yourself trimming every sheet, this is almost always what went wrong.
Opening anatomy — where 4 and 6 come from
A door opening needs two king studs running full height on either side, and two jack (trimmer) studs nailed to them that carry the header. That is 4. A window needs the same four, plus cripple studs filling the space above the header and below the sill, plus the sill itself — 6 is the working average for a typical 3 to 4 foot window at 16 in on centre. Wider openings need more cripples, so a 6-foot slider or a patio door should be counted as two openings rather than one.
What the tool deliberately leaves out is the header. Header sizing is a structural decision driven by the span, the load above and your climate's snow load — a 3-foot door in a partition wall might take a flat 2x4, while the same width in a bearing wall under a roof truss wants a doubled 2x8 or 2x10 with a 1/2-inch plywood spacer to make it 3-1/2 inches thick. Take that number from your plans or an IRC span table, never from a rule of thumb.
Limitations worth knowing before you buy lumber
This calculator estimates a single straight wall run. Real framing has details it does not price: blocking at 4 feet for fire-blocking or backing behind cabinets and grab bars, extra studs where an electrical panel or a shower valve lands, T-intersection backing, ladder blocking, and the studs consumed by any wall that meets this one halfway along. Add a couple of studs per detail and you will not be short.
Stud length is also not part of the count. Eight-foot walls use 92-5/8 inch precut studs so that with a 1-1/2 inch bottom plate and 3 inches of doubled top plate the rough wall is 97-1/8 inches — the right height for 8-foot drywall plus a floor gap. Nine-foot walls use 104-5/8 inch precuts. Buying full 8-foot studs and cutting them yourself wastes a lot of time and a fair amount of wood.
Finally, remember that everything here is a rule of thumb. Stud spacing, corner details, opening framing and header sizing all appear in your approved drawings and in local code, and where they differ from this estimate the drawings win. Use the number to load the truck, not to sign off the structure.
Sources & further reading
Frequently asked questions
Should I frame at 16 or 24 inch on centre?
16 in on centre is the default for load-bearing walls and anywhere 1/2 in drywall meets a ceiling load. 24 in on centre — advanced framing — is allowed for many single-storey and non-bearing walls and saves roughly a third of the studs, but it needs 5/8 in drywall or thicker sheathing to stop visible waviness. Check your span tables and local code before dropping to 24 in.
Why does the calculator add one extra stud?
Spacing gives you the number of gaps, not the number of studs. A 24 ft wall at 16 in on centre has 18 gaps, so it needs 19 studs to close both ends of every gap — the same fencepost logic as posts and rails. Miss that stud and the last sheet of drywall lands with nothing to nail to.
Three-stud corner or California corner?
This tool budgets 3 studs per corner, which is the traditional detail and matches most plans. A California corner (also called a two-stud or insulated corner) uses two studs plus drywall clips, leaving room for insulation where the old detail packs solid wood. Both give you a nailing surface for the intersecting wall — the California version just performs better thermally.
Does this include headers over doors and windows?
No. The 4 studs per door and 6 per window cover the king studs, jack (trimmer) studs and the cripples above and below the opening, but the header itself is sized separately from the span and the load above it. A 3 ft door in a non-bearing wall might use a flat 2x4; a 6 ft window in a bearing wall could need a doubled 2x10 with plywood packing. Get the header from your plans or a span table.