Framing Calculator
A 24 foot wall at 16 inches on center needs 19 studs on layout, or 29 with two corners, a door and a window. Three plate runs take 72 feet, which is 5 boards of 16 foot stock, and the finished wall order is 21 boards.
Measure the wall, pick the stud spacing, then count the corners and openings. The calculator returns studs, plate footage and the boards to order in 8, 10, 12 or 16 foot stock.
Enter a wall length, height, spacing, corners and openings to get the stud count, the plate footage and the boards to buy in 8, 10, 12 or 16 foot stock.
Key takeaways
- Studs at 16 inches on center: wall length in feet x 0.75, plus 1 for the end stud
- 24 x 0.75 + 1 = 19 studs, and two corners plus two openings push that to 29
- Plates are three runs per wall, so 24 feet needs 72 feet, or 5 boards at 16 feet
- Each door or window adds 2 king studs and 2 jack studs, plus cripples cut from drops
- An 8 foot wall takes 91.5 inch studs once one bottom and two top plates are stacked
On this page
- What this framing calculator counts
- Studs from wall length and spacing
- Why 16 and 24 inches are the two numbers that matter
- Plates: three runs per wall and the cut plan
- Openings: two kings, two jacks and a header
- Corners, intersections and backing
- A 24 foot wall, start to finish
- Waste, stock length and the order
What this framing calculator counts
A wood framed wall is a short list of parts. There are the studs that stand every 16 or 24 inches, the plates that tie them together at the floor and the ceiling, and the extra studs that every corner and every opening needs. This calculator turns a wall length, a wall height and a door and window count into those three numbers, then converts them into boards of 8, 10, 12 or 16 foot stock.
The count is a material takeoff, not a structural design. It assumes a straight wall on a flat floor, studs of one size, and openings framed the way the residential code describes. It does not size a header for you, and it does not check wind or snow loads. Those come from the plans and from the local building department.
One habit makes the numbers easier to trust. Think in inches while you lay out, and in feet while you order. A wall that measures 11 feet 7 inches is 139 inches on the tape, and 139 divided by 16 is the number that sets the stud positions. The board count is a separate step that starts once the layout is settled.
Studs from wall length and spacing
The layout rule is spaces plus one. Studs start at one end of the wall and repeat every 16 or 24 inches, so a wall of length L feet has L x 12 / spacing spaces between studs, and one more stud than there are spaces because both ends get one.
For a 24 foot wall at 16 inches on center: 24 x 12 = 288 inches, 288 / 16 = 18 spaces, and 18 + 1 = 19 studs. At 24 inches on center the same wall has 288 / 24 = 12 spaces, so 13 studs. Six studs disappear with no change to the wall.
Divided out per foot, the rule becomes a coefficient that is easy to carry in your head. At 16 inches on center there are 12 / 16 = 0.75 studs per foot. At 24 inches there are 0.5. So the short form is studs = wall length in feet x 0.75 + 1 at 16 inches, and wall length x 0.5 + 1 at 24 inches. For 24 feet: 24 x 0.75 + 1 = 19, which matches the long way.
| Wall length | Studs at 16 in o.c. | Studs at 24 in o.c. | Plate run, 3 passes |
|---|---|---|---|
| 8 ft | 7 | 5 | 24 ft |
| 12 ft | 10 | 7 | 36 ft |
| 16 ft | 13 | 9 | 48 ft |
| 20 ft | 16 | 11 | 60 ft |
| 24 ft | 19 | 13 | 72 ft |
| 32 ft | 25 | 17 | 96 ft |
The table is layout only, with no corners and no openings. A garage wall with two outside corners and a service door is not a 19 stud wall in practice, and the next sections cover the parts that get added.
Why 16 and 24 inches are the two numbers that matter
Both spacings are legal, but they are not legal for the same wall. The 2021 International Residential Code, Chapter 6, Table R602.3(5) sets stud size, height and spacing together. A 2x4 bearing wall supporting one floor plus a roof or ceiling assembly is limited to 16 inches on center. A 2x4 at 24 inches is allowed for a wall that carries a roof and ceiling only, and for nonbearing walls up to 14 feet tall. A 2x6 at 24 inches can carry one floor plus a roof and ceiling at up to 10 feet of height.
That table explains the pattern on most residential jobs. Interior partitions that carry nothing but drywall go at 24 inches in 2x4. Exterior walls and any wall under a floor go at 16 inches in 2x4, or at 24 inches when the framer moves up to 2x6. Wider studs cost more per board and buy back the spacing.
The spacing also follows the sheet goods. A 4 foot wide panel of plywood or drywall lands on four studs at 16 inches on center, and on three studs at 24 inches. Insulation batts are sold in widths made for 16 inch and 24 inch bays, so changing the spacing changes what you buy at the lumber yard and at the insulation aisle.
Plates: three runs per wall and the cut plan
Every wall gets one bottom plate and two top plates, so the plate length is three times the wall length. A 24 foot wall needs 72 feet of plate. The double top plate is not decoration: it ties intersecting walls together and it spreads the load of the floor or roof above across the studs.
The code cares about where the joints land. Section R602.3.2 requires a double top plate with overlapping at corners and intersections, and end joints in top plates offset by at least 24 inches. The fastening table adds a lap splice of at least 24 inches on each side of a joint. Joints do not have to fall over a stud, which gives the framer room to plan the cuts instead of wasting a board to hit a stud.
| Stock length | Boards for 72 ft of plate | How the 24 ft wall cuts |
|---|---|---|
| 8 ft | 9 | 9 full boards, three per 24 ft run |
| 10 ft | 8 | 7 full boards plus two 1 ft pieces |
| 12 ft | 6 | 6 full boards, joints staggered between layers |
| 16 ft | 5 | 4 full boards plus one cut into two 8 ft pieces |
That last row is why 16 foot stock is popular for long walls: 4 boards cover 64 feet, and one more board cut in half closes the 8 foot gap. Five boards, four cuts, two joints per layer. The same 72 feet in 8 foot stock takes nine boards and eight joints, which is more nailing and more chances for a joint to land badly.
Where the bottom plate sits on a concrete slab or a garage floor, use lumber rated for ground contact and confirm the requirement with the local inspector. The bottom plate is the one plate that can sit in water.
Openings: two kings, two jacks and a header
A door or a window interrupts the stud line, and the frame around it replaces the studs that come out. Each opening takes four studs: two king studs at full height on the outside of the opening, and two jack studs, also called trimmers, on the inside to carry the ends of the header. The header spans the opening and carries the load above it.
The code is specific about the support. Section R602.7.5 requires headers to be supported at each end by one or more jack studs or by approved framing anchors, and the full height stud next to the header has to be end nailed to it. Section R602.7.4 gives a shortcut for interior nonbearing walls: a single flat 2x4 header is allowed over an opening up to 8 feet wide when the distance to the parallel nailing surface above is 24 inches or less, and cripples above that header are not required.
| Part | Count per opening | What it does |
|---|---|---|
| King stud | 2 | Full height stud at each side, nails to the header end |
| Jack stud | 2 | Supports the header, shorter than the king |
| Header | 1 | Spans the opening, size from Table R602.7(1) |
| Cripples | 2 short pieces | Fill between header and top plate, and under a window sill |
The calculator adds four studs per opening, plus two short pieces per opening for cripples, because those pieces are cut from 4 foot drops rather than from full studs. On a bearing wall the header size comes from the code table by span and by what sits above, so a 4 foot closet opening and a 6 foot opening under a second floor do not take the same header.
Corners, intersections and backing
A corner is two walls meeting, so it needs a stud for each direction plus a third to give the drywall and sheathing an edge to land on. Three studs in an L is the standard outside corner, and the calculator charges one extra stud per corner because the layout count already pays for one of them.
An interior wall that butts into another wall takes two extra studs, one on each side of the joint, so the second wall has solid wood to nail to and the drywall corner has backing. That is the difference between a wall that feels solid when you lean on it and one that flexes at the joint.
Backing is the part that is cheap now and expensive later. A grab bar in a bath, a wall cabinet in a kitchen, a wall mounted television and a stair handrail all need wood behind the drywall at the height where the hardware lands. Cut 2x4 or 2x6 blocking to fit between studs while the wall is still flat on the floor, and mark the locations on the top plate so the trim carpenter can find them after the drywall goes up.
A 24 foot wall, start to finish
Take a 24 foot exterior wall, 8 feet tall, studs at 16 inches on center, two outside corners, one 3 foot door and one 4 foot window. The layout gives 19 studs. Two corners add 2, and the two openings add 8, for 29 studs total.
The stud length comes from the height minus the plates. Three plates stack to 4.5 inches, so an 8 foot wall takes studs of 96 - 4.5 = 91.5 inches, which is 7 feet 7 1/2 inches. That is why the studs for an 8 foot wall are shorter than 8 feet. Yards also sell a precut stud of 92 5/8 inches for the same wall; with the same three plates it stacks to 97 1/8 inches, or 8 feet 1 1/8 inches.
Plates total 72 feet. In 16 foot stock that is 5 boards. The 29 studs take two per board at 16 feet, so 15 boards, and the two openings need one more board for cripples. Total: 21 boards of 16 foot stock.
The same wall in 8 foot stock changes the picture. Each 8 foot board yields one stud, so 29 boards, plus 9 boards of plate and 2 for cripples, for 40 boards. The 8 foot order is 320 linear feet against 336 for the 16 foot order, so the short stock buys less wood, while the long stock means 19 fewer boards to carry and far fewer plate joints.
| Item | 16 ft stock | 8 ft stock |
|---|---|---|
| Studs, 29 at 91.5 in | 15 boards | 29 boards |
| Plates, 72 ft | 5 boards | 9 boards |
| Cripples and sills, 2 openings | 1 board | 2 boards |
| Total boards | 21 | 40 |
| Linear feet bought | 336 ft | 320 ft |
For a smaller wall the same steps apply. A 12 foot wall at 16 inches on center has 10 studs on layout, 15 with one corner and one window, needs 36 feet of plate, and comes to 12 boards of 16 foot stock or 21 boards of 8 foot stock.
Waste, stock length and the order
Add waste on top of the count. A plain wall with no openings loses about 5 percent to miscuts and defects, and a wall with several openings loses closer to 10 percent because the cutoffs around windows rarely find a second use. On a 21 board order that is one extra board at 5 percent and two at 10 percent.
Stock length is a trade, not a rule. Long boards mean fewer joints in the plates and fewer trips with the saw, and they are harder to carry and to cut accurately without a helper. Short boards are easy to handle and leave less waste on studs: a 91.5 inch stud leaves 4.5 inches of drop from an 8 foot board, while a 16 foot board cut into two studs leaves 9 inches.
Three checks before the order goes in. Confirm the wall height on the plans, because 9 foot walls change the stud length and the plate count stays the same. Confirm the spacing the plan calls for, since a 2x4 wall at 24 inches is not allowed to carry a floor. Confirm the header sizes and the opening widths, because those come from the code table and from what sits above the wall, and no stud count will fix a header that is too small. The Wood Handbook from the USDA Forest Products Laboratory covers how sawn lumber behaves under load, and the HUD Residential Structural Design Guide walks through light frame wall design in plain language if you want the background behind the code tables.
Frequently asked questions
How many studs do I need for a 24 foot wall at 16 inches on center?
Nineteen on layout: 288 inches divided by 16 is 18 spaces, plus one. With two outside corners, one door and one window the count rises to 29 studs.
How do you work out studs per foot of wall?
Divide 12 by the spacing in inches. At 16 inches that is 0.75 studs per foot, at 24 inches it is 0.5. Then add one stud for the end of the wall: 24 x 0.75 + 1 = 19.
How many plates does a wall need?
Three runs: one bottom plate and two top plates, so the plate length is three times the wall length. A 24 foot wall needs 72 feet of plate.
How many 16 foot boards cover 72 feet of plate?
Five. Four boards give 64 feet and the fifth is cut into two 8 foot pieces, which closes the gap with one joint per layer.
How many extra studs does a door add?
Four: two king studs at full height and two jack studs under the header. The same four apply to a window, plus short cripples above the header and under the sill.
Is 24 inch stud spacing allowed?
Yes, with limits. IRC 2021 Table R602.3(5) allows 2x4 studs at 24 inches for a roof and ceiling only, or for nonbearing walls up to 14 feet, and 2x6 studs at 24 inches for one floor plus a roof at up to 10 feet.
How long are the studs for an 8 foot wall?
91.5 inches, which is 96 inches minus 4.5 inches for one bottom plate and two top plates. Precut studs sold for 8 foot walls are 92 5/8 inches and frame slightly taller than 8 feet.
What is a jack stud?
A shorter stud that sits against a king stud and carries one end of a header. The code requires a jack stud or an approved framing anchor at each end of every header.
Do I need cripples above a window?
Usually yes, to carry the load from the top plate down to the header. A nonbearing wall opening up to 8 feet wide can use a flat 2x4 header with no cripples above when the nailing surface above is within 24 inches.
How many studs are in a 12 foot wall?
Ten on layout at 16 inches on center, or 7 at 24 inches. Add one per outside corner and four per opening: one corner and one window take it to 15.
How much waste should I add to the board count?
Five percent for a wall with no openings and 10 percent when there are several. On a 21 board order that is one or two extra boards.
Can I use this calculator for a 9 foot wall?
Yes. Enter 9 in the height box and the stud length becomes 103.5 inches, since the three plates still take 4.5 inches. Plates stay at three times the wall length.
How many boards for the whole 24 foot wall?
Twenty one boards of 16 foot stock, or 40 boards of 8 foot stock. The 8 foot order buys 320 linear feet and the 16 foot order buys 336, so the long stock costs more wood and less labor.
Why does the top plate need a 24 inch offset at joints?
The code requires end joints in top plates to be offset at least 24 inches, and the fastening table calls for a lap splice of at least 24 inches on each side of the joint, so a joint in one layer never lines up with a joint in the other.
Spotted a wrong number or a broken result?
More Home Improvement tools
- ADU Cost Calculator
- Acreage Calculator
- Aggregate Cost Calculator
- Air Conditioner Room Size & BTU Calculator
- Aluminum Fence Cost Calculator
- Asphalt Calculator
- Awning Cost Calculator
- Bathtub vs Shower Footprint Calculator
- Bleach Dilution Calculator
- Block Mortar Calculator
- Board Footage Calculator
- Board and Batten Layout Calculator
- Board and Batten Siding Calculator
- Board on Board Fence Calculator
- Borax Ant Killer Calculator
- Brick Calculator
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.