Skip to main content
FigureCalc

Stud Calculator

By Uzair Arshad , Senior Civil and Structural Engineer

Last updated: April 25, 2026

Studs = wall length (in) / spacing (in) + 1, then add end studs and openings. This stud calculator handles the math and shows you the exact buy quantity with waste, plate lumber, and optional cost for any framed wall. OC means on center, the distance from the middle of one stud to the middle of the next.

How to use this calculator

  1. Enter the wall length. Measure the total straight run of the wall in feet. Switch to inches if you measured in inches. For multiple walls, run the calculator once per wall.
  2. Choose stud spacing. Most residential interior walls use 16 in OC. Exterior walls and load-bearing walls may require 12 in OC. Some non-load-bearing partitions allow 24 in OC. Check your plans or local building code.
  3. Set wall end studs. Use 1 per end for a simple interior partition. Use 2 per end for a standard corner where two walls meet. Use 3 per end for a California corner that provides nailing surface on both sides.
  4. Add openings if needed. Each door or window opening needs extra king and jack studs. Select 2 for king studs only, 3 for king plus one jack, or 4 for king and jack on each side.
  5. Add waste and optional price. A 10% waste factor covers warped lumber and cutting mistakes. Enter the price per stud to see an estimated material cost.

Pro tip: Mark your plate layout from the same end you measured the wall. Starting from opposite ends creates cumulative spacing errors that push the last stud off layout.

How the calculation works

Stud count:
Base studs = ceil(Wall length in inches / OC spacing) + 1
End studs = Studs per end × 2
Opening studs = Number of openings × Extra studs per opening
Total studs = Base studs + End studs + Opening studs

Buying quantity:
Studs to buy = ceil(Total studs × (1 + Waste % / 100))

Plate lumber:
Plate linear feet = Wall length (ft) × 3 (1 bottom + 2 top plates)
Wall length
Total straight wall measurement in feet or inches
OC spacing
Center-to-center distance between studs in inches (usually 16)
Studs per end
Extra studs at each wall end or corner (1, 2, or 3)
Openings
Number of door or window frames in the wall
Waste %
Extra material for warped lumber, cuts, and blocking

The stud calculator counts the number of vertical framing members needed for a straight wall based on spacing and adjustments.

Main formula:

Base studs = ceil(Wall length in inches / OC spacing) + 1

Variables:

  • Wall length = total straight measurement of the wall, converted to inches
  • OC spacing = center-to-center distance between studs (12, 16, 19.2, or 24 inches)
  • End studs = extra studs at each wall end or corner (1, 2, or 3 per end × 2 ends)
  • Opening studs = extra king/jack studs for doors and windows
  • Waste factor = percentage added for warped boards, cutting waste, and extra blocking

Plate lumber:

Plate linear feet = Wall length (ft) × 3

This covers one bottom plate and a double top plate. Most framed walls use a doubled top plate to tie wall sections together and span joints.

Example:

A 12 foot interior wall at 16 in OC with 1 stud per end and 1 door opening (2 extra studs).

Step Calculation
Wall in inches 12 × 12 = 144 in
Spaces ceil(144 / 16) = 9
Base studs 9 + 1 = 10
End studs 1 × 2 = 2
Opening studs 1 × 2 = 2
Total 10 + 2 + 2 = 14 studs
With 10% waste ceil(14 × 1.10) = 16 studs to buy
Plate lumber 12 × 3 = 36 linear feet

Assumptions:

  • The wall is straight with no angled or curved sections
  • OC spacing is measured center to center, not edge to edge. I once watched a first-time framer measure edge to edge on an entire garage wall and every sheet of drywall was off by 3/4 inch at the seams.
  • Openings are simplified as extra stud additions. Real rough openings also need a header, cripples, and sill plate for windows.
  • This calculator does not perform structural design. Load-bearing walls, tall walls over 10 feet, and exterior walls may need engineering review.
  • Metal studs and wood studs use the same spacing math. The difference is in the fastener type and track system, not the count.
  • Standard 16 in OC spacing for interior bearing walls follows the IRC (International Residential Code) Table R602.3(5). Check your local amendments if you're in a high-wind or seismic zone.

When to use 24 in OC:

Non-load-bearing interior partitions and some single-story exterior walls can use 24 in OC framing where code allows it. This reduces stud count by about 33% compared to 16 in OC. A 20 foot wall drops from 16 base studs to 11. The trade-off is less nailing surface for drywall and reduced soundproofing between rooms.

Quick rule:

  • At 16 in OC, expect roughly 1 stud per foot of wall length (before ends and openings)
  • At 24 in OC, expect roughly 1 stud per 1.5 feet of wall length
  • Always add 10% waste for residential framing projects

Frequently Asked Questions

How many studs do I need for a wall?

Divide the wall length in inches by the stud spacing (usually 16 inches OC), then add 1 for the starting stud. A 12 foot wall at 16 in OC needs ceil(144 / 16) + 1 = 10 studs before adding end studs, openings, or waste. Always round up because partial spaces still need a full stud.

How to calculate studs for a wall?

Convert the wall length to inches, divide by the on-center spacing, round up, and add 1. Then add extra studs for wall ends (1 to 3 per end) and any door or window openings. A 10 foot wall at 16 in OC gives ceil(120 / 16) + 1 = 9 base studs plus your end and opening adjustments.

How to calculate stud spacing?

Stud spacing is measured center to center, not edge to edge. Standard residential framing uses 16 inches on center. Divide the wall length in inches by 16 to find the number of spaces, then add 1 for the final stud. A 2x4 stud is 1.5 inches wide, so 16 in OC leaves 14.5 inches of clear space between studs.

How many studs are in a 10 foot wall?

A 10 foot wall at 16 in OC needs 9 base studs (120 / 16 = 7.5, rounded up to 8 spaces, plus 1). Add 2 end studs for a standard partition and you get 11 studs. With 10% waste you would buy 13 studs to cover warped boards and cutting errors.

How many studs do I need for a 20 foot wall?

A 20 foot wall at 16 in OC needs 16 base studs (240 / 16 = 15 spaces + 1). Add 2 for standard wall ends for 18 studs. With 10% waste, buy 20. You also need about 60 linear feet of plate lumber for one bottom plate and two top plates on a 20 foot wall.