50+ CALCULATORS·FREE · NO SIGN-UP
Overview
Formula

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.

Splits the count into field, corner and opening studs.
Adds top & bottom plate boards by the board length you buy.
Estimates total lumber in lineal feet for shopping.

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:

Spacing
Typical use
Notes
12″ OC
Heavy loads, tall walls
Most studs, strongest — used under big point loads
16″ OC
Standard interior & load-bearing
The default for most walls; lands on 4 ft sheet goods
24″ OC
Advanced / 2×6 exterior
Fewer studs, more insulation; must be designed for it
Rule of thumb: 16″ on center is the safe default. Spacing 24″ on center saves lumber and reduces thermal bridging — the U.S. Department of Energy and Energy Star describe this in their advanced wall framing guide — but only where the design allows it.

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.

How to use this calculator +×
  1. Measure the wall length in feet and enter it.
  2. Pick your stud spacing — 16″ OC is the usual default.
  3. Choose how many studs sit at each corner (2 is typical).
  4. Enter the number of door and window openings and the wall height.
  5. 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.

Limitations and tips +×

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.

Frequently asked questions +×
Q How many studs do I need for a wall?
Divide the wall length in inches by your on-center spacing and round up, then add one stud for the far end. A 20 ft (240″) wall at 16″ OC is 240 ÷ 16 = 15, plus 1 = 16 field studs, before corners and openings. A quick cross-check is about one stud per linear foot of wall.
Q How many studs for a 12×12 room?
Each 12 ft wall at 16″ OC needs about 9–10 studs, so a bare four-wall room is roughly 36–40 studs, rising to about 40–48 once you add corners and any doors or windows. Enter each wall above for an exact figure.
Q Is 24-inch on-center framing safe?
Yes when it is designed for it. Advanced framing at 24″ OC (usually 2×6) is code-recognized and saves lumber and energy, but load-bearing, tall or heavily loaded walls may still need 16″ OC. Confirm against your local code.
Q Do doors and windows change the stud count?
Yes — each opening adds king, jack and cripple studs. This calculator adds about four studs per opening; add more for wide openings that need doubled jack studs.
This calculator is for planning and material estimating only and is not a substitute for engineered plans or a building inspection. Stud size, spacing, header sizing and bracing for load-bearing and exterior walls are governed by your local building code. Always verify measurements on site and consult a licensed contractor or engineer for structural work.

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.

Field studs
F = ceil( L×12 ÷ S ) + 1
Corner studs
C = (E − 1) × 2
Opening studs
P = O × 4
Total studs
N = F + C + P
Plate boards
B = ceil( L × 3 ÷ Lb )

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:

Step 1 · Field studs
F = ceil(20×12 ÷ 16) + 1 = ceil(15) + 1 = 16
Step 2 · Corner studs
C = (2 − 1) × 2 = 2
Step 3 · Opening studs
P = 1 × 4 = 4
Step 4 · Total studs
N = 16 + 2 + 4 = 22 studs
Step 5 · Plate boards
B = ceil(20 × 3 ÷ 8) = ceil(7.5) = 8 boards

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.

Wall Stud Calculator

ft
#
ft
Enter your wall length, then press Calculate.
--
Studs needed
--
Field studs--
Corner studs--
Opening studs--
Plate boards--
Total lumber--
--
Elena Castillo ✓ Contractor reviewed
Updated Jul 2026 · 6 min read · Reviewed by the InfoCalculator editorial team