Framers

Stud Spacing Calculator

Calculate the number of studs needed for wall framing. Determine spacing intervals (16" or 24") for residential and commercial walls.

Stud Spacing Calculator
Precision disclaimer: Does not account for openings (doors, windows), corners, or blocking. Actual stud count may vary. Verify with construction plans.

How to Use This Calculator

Wall studs are the vertical members that carry load from roof and floor above. Spacing them correctly means you use the right amount of material without compromising strength. The IRC allows two standard spacings in residential framing: 16 inches on center (16” OC) or 24 inches on center (24” OC). “On center” means the distance from the center of one stud to the center of the next.

Enter your wall length in feet and your desired spacing (16” or 24”), and the calculator tells you how many studs you need. The formula is: studs = (wall length in inches ÷ spacing in inches) + 1. That extra 1 accounts for the stud at the starting corner. Example: a 20-foot wall at 16” OC requires 20 × 12 ÷ 16 + 1 = 15 + 1 = 16 studs.

Spacing closer (16” OC) gives you more strength and allows thinner drywall (1/2 inch works fine). Spacing wider (24” OC) uses fewer studs, which saves money but may require thicker drywall (5/8 inch) depending on building code and load. Consult your local code and the house design.

Formula

Number of Studs: Studs = (wall length in inches / spacing in inches) + 1

Where:

  • Wall length is converted to inches (multiply feet by 12)
  • Spacing is 16 inches or 24 inches on center
  • The “+1” accounts for the stud at one end

Example calculation:

  • Wall length: 30 feet = 360 inches
  • Spacing: 16” OC
  • Studs = (360 / 16) + 1 = 22.5 + 1 = 23.5, round up to 24 studs

When to Use This

Every wall you build. Before you buy lumber or cut studs, calculate the quantity. This prevents overbuy (which wastes money) and underbuy (which stops your work). A 40-foot exterior wall at 16” OC needs 31 studs; at 24” OC needs 21 studs. That’s a $50–$100 difference depending on lumber cost, plus labor efficiency.

Knowing stud count helps you plan material delivery, calculate labor time, and estimate costs accurately. It’s also your quality check: if you’re framing and your calculated 24 studs are already in place but the wall isn’t finished, you know you’re on track.

Code References

  • IRC R602.3: Studs in exterior walls must be spaced 16” OC or 24” OC depending on load
  • IRC R602.3.1: Interior non-load-bearing walls can be framed at 24” OC
  • IRC R602.3(1): Load-bearing walls under two floors or roof plus floor require 16” OC spacing in many jurisdictions; some allow 24” OC with engineered design
  • Local amendments: Some jurisdictions enforce 16” OC for all exterior and load-bearing walls; check before you frame

Frequently Asked Questions

Can I use 24” OC spacing on an exterior wall?

Depends on your jurisdiction and the building design. The IRC allows 24” OC for single-story or the top story of a multistory home, but only with limitations. Load-bearing walls under two or more stories typically require 16” OC. Check your local building department before you frame; an inspector can reject a job that violates local amendments to the code.

Do I measure spacing from the inside or outside face of the stud?

You measure from the center of one stud to the center of the next—that’s “on center.” Whether you measure from inside, outside, or middle doesn’t matter; the distance between centers is what counts. Most framers snap a chalk line at 16” or 24” intervals and line up the center of each stud to the line.

What about corner studs and openings?

Corner studs are often doubled or tripled for nailing drywall and for strength. Openings (doors, windows) require additional studs on each side of the opening and a header or lintel above. Your count of (length / spacing) + 1 is for regular walls without openings. Plan extra studs for corners and openings—typically 2–4 additional studs per corner and 4–6 per opening, depending on width.

If I’m short a few studs, can I space some studs 18” or 20” apart?

Avoid it. Code specifies 16” or 24”—those are the approved spacings. Drywall, bracing, and load paths are designed around those intervals. If you don’t have enough studs, buy more or adjust your wall length slightly. Don’t improvise spacing and hope it passes inspection.

How do I handle the last stud if the wall length doesn’t divide evenly?

The last space will be narrower than your nominal spacing. If your wall is 27 feet 6 inches at 16” OC, you’ll have normal spacing until the last bay, which will be around 14–15 inches. That’s acceptable. The code says “16” OC” as a nominal spacing, not a maximum—closing out a wall with a narrower final space is standard practice.


Want more advanced calculations?

Check out our professional apps →