Frame squarely.
Studs needed for any wall, including headers for openings. IRC-compliant spacing with king studs, jack studs, and cripples.
How we calculated this
Line studs are spaced at either 16" or 24" on center. 16" OC is the residential standard, and it means a stronger wall, easier drywall install (4-ft sheets break on studs), and what most carpenters default to. 24" OC saves ~35% studs and is permitted for most non-bearing interior walls and some exterior walls with engineered sheathing. The calculator computes the line by dividing the wall length (in inches) by spacing and adding one for the end stud.
Corner framing adds extra studs for the intersection of walls. A standard 3-stud corner adds 2 studs beyond the line count (one at the end, plus a 2-stud L at the corner itself). Modern energy-efficient corners use 2 studs with a corner backing board, saving lumber and allowing more insulation.
Each door opening requires 6 extra studs beyond the line: 2 king studs (full-height, flanking the opening), 2 jack studs (shorter, supporting the header), and typically 2 cripple studs above the header to complete the wall. The calculator doesn't subtract the line studs that would have been in the opening, which builds in a small buffer that's typical of how carpenters actually order.
Each window adds 8 extra studs: 2 king, 2 jack, 2 cripples above the header, and 2 cripples below the rough sill. Wider windows need more cripples, so the calculator uses 2 as a baseline for typical 3-foot-wide windows. For 6+ foot windows, add 2 more cripples per opening.
Header sizing: non-bearing walls (interior partitions not supporting roof or floor loads) can use 2×4 flat-plate headers for openings under 4 feet. Bearing walls (most exterior walls, load-bearing interior walls) require heavier headers per IRC 2021 Table R602.7: 2×6 up to 4-ft spans, 2×8 up to 6-ft spans, 2×10 up to 8-ft spans, 2×12 up to 10-ft spans. The calculator recommends a minimum, and you should always verify with actual span calculations.
Not covered: non-standard framing (balloon framing, advanced framing, SIPs), engineered lumber (LVL, glulam, I-joists for headers), seismic or hurricane hold-downs, or shear wall requirements. This is a materials estimator, so for load-bearing decisions, consult a residential structural engineer or IRC span tables.
Stud count is more than wall length divided by spacing
The formula everyone starts with is wall length in inches divided by the spacing, plus one. A 12-foot wall at 16 inches on center: 144 inches divided by 16 is 9, plus 1 is 10 studs. That number is correct, and it's also incomplete, because a real wall is never just a row of evenly spaced studs. Every door and window needs king studs, jack studs, a header, and cripples. Every corner needs a stud assembly for drywall backing. A 20-foot wall with two windows and a door needs 10 to 12 more studs than the simple formula predicts, and if you order to the simple formula you come up short on framing day.
This page walks through the whole count: the common studs, the spacing rules that set them, and the extra studs that openings and corners demand. The calculator above handles all of it once you tell it the wall length and how many openings you have.
How we calculated these numbers▾
Common stud spacing follows IRC Section R602.3. King, jack, and header requirements at openings follow IRC R602.7 and the header span tables. Cripple studs above and below openings follow R602.7.1. Corner assemblies provide drywall backing per standard framing practice. The calculator adds king and jack studs per opening, cripples, and corner studs on top of the common-stud grid. It does not size headers or model shear bracing; use the sources below and your local code for those.
The parts of a stud wall
Before the count makes sense, the vocabulary has to. A stud wall is simpler than it looks once the pieces have names.
The plates are the horizontal members. The bottom plate (or sole plate) runs along the floor; the top plate is doubled in most walls, two members stacked, which is how walls lock together at corners and carry load along their length. The common studs are the vertical members that fill the wall on a regular spacing. Everything else exists to frame an opening or a corner.
At a door or window, a king stud runs full height on each side, plate to plate. Inside the kings, a jack stud (also called a trimmer) is cut shorter and nailed to the king, and its job is to hold up the header, the beam that spans the opening and carries the load that would otherwise pass straight down through studs that aren't there anymore. Above the header, and below a window sill, short cripple studs keep the framing grid going so sheathing and drywall have something to fasten to. That's the whole cast: plates, common studs, kings, jacks, headers, cripples, and corner assemblies.
Standard stud spacing, and where it starts from the corner
Studs are spaced 16 inches on center in most residential walls, and the phrase "on center" is doing important work: it's the distance from the center of one stud to the center of the next, not the gap between them. This matters because 4-foot-wide sheet goods (drywall, plywood, OSB) are built around it. At 16-inch centers, the edge of a 4-foot sheet lands dead center on a stud every time, three studs across, giving you a fastening surface exactly where the sheets meet. At 24-inch centers, the same holds for a 4-foot sheet across two bays. Break the spacing and your sheet edges float in mid-air with nothing to screw into.
Here's the detail that trips people up, and that almost no calculator explains: the layout doesn't start at 16 inches from the corner. It starts so that the center of the first common stud lands at 16 inches from the end of the wall. In practice framers pull their tape and make the first mark at 15-1/4 inches, then every 16 inches after, because the first stud sits at the very end of the wall and you want the next stud's center, not its edge, to hit 16. Get this right and the first full sheet of drywall breaks on a stud. Get it wrong by 3/4 of an inch and every sheet down the wall is off, and you're adding blocking to catch the edges.
When to use 24-inch spacing instead: interior non-bearing partition walls are the easy case, and it saves lumber with no downside. On exterior and bearing walls, 24-inch spacing (part of what's called advanced or optimum-value framing) is allowed by the IRC but comes with conditions on stud size, story height, and the roof and floor loads above. If you're framing a bearing wall and thinking about 24 inches to save studs, confirm it against your local code first rather than assuming.
The studs the formula misses
Openings are where stud counts blow past the simple formula. Each door or window adds, at minimum, two kings and two jacks, so four studs before you count a single cripple. A standard window also adds a sill and the cripples below it, plus cripples above the header. Tally it for a single window and you're often at six to eight pieces of framing for one opening.
Corners are the other place the formula falls short. A traditional three-stud corner uses a full stud at the corner plus two more behind it, angled to give drywall a nailing surface on the inside of both walls. That's two extra studs per corner beyond the common-stud grid. There's an energy-efficient two-stud corner (with drywall clips or scrap-ply backing) that leaves room for insulation to reach the corner, but the extra-stud math is similar enough that the calculator adds two per corner either way.
2x4 or 2x6: which stud to frame with
The choice between 2x4 and 2x6 studs isn't about spacing, it's about wall depth, and it mostly comes down to insulation and whether the wall is exterior. The count of studs is the same for a given spacing regardless of size; what changes is the lumber you order and what the wall can hold.
2x4 wall | 2x6 wall | |
|---|---|---|
| Actual depth | 3-1/2 in | 5-1/2 in |
| Typical use | Interior walls, most partitions | Exterior walls in cold climates |
| Insulation it holds | R-13 to R-15 batt | R-19 to R-21 batt |
| Common spacing | 16" OC | 16" or 24" OC |
| Cost per stud | Lower | ~40-60% more |
2x6 exterior walls are increasingly standard in cold climates because the deeper cavity holds more insulation, which pairs with 24-inch spacing to offset the higher lumber cost. Interior partitions almost always stay 2x4.
If you're framing an exterior wall in a heating-dominated climate, 2x6 at 24 inches on center is the common modern choice: fewer studs, deeper insulation cavity, less thermal bridging through the framing. Interior partition walls that carry no load and hold no insulation have no reason to be anything but 2x4 at 16 inches. Once you settle the stud size, the insulation calculator tells you how much batt the cavities take.
Composite illustration based on typical project dimensions, regional contractor pricing, and 2026 material costs. Not a specific real project.
Counting a real wall, start to finish
Numbers make the method concrete, so here's a full count for a common wall: 24 feet long, one exterior door, two windows, framed at 16 inches on center with corners at each end.
Start with the common studs. 24 feet is 288 inches, divided by 16 is 18, plus 1 is 19 common studs. That's the grid. Now the openings. The door adds two king studs, two jack studs, and two cripples above the header: six pieces. Each window adds two kings, two jacks, two cripples above the header, and two cripples below the sill: eight pieces per window, sixteen for the pair. The two corners add two studs each, four total. Add it up: 19 common plus 6 for the door plus 16 for the windows plus 4 for the corners is 45 studs.
Notice how far that is from the naive answer. The simple length-over-spacing formula gave 19. The real wall needs 45. More than half the studs in this wall are doing something other than filling the grid, and every one of them is required by the framing, not optional. Then, on top of 45, order roughly 10 percent spare for warp and splits, so put 50 studs on the truck. This is exactly the tally the calculator above produces once you enter the openings, and it's why counting openings by hand and hoping is how framing days end with a hardware run.
Where framing counts go wrong
Counting openings as savings. The instinct is that a door or window means fewer studs, since there's a hole where studs would be. It's the opposite. An opening removes one or two common studs and adds four to eight framing members around it. Openings cost studs, they don't save them.
Starting the layout at the wrong point. Covered above, but it's the single most common framing error: laying out the first stud center at 16 inches from the corner instead of accounting for the corner stud, so sheet edges miss the studs all the way down the wall.
Forgetting the doubled top plate. The top plate is two members, not one, and the second plate laps the joints so walls tie together. People ordering plate stock for the linear footage of one plate come up exactly half short.
Skipping the spares. Framing lumber warps, splits, and shows up with unusable crowns. Order about 10 percent over your calculated count. A warped stud you can cull is cheaper than a framing day cut short.
Once the wall is stood and sheathed, the framing feeds directly into the next steps: the drywall calculator uses the same wall dimensions for sheet count, and the insulation calculator uses your stud size and spacing to figure how much batt goes in the cavities.
Frequently asked
How many studs do I need for a 20-foot wall?
At 16" OC: 16 line studs. Add 1 door (+6), 2 windows (+16), and 2 corners (+4) = 42 studs total. The calculator handles any wall length and opening count. For safety, order 10% extras, because warped boards are common and unusable.
Should I use 16" or 24" OC spacing?
16" OC for most residential walls, since it is stronger, easier to sheetrock, and what most building codes require for bearing walls. 24" OC (sometimes called 'advanced framing') saves lumber for non-bearing interior walls and some single-story exterior walls with engineered sheathing. Check your local code before using 24" OC for bearing walls.
What are king studs and jack studs?
King studs are full-height studs flanking a door or window opening, and they connect the top plate to the bottom plate. Jack studs are shorter, nailed to the king studs, supporting the bottom of the header. Together they form the structural frame around the opening. Larger openings may need doubled or tripled jacks.
What size header do I need?
Non-bearing walls with openings under 4 ft: 2×4 flat header OK. Bearing walls: 2×6 header for up to 4-ft span, 2×8 for up to 6 ft, 2×10 for up to 8 ft, 2×12 for up to 10 ft. Spans over 10 ft typically need engineered lumber (LVL, glulam). Always verify with IRC Table R602.7 for your specific load and span.
What are cripple studs?
Short studs above or below an opening that maintain the framing grid. Above a header: short studs between the header and the top plate. Below a window sill: short studs between the sill and the bottom plate. They maintain nailing surface for sheathing and drywall. Count them when ordering lumber.
Do partition walls need headers?
For openings under 3 feet in non-load-bearing walls: often just a flat 2×4 header is sufficient. For wider openings in non-bearing walls: 2×6 works. Bearing walls require proper headers regardless of width. When in doubt, install a header. Over-engineering a non-bearing wall wastes a few dollars; under-engineering a bearing wall causes structural failure.
How does corner framing work?
Traditional 3-stud corner: full stud at corner, then 2 studs backing it to provide nailing surface for drywall. Uses 3 studs per corner plus blocking. Energy-efficient 2-stud corner: two studs forming the L, with plywood/OSB scraps for drywall nailing, which allows insulation to extend to the corner. The calculator uses +2 studs per corner which covers both methods.
What about shear walls and bracing?
Not modeled here. Most walls need some form of lateral bracing, either let-in diagonal bracing, metal strap bracing, or (most common) wood structural panel sheathing (OSB or plywood) covering at least part of the wall. Required by code especially in seismic and high-wind regions. Consult your local building official for specific requirements.
Sources
- IRC Section R602.3: Design and Construction (Wood Wall Framing) - Stud size, spacing, and height requirements for wood-framed walls
- IRC Section R602.7: Headers - Header spans and the king and jack stud requirements at openings
- IRC Section R602.7.1: Single Member Headers and Cripples - Cripple stud requirements above and below wall openings
- AWC Wood Frame Construction Manual (WFCM) - Prescriptive framing tables for stud spacing, plates, and connections
- APA Advanced Framing Construction Guide - 24-inch spacing, two-stud corners, and optimum-value framing practice
Was this calculator helpful?