Wall Stud Calculator
Enter the wall length and stud spacing to estimate the number of studs required.
What this calculator does
Framing a wall starts with one number: how many studs the run of wall consumes. This calculator takes the wall length and the stud spacing — 16 or 24 inches on center — and returns the stud count for the straight run. The default 20 ft wall at 16 in on center works out to 16 studs. That is the base count; corners, openings and plates add more lumber on top, which the sections below quantify.
How the stud count formula works
Studs are spaced on center, meaning the measurement runs from the middle of one stud to the middle of the next. A 16 inch grid over a 20 ft wall holds 20 × 12 ÷ 16 = 15 gaps, and one more stud closes the far end, so 16 studs. The calculator rounds the gap count up before adding the end stud, because a partial bay still consumes a full stud. Sixteen inches on center is the residential standard; 24 inches on center is allowed in many codes for non-load-bearing walls and some load paths, and it cuts the stud count by roughly a third.
Stud count by wall length
| Wall length | Studs at 16 in OC | Studs at 24 in OC |
|---|---|---|
| 8 ft | 7 | 5 |
| 12 ft | 10 | 7 |
| 16 ft | 13 | 9 |
| 20 ft | 16 | 11 |
| 40 ft | 31 | 21 |
The 24 inch column shows the appeal for builders: a 40 ft wall drops from 31 studs to 21, saving 10 sticks of lumber on one wall alone. The tradeoff is stiffer drywall attachment requirements and heavier sheathing spans, which is why 16 inch framing remains the default.
Worked example: a 20 ft interior wall
The defaults give 20 ft × 12 ÷ 16 + 1 = 16 studs. Now add the framing details this run will actually need. A top plate and bottom plate consume two more stud-lengths’ worth of lumber — 40 ft of plate material, which is two additional 20 ft boards. One doorway adds 2 king studs and 2 jack studs. One interior corner adds 2–3 backup studs for drywall nailing. All told, a 20 ft wall with one door and one corner consumes about 23–24 studs, not 16.
What openings and corners add
- Each door or window adds 4–6 studs: 2 king, 1–2 jack, plus cripples above the header
- Each corner adds 2–3 studs for inside and outside nailing surfaces
- Wall intersections add blocking or backup studs where drywall from the crossing wall lands
- Plates run twice the wall length — a 20 ft wall takes 40 ft of plate lumber
What moves the number
- Spacing: switching 16 in to 24 in on center cuts studs about 30%, from 16 to 11 on this wall
- Openings: every window or doorway adds 4–6 studs plus a header that consumes more lumber
- Corners and intersections: each one adds 2–3 backup studs
- Wall height: 9 and 10 ft ceilings need full-length studs — a 10 ft wall cannot be pieced from 8 ft stock
- Load path: bearing walls may require doubles under beams and extra posts, regardless of spacing
Common mistakes when buying studs
- Ordering the bare formula count and discovering on framing day that corners and openings were never counted
- Buying all 8 ft studs for a wall with 9 ft ceilings, then splicing vertically where code forbids it
- Mixing stud grades — crowned or twisted studs telegraph through drywall as waves
- Forgetting plate lumber, which doubles the linear footage of dimensional lumber for the same wall
Crowning matters enough to say twice: sight down every stud before nailing, mark the crown, and set all crowns the same direction. The formula counts studs; only sorting them produces a flat wall.
What studs cost in 2026
A pre-cut 2×4×8 stud runs $3–$6 in most markets, so the base 16 studs for the default wall cost $50–$100. Add plates, corner backup, door framing and cripples and the lumber bill lands near $90–$150 for a 20 ft wall — cheap enough that ordering 10% extra is standard. Sheathing, drywall, insulation and fasteners each roughly double the wall’s total cost beyond the studs themselves, which is why framing lumber alone rarely exceeds 15% of a finished wall’s budget.
16 versus 24 inch spacing: when it matters
Sixteen inch spacing earns its keep in three places: bearing walls, tile-hung walls where stiffness matters, and any wall carrying heavy wall-mounted loads like cabinets or televisions. Twenty-four inch framing is legitimate in code-approved assemblies, especially with advanced framing techniques that pair it with single top plates and insulated headers, and it saves both lumber and cost. Check the wall’s job before choosing spacing — and remember that drywall and sheathing are sized for 16 inch spans, so switching spacing mid-project can force different panel choices.
Frequently asked questions
How many studs do I need for a 20 foot wall?
At 16 inch on center, 16 studs for the straight run: 20 × 12 ÷ 16 + 1 = 16. Add 2–3 per corner and 4–6 per door or window, so a finished 20 ft wall with one door typically consumes 23–24 studs.
How many studs for a 12 foot wall?
At 16 in on center, 10 studs: 12 × 12 ÷ 16 + 1 = 10. At 24 in on center the same wall takes 7.
What does 16 on center mean?
Studs are placed 16 inches apart measured from the center of one stud to the center of the next. A 20 ft wall holds 15 bays of 16 inches, closing with a 16th stud at the far end.
Should I frame with 16 or 24 inch spacing?
Sixteen inches is the standard for bearing walls and anywhere stiffness matters; 24 inches is code-allowed in many assemblies and saves roughly 30% on studs — 11 instead of 16 on a 20 ft wall.
How many extra studs for a door or window?
Each opening adds 4–6 studs: two king studs flanking the opening, one or two jack studs carrying the header, and cripples above. A header itself consumes additional lumber sized to the span.
How much does framing a wall cost in lumber?
Sixteen studs at $3–$6 each run $50–$100, and a complete 20 ft wall with plates, corners and door framing lands near $90–$150 before sheathing and drywall.
How much lumber do the plates need?
Top and bottom plates together run twice the wall length. A 20 ft wall takes 40 ft of plate material — two extra boards — and bearing walls add a third plate.
Why do studs need to be crowned the same way?
Every stud has a slight curve along its face. Setting all crowns the same direction keeps the finished wall flat; mixed crowns produce visible waves once drywall is screwed on.
Method and sources
- Wall stud count = length ÷ spacing + 1, plus corner and opening extras.