Calculators · Framing Calculator
Lumber & FramingFraming Calculator
Enter the wall length, height, stud spacing and openings to count the studs, king and jack studs, cripples, headers and plates.
Studs for this wall
—
How to calculate wall framing
A framed wall is a row of studs between a bottom plate and a top plate, with extra pieces around each opening. You count the pieces in groups. The calculator treats the wall as one straight run with a stud at each end:
| What you count | Formula |
|---|---|
| Layout studs | wall length ÷ spacing, rounded up, + 1 |
| Extra corner studs | corners × (studs in a corner − 1) |
| King studs | 2 × kings per side, for each opening |
| Jack studs | 2 × jacks per side, for each opening |
| Cripples above a header | opening width ÷ spacing, rounded up |
| Cripples below a window | the same number as above the header |
| Layout studs an opening replaces | opening width ÷ spacing, rounded up, − 1 |
| Header length | opening width + 2 × jacks per side × 1 1/2 in |
| Bottom plate | wall length (minus the doors if you cut it there) |
| Top plate | layers × wall length |
| Stud length | wall height − (1 + top plate layers) × 1 1/2 in |
The 1 1/2 in is the real thickness of dry lumber of 2 in nominal thickness, from the American Softwood Lumber Standard, PS 20-25 (table 3, checked October 2026). The real width of a 2x4 is 3 1/2 in and of a 2x6 is 5 1/2 in, so the plates and studs are thinner than their names.
The exact number of layout studs an opening replaces, and of cripples that fit above it, depends on where the studs fall along the wall. The calculator takes the least number of studs an opening can replace and the most number of cripples that can fit. That way it never comes up short, and it may leave you with one stud too many.
Example: a 20 ft wall with a door and a window
The wall is 20 ft long and 8 ft high, with studs 16 in on center. It has two corners with 3 studs each, one 36 in door and one 48 in window. Each opening has 1 king stud and 1 jack stud per side and a header made of 2 pieces. The plates are two top layers and one bottom plate cut from 12 ft boards. These are the values already in the calculator.
| Step | Operation | Result |
|---|---|---|
| Layout studs | 240 ÷ 16 = 15, + 1 | 16 |
| Studs the openings replace | door (3 − 1) + window (3 − 1) | − 4 |
| Extra corner studs | 2 × (3 − 1) | + 4 |
| King studs | 2 × 1 × 2 openings | + 4 |
| Full-height studs | 16 − 4 + 4 + 4, each 91 1/2 in | 20 |
| Jack studs | 2 × 1 × 2 openings | 4 |
| Cripple studs | door 3 above, window 3 above + 3 below | 9 |
| Studs in total | 20 + 4 + 9 | 33 |
| Headers | 2 pieces of 39 in for the door, 2 of 51 in for the window | 4 |
| Window sill | 1 piece of 48 in | 1 |
| Plates | 3 layers × 20 ft = 60 ft, ÷ 12 ft boards | 5 boards |
The jack studs, the cripples, the headers and the sill are shorter than the full-height studs, so a lumber order for them is made of shorter pieces. To turn those pieces into boards of the lengths you can buy, type them into the lumber calculator.
Studs by wall length
This is the layout stud count of a plain wall with no openings and no extra corner studs, from the rule wall length in inches ÷ spacing, rounded up, plus 1.
| Wall length | 12 in o.c. | 16 in o.c. | 24 in o.c. |
|---|---|---|---|
| 4 ft | 5 | 4 | 3 |
| 8 ft | 9 | 7 | 5 |
| 10 ft | 11 | 9 | 6 |
| 12 ft | 13 | 10 | 7 |
| 16 ft | 17 | 13 | 9 |
| 20 ft | 21 | 16 | 11 |
| 24 ft | 25 | 19 | 13 |
| 30 ft | 31 | 24 | 16 |
| 40 ft | 41 | 31 | 21 |
What the code says about stud spacing
Whether you can use 16 in or 24 in depends on the stud size, the wall height and what the wall holds up. The IRC covers it in table R602.3(5), size, height and spacing of wood studs. We read it in the California Residential Code 2025, which is based on the IRC, and in the 2012 IRC as published by Seattle, in October 2026. The values were the same. The table below is a summary of the maximum spacing in inches. A dash means the table has no value.
| Stud size | Bearing wall: roof and ceiling only | Bearing wall: one floor, roof and ceiling | Bearing wall: two floors, roof and ceiling | Nonbearing wall |
|---|---|---|---|---|
| 2×3 | — | — | — | 16 in, up to 10 ft tall |
| 2×4 | 24 in | 16 in | — | 24 in, up to 14 ft tall |
| 3×4 | 24 in | 24 in | 16 in | 24 in, up to 14 ft tall |
| 2×5 | 24 in | 24 in | — | 24 in, up to 16 ft tall |
| 2×6 | 24 in | 24 in | 16 in | 24 in, up to 20 ft tall |
The table has one more column, for a bearing wall that supports one floor only, and its maximum spacing is 24 in for every size from 2×4 to 2×6. In the same table the unsupported height of a stud in a bearing wall is 10 ft for every size that has a bearing value. The 2×3 is not for exterior walls, and a habitable attic on 2×4 studs is limited to a roof span of 32 ft. Bearing walls must be sheathed on at least one side or have bridging, and the table has other conditions in its notes, so read the whole table in your code before you rely on a spacing.
Corners, top plates and openings
- Corners. The 2025 California Building Code, in its conventional light-frame provisions, says not less than three studs at each corner of an exterior wall, and allows two with wood spacers or backup cleats for the finish (section 2308.9.2, checked October 2026). That is one state's code. The 2012 IRC wood-wall chapter we read does not state a corner count, so this calculator asks you for the number from your plans and only shows a note if you use fewer than three.
- Top plate. The 2012 IRC, as published by Seattle, caps wood stud walls with a double top plate, lapped at corners and intersections, with end joints offset at least 24 in (R602.3.2). A single plate is allowed with the steel ties of its exception, and on interior nonbearing walls (R602.5). Studs bear on a bottom plate at least 2 in nominal thick and as wide as the studs (R602.3.4).
- Headers. The IRC points to its header tables and figures for the size of a header (R602.7). In the 2012 text, nonbearing walls can use a single flat 2x4 header for openings up to 8 ft when the distance to the nailing surface above is 24 in or less, and then no cripples or blocking are required above the header (R602.7.3). The calculator counts cripples anyway, so subtract them if your plans leave them out.
- Other editions. We could not open the 2021 and 2024 editions of the IRC from the publisher. Your state or city adopts one edition with its own changes, so confirm each point with your building department.
Frequently asked questions
How many studs do I need for a wall?
Divide the wall length in inches by the spacing in inches, round up, and add one for the last stud. A 20 ft wall is 240 in, and at 16 in on center that is 240 ÷ 16 = 15, plus 1, so 16 studs. Then add the extra framing at corners, the king and jack studs at each opening and the cripples above and below the openings, and take off the studs that the openings replace. The calculator does all of that.
How do I calculate studs for 16 inches on center?
Use 16 as the spacing. The count is the wall length in inches ÷ 16, rounded up, plus 1. A 12 ft wall is 144 ÷ 16 = 9, plus 1 gives 10 studs, and a 16 ft wall gives 13. The spacing is measured from the center of one stud to the center of the next, and the first stud sits at the end of the wall.
How many studs does 24 inches on center save?
It cuts the count of a plain wall by roughly a third. A 20 ft wall needs 16 studs at 16 in and 11 studs at 24 in. Whether 24 in is allowed depends on the stud size, the wall height and what the wall carries. In the IRC table of stud sizes and spacing, 2x4 studs under one floor plus a roof are limited to 16 in, while 2x6 studs under a roof only can go to 24 in. Check the table in your local code.
How many studs go in a corner?
The 2025 California Building Code says not less than three studs at each corner of an exterior wall, and allows two if wood spacers or backup cleats provide backing for the finish. That is the code of one state, and the IRC wood-wall chapter we read in the 2012 edition does not give a count. Follow your plans and local code, and type the number you use in the studs per corner box.
How many top plates does a wall need?
The 2012 IRC, as published by the city of Seattle, says wood stud walls are capped with a double top plate, with the plates overlapping at corners and intersections and end joints offset at least 24 inches. A single top plate is allowed when it is tied with the steel plates that the exception describes, and R602.5 allows a single top plate on interior nonbearing walls. The calculator starts with two layers and lets you pick one.
How long is a stud for an 8 foot wall?
Take the wall height and subtract the plates. Dry lumber of 2 in nominal thickness is 1 1/2 in thick, so a wall with one bottom plate and two top plates loses 4 1/2 in. An 8 ft wall, which is 96 in from the bottom of the bottom plate to the top of the top plate, has studs of 91 1/2 in. The calculator shows the stud length for your height and number of plates.
What are king studs, jack studs and cripple studs?
A king stud runs the full height of the wall at the side of an opening. A jack stud, also called a trimmer, sits next to the king stud and carries the header. A cripple stud is a short stud above a header or below a window sill. The header spans the opening and the sill closes the bottom of a window. How many kings and jacks you use, and what the header is made of, comes from your plans and your local code, so you type the numbers in the calculator.
Covering the wall? The drywall calculator counts sheets and screws, and the board foot calculator turns a list of boards into board feet.
More calculators
- Lumber Calculator Turn a list of pieces into boards to buy, with a cut plan, waste, linear feet and board feet.
- Drywall Calculator Calculate the drywall sheets for walls and ceilings, with or without subtracting doors and windows, plus tape, screws and compound.
- Board Foot Calculator Calculate board feet from thickness, width and length for any number of boards.