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

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.