Wall Framing Calculator

Find out how much lumber you need to frame a wall — studs at 16 or 24 inches on-center, top and bottom plates, and the total number of 2×4s — plus an estimate of the cost.

How to frame a wall — studs between plates at on-center spacing Stud spacing Height Wall length
Studs run between the bottom plate and a double top plate, spaced on-center.

How to calculate wall framing

The number of vertical studs in a wall depends on its length and the spacing between studs. The base formula is:

Studs = (wall length × 12 ÷ on-center spacing) + 1

The “+ 1” is the stud at the far end of the wall. On top of those field studs, you add framing for each opening (king and jack studs), extra studs at corners and where partition walls meet, and a little waste for bad cuts. This calculator adds two studs per opening and your chosen waste percentage on top of the field studs.

Studs, plates, and spacing

A framed wall is more than studs. It has a bottom plate the studs sit on and, on a load-bearing wall, a double top plate — so the plate lumber runs the length of the wall three times.

SpacingWhen it's used
16″ on-centerStandard for load-bearing and exterior walls
24″ on-centerNon-load-bearing walls and advanced framing — less lumber
12″ on-centerHeavy loads or tall walls that need extra strength

Parts of a framed wall

  • Plates. The horizontal boards — a bottom (sole) plate and, on load-bearing walls, a double top plate.
  • Studs. The vertical members spaced 16 or 24 in on-center.
  • King & jack studs. At each opening, a full-height king stud with a shorter jack (trimmer) that carries the header.
  • Header. The beam over a door or window that carries the load around the opening.
  • Cripple studs. Short studs above a header and below a window sill.
  • Rough sill. The horizontal board at the bottom of a window opening.

16 vs. 24 in on-center (and advanced framing)

16″ on-center is the default for load-bearing and exterior walls. 24″ on-center — the heart of "advanced framing" — uses noticeably less lumber and leaves more room for insulation, and is allowed for many non-load-bearing and some exterior walls where the code and engineering permit. Tall or heavily loaded walls sometimes drop to 12″ on-center for extra strength.

How much does it cost to frame a wall?

Framing lumber is the main material cost: a 2×4 stud often runs about $3–$7, so a typical interior wall's studs and plates are modest. Headers, sheathing on exterior walls, fasteners, and labor add to a full framing budget — and lumber prices swing with the market, so check current pricing.

Good to know

  • Precut studs save cutting. A standard 8-foot wall uses 92⅝″ precut studs, which leaves room for the bottom plate and double top plate under an 8-foot drywall sheet.
  • Openings need headers. Doors and windows need a header sized to the span (often doubled 2×8s or larger) plus cripple studs above and below — extra lumber this estimate doesn't price.
  • Buy a little extra. A 10% waste allowance covers crooked boards and miscuts; bump it up for a wall with lots of openings.

Frequently asked questions

How many studs do I need for a 20-foot wall?
At 16″ on-center, about 16 field studs (20 × 12 ÷ 16, plus one). Add two studs per door or window opening and a few for corners, then round up for waste — roughly 20–22 studs in practice.
Is 16 or 24 inches on-center better?
16″ on-center is stronger and standard for load-bearing and exterior walls. 24″ on-center uses noticeably less lumber and is fine for many non-load-bearing interior walls where code allows.
How long are the studs?
An 8-foot wall uses 92⅝″ precut studs; a 9-foot wall uses 104⅝″. You can also cut studs from 8-, 9-, or 10-foot 2×4s to the height you need.
How much does framing lumber cost?
It depends on the price of a 2×4 where you are — often $3–$6 each. Enter your local price and the calculator estimates the total for studs and plates.
Why is there a double top plate?
The second top plate ties walls together at the corners and lets joists or trusses land anywhere along the wall, not just over a stud. Non-load-bearing walls sometimes use a single top plate.
What is a king stud vs. a jack stud?
The king stud runs full height beside an opening; the jack (trimmer) is nailed to it and cut shorter to support the ends of the header.
Should I use 2×4 or 2×6 studs?
2×4 for most interior and many exterior walls; 2×6 for exterior walls where you want deeper cavities for more insulation, or for taller walls that need the extra strength.

How we calculate this

  • Studs = wall length ÷ spacing (16" or 24" on-center) + 1, plus extras for corners and openings
  • Plates: one bottom plate plus a doubled top plate (about 3× the wall length)
  • Quantities assume standard 2× dimensional lumber

For load-bearing or exterior walls, confirm stud size, spacing, and header sizing against your local code.

Sources: International Residential Code (IRC) framing norms. Last reviewed: June 2026. See our methodology for how we build every estimate.