01What this calculator tells you
This stud calculator works out how many studs you need to frame a wall. Enter the wall length, pick your on-center spacing, choose how many studs sit at each corner, add any door or window openings and your wall height, and it returns the total stud count broken down into field studs, corner studs and opening framing — plus the number of top and bottom plate boards and a total lineal-foot lumber estimate. A to-scale diagram shows how the studs fall across the wall.
It follows the same method the trades use and that the top framing calculators agree on: divide the wall length by the stud spacing, round up, add an end stud, then account for corners, openings and plates. For structural work always check the result against your local building code — the framing provisions in the International Residential Code (IRC) and the guidance in HUD’s Residential Structural Design Guide govern spacing, stud size and load-bearing walls.
02Choosing your stud spacing
On-center (OC) spacing is measured from the center of one stud to the center of the next. Because it is center-to-center, the same math works for 2×4 or 2×6 studs even though their actual widths differ — a 2×4 is really 1.5″ × 3.5″, following the U.S. lumber sizing standard maintained by NIST (Voluntary Product Standard PS 20). The spacing you pick affects strength, insulation and how much lumber you buy:
03The framing anatomy this counts
A framed wall is more than evenly spaced studs. Around every opening and at every corner you add special members, and the studs sit between horizontal plates. This calculator accounts for each of these:
- Field (common) studs — the regular vertical studs at your chosen spacing, plus one at the far end.
- Corner / partition studs — the 2–3 studs bunched at each corner or where a wall meets another, giving backing for drywall.
- King & jack studs — a full-height king stud and an inner jack (trimmer) stud on each side of a door or window; the jack carries the header.
- Cripple studs — short studs above a header and below a window sill that keep the spacing going.
- Top & bottom plates — the horizontal boards the studs nail into; walls usually get a doubled top plate and a single bottom (sole) plate.
Framing throws a lot of saw dust, so wear eye and lung protection — see OSHA’s wood-products safety guidance before you start cutting. Running wiring in the wall next? Our conduit fill calculator sizes the raceway for the circuits you’re adding.
- Measure the wall length in feet and enter it.
- Pick your stud spacing — 16″ OC is the usual default.
- Choose how many studs sit at each corner (2 is typical).
- Enter the number of door and window openings and the wall height.
- Press Calculate to get the total studs, plate boards and lumber, with a diagram of the layout.
Framing an accent wall or wainscot instead of a full structural wall? The same divide-by-spacing math applies — just measure each solid section on its own and lay out the studs (or battens) across it.
This calculator estimates a single straight wall section. A few things to keep in mind:
- Openings are approximate. It adds about four studs per opening (two jacks + two kings). Wide openings over ~5 ft, or those needing doubled jacks and cripples, need a few more.
- Waste and offcuts. Buy about 10% extra to cover crooked boards, cut-offs and mistakes — the lumber total shown is the net figure.
- Load-bearing walls. Stud size, spacing and header size for load-bearing or tall walls must follow the code or an engineer’s design, not just this estimate.
- Blocking & backing. Fire blocking, drywall backing and let-in bracing are extra and not counted here.
For more everyday project math, browse our other free tools from the calculator home page.
04Related calculators
Working through a related project? Try our Board and Batten Calculator, Barndominium Material Calculator, and Barndominium Cost Calculator.
01The stud count formula
Framing math starts from the field studs — the evenly spaced common studs — then adds the extras at corners and openings and the horizontal plates. Because spacing is center-to-center, you divide length by spacing, round up, and add one stud to cap the far end.
Where:
- L= wall length (ft).
- S= on-center stud spacing (in) — 12, 16 or 24.
- E= studs at each end / corner (1, 2 or 3).
- O= number of door and window openings.
- Lb= length of the plate boards you buy (ft).
02Worked example
Frame a 20 ft wall, 8 ft tall, at 16″ on center, with 2 studs at each corner, one door opening, using 8 ft plate boards. One line at a time:
So the wall needs 22 studs and 8 plate boards. Cut each stud to about 91.5″ (96″ wall height minus a 4.5″ plate stack) and buy roughly 236 lineal feet of lumber (22 studs × 8 ft + 60 ft of plates), then add about 10% for waste.