HomeHome & Projects › Framing Calculator

Framing Calculator

Enter your wall length and stud spacing to see how many 2x4 (or 2x6) studs to buy, how much top and bottom plate lumber the wall needs, and what the studs will cost.

Example: with Wall length (ft) 20 · Stud spacing 16 in on center (standard) · Extra for corners, openings, waste (%) 10 · Price per stud ($, optional) 4 → Studs to buy: 18 studs.

Computed by the calculator below using its default values. Change any input to see your own numbers.

Studs to buy
Plate lumber (1 bottom + 2 top)
Stud cost
Steps
📊 Benchmark: the International Residential Code allows 2x4 studs at up to 24 in on center when they carry only a roof and ceiling; add a floor above and maximum spacing drops to 16 in. IRC Table R602.3(5).

πŸ”¨ Get quotes from local framing pros

Check it out

How many studs do I need?

The stud count formula: divide the wall length in inches by the on-center spacing, round up, then add one for the stud that starts the run. An 8-foot wall at 16 in on center is 96 ÷ 16 = 6, + 1 = 7 studs; this 20-ft example works out to 16 before extras. Real walls eat more lumber than the bare formula — corners, T-intersections where partitions meet, and king and jack studs around doors and windows — so the calculator adds a percentage (10–15% is typical) and rounds up.

Don’t forget the plates: a standard wall has one bottom plate and a doubled top plate, so buy about 3 × the wall length in plate stock — 60 lineal ft for a 20-ft wall. The count math is identical for a 2x6 wall; 2x6 framing is simply allowed at wider spacing more often. For 8-ft ceilings, buy 92⅝-in precut studs rather than trimming 8-footers.

How it’s calculated

Studs = ceil(wall length in inches ÷ on-center spacing) + 1 for the starter stud, then multiplied by (1 + extras%) and rounded up to a whole stud. Plate lumber = 3 × wall length (one bottom plate plus a doubled top plate). Cost = studs to buy × your price per stud. The count applies to any stud size (2x4 or 2x6) at the chosen spacing; door and window framing is covered by the extras percentage, not modeled per opening.

Results update as you type and are estimates, not professional advice β€” verify important decisions with a qualified professional.

Common mistakes

  • Forgetting the +1 starter stud — dividing length by spacing counts the gaps, not the studs on both ends of the run.
  • Buying the exact computed count — corners, partition tees, king/jack studs, and culled boards easily add 10–15%.
  • Reading 16 in on center as a 16-in gap — OC is measured center to center, so the clear gap between 2x4 studs is 14.5 in.

Frequently asked questions

How many studs are in an 8 foot wall?

At 16 in on center: 96 ÷ 16 + 1 = 7 studs before extras. At 24 in on center it drops to 5. Corners or an opening push the real count higher.

How many 2x4s do I need per foot of wall?

A common rule of thumb is one stud per linear foot of wall at 16 in on center. The formula count is lower, but the extra roughly covers corners, tees, and openings.

Does a 2x6 wall use fewer studs?

Not at the same spacing — the count formula is identical. 2x6 walls are simply framed at 24 in on center more often, which is what cuts the count.

How much plate lumber does a wall need?

About 3 times the wall length: one bottom plate plus a doubled top plate. A 20-ft wall needs roughly 60 lineal ft of plate stock.

What length studs should I buy for 8-ft ceilings?

Precut studs at 92⅝ in. Combined with three 1½-in plates and ceiling drywall they produce a finished 8-ft wall without cutting every stud.