Stud calculator
Enter a wall's length and the stud spacing, and the calculator returns the number of studs, the linear feet of plate, and the board feet of the studs. Each corner adds two studs, or one for a California corner. Rake wall mode gives the stud count for a gable or shed-roof wall with its shortest and tallest heights. The math is the same as the Wall Stud and Rake Wall calculators in the CutOnce app.
By Scott Brady
Software engineer in Seattle and DIY builder who builds the CutOnce construction calculator.
Updated
Field studs are the on-center run: floor(length / spacing) plus one on an exact fit, or plus two when the wall does not divide evenly (the far end gets its own stud), never fewer than two. Each corner adds two studs, or one on a California corner. Waste rounds the total up. Plate stock is the wall length times two plates, or three with a double top plate.
- Field studs
- 19
- Corner studs
- 4
- Plate stock
- 72.0 lin ft
- Total stud length
- 184.0 ft
- Board feet
- 122.7 bf
How the stud count works
A wall has a stud at each end and one at every on-center mark between them. Divide the wall length by the spacing and add one. A 16 ft wall at 16 in on center is 192 / 16 = 12 spaces, so 13 studs.
When the length does not divide evenly, the last on-center mark falls short of the end, and the end still needs a stud. Round the division down and add two. A 10 ft wall is 120 / 16 = 7.5. It has studs on the marks from 0 through 112 in, which is 8, and one more at the end, 8 in past the last mark. That makes 9.
The calculator calls these field studs. It never returns fewer than two, because a wall shorter than one space still has two ends. Corner studs are added to the field count and waste is applied to that total. Plates come from the wall length. Each has its own section below.
A worked example
A 24 ft wall framed at 16 in on center with 8 ft 2x4 studs, a double top plate, and a standard corner at each end. The calculator opens on these numbers.
| Field studs | 19 | 288 in / 16 = 18 spaces, plus 1 |
|---|---|---|
| Corner studs | 4 | 2 corners x 2 studs |
| Total studs | 23 | 19 + 4, no waste |
| Plate stock | 72 lin ft | 24 ft x 3 plates |
| Total stud length | 184 ft | 23 studs x 8 ft |
| Stud board feet | 122.7 bf | 23 x 5.33 bf per stud |
| Plate board feet | 48.0 bf | 72 lin ft x 2 x 4 / 12 |
The board-foot figure in the calculator covers the studs only. The plates add 48.0 bf, which brings the wall to 170.7 bf. With 10% waste the stud count becomes 23 x 1.10 = 25.3, rounded up to 26.
Stud counts by wall length
Field studs for common wall lengths at 12, 16, and 24 in on center, with no corners and no waste. Add two studs for each standard corner.
| Wall length | 12 in OC | 16 in OC | 24 in OC |
|---|---|---|---|
| 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 |
| 50 ft | 51 | 39 | 26 |
The 10, 30, and 50 ft walls do not divide evenly by 16 in, so each carries the extra end stud in that column.
Studs per foot and the one-per-foot rule
On a blank wall the count per foot depends only on the spacing: 0.75 studs per foot at 16 in on center, 0.5 at 24 in, and 1 at 12 in, plus the one stud that closes the end.
A common estimating rule for 16 in framing is one stud per linear foot of wall. The quarter stud per foot left over is the allowance for corners, door and window framing, and blocking. On a 40 ft wall the rule gives 40 studs against a blank-wall count of 31, so 9 spare. On an 8 ft wall it gives 8 against 7, so 1 spare, and two standard corners alone take 4.
The allowance grows with the length of the wall, so the rule is generous on long plain walls and short on small rooms with several corners and openings. For those, count each wall and add its corners and openings. The rule also does not carry over to 24 in framing, where a 40 ft wall needs 21 field studs.
16 or 24 inches on center
What the wall carries sets the spacing. IRC Table R602.3(5) gives the maximum stud spacing for bearing walls with studs up to 10 ft tall, and for nonbearing walls.
| Wall supports | 2x4 studs | 2x6 studs |
|---|---|---|
| Roof and ceiling only | 24 in OC | 24 in OC |
| One floor, plus roof and ceiling | 16 in OC | 24 in OC |
| Two floors, plus roof and ceiling | Not permitted | 16 in OC |
| Nothing (nonbearing wall) | 24 in OC to 14 ft tall | 24 in OC to 20 ft tall |
These are the prescriptive maximums. Wind, snow, and seismic provisions, the wall bracing method, or a local amendment can call for closer spacing or larger studs, so follow the plans and check with the building department.
At 24 in spacing the framing above has to line up with the studs. Where joists, rafters, or trusses are more than 16 in apart and sit on bearing studs at 24 in, IRC R602.3.3 requires each one to bear within 5 in of a stud. The exceptions are a wall with 2x6 or 3x4 top plates, a third top plate, or solid blocking the same size as the studs under the double top plate.
Sheathing and drywall come 4 ft wide, and 48 in divides evenly by 12, 16, and 24, so sheet edges land on a stud at all three spacings. The lumber difference is large: the 24 ft example takes 19 field studs at 16 in and 13 at 24 in.
Marking the plates
Lay the top and bottom plates side by side and mark both at once, so the studs stand plumb. The on-center marks are stud centers measured from the end of the wall, which puts the edge of a 4 ft sheet on the middle of a stud.
A stud is 1-1/2 in thick, so its edge is 3/4 in back from its center. Mark the first line at 15-1/4 in and put an X on the far side of it. That stud covers 15-1/4 to 16-3/4 in and its center is at 16. Then mark every 16 in from that line, with the X on the same side each time.
Keep the layout running through door and window openings. The cripples above a header and below a sill go on the same marks, so sheet edges still land on framing. Start the layout from the same end on the walls above and below, and the studs stack.
Corners and intersecting walls
The field count already puts one stud at each end of the wall. A corner needs more than that, to give the intersecting wall something to nail to and to back the drywall on both inside faces.
The calculator counts a standard corner as three studs: the end stud that is already in the field count and two more. A California corner uses two: the end stud and one more, turned to give the inside face a nailing surface, which leaves the corner open for insulation. On the worked example, California corners add 2 studs where standard corners add 4.
Count a partition that meets the wall as a corner too. The backing there is usually two extra studs or a stud with a flat nailer. Ladder blocking between the neighboring studs does the same job with short blocks, and in that case leave the corner count alone.
To count a room, run each wall through the calculator and count each corner once. A 16 x 12 ft room at 16 in on center has 46 field studs in its four walls and 8 corner studs. That is 54 studs before doors and windows, and 168 lin ft of plate for the 56 ft perimeter with a double top plate. Each wall keeps its own end stud at every corner, so the total runs slightly generous.
Doors and windows
The calculator counts a blank wall and has no input for openings, so their framing is added by hand. Each opening has a full-height king stud on each side, a jack stud (also called a trimmer) under each end of the header, the header itself, and cripple studs above it. A window also has a sill with cripples below it.
A simple way to estimate is to leave the field count as it is and add 4 studs per opening, for two kings and two jacks. The field studs that would have stood in the opening are not saved. They are cut into the cripples, the sill, and blocking. One door in the worked example brings its 23 studs to 27.
Wide openings take more. IRC Tables R602.7(1) and R602.7(2) give the header size and the number of jack studs for the span and the load above. Table R602.7.5 gives the number of full-height studs at each end of a header in an exterior wall. Headers are separate lumber and are not in the stud count.
Stud length, wall height, and plates
The stud height in the calculator is the length of stock it counts: 8, 9, or 10 ft. Total stud length is that length times the stud count, and board feet are the board feet of one stud times the count.
Most walls are framed with precut studs. A precut is shorter than its nominal length, so that the stud and three 1-1/2 in plates make a wall slightly taller than the ceiling height. The extra inch or so leaves room for the ceiling drywall above a full sheet on the wall. The table lists the common lengths, and some regions stock others.
| Ceiling | Precut stud | Three plates | Framed wall height |
|---|---|---|---|
| 8 ft | 92-5/8 in | 4-1/2 in | 97-1/8 in |
| 9 ft | 104-5/8 in | 4-1/2 in | 109-1/8 in |
| 10 ft | 116-5/8 in | 4-1/2 in | 121-1/8 in |
Plate stock is the wall length times the number of plates: one bottom plate and two top plates on a standard wall. The 24 ft example needs 72 lin ft, which is 5 boards 16 ft long with 8 ft left over.
IRC R602.3.2 calls for a double top plate that overlaps at corners and intersecting walls, with end joints in the two layers offset at least 24 in. A single top plate is allowed when the joists or rafters are centered over the studs within 1 in and the plate is tied with steel plates at joints, corners, and intersecting walls. Turn off the double top plate option for a wall built that way and the plate footage drops by a third.
A bottom plate on a concrete slab that is in contact with the ground has to be pressure treated or naturally durable wood, unless an impervious moisture barrier separates it from the slab (IRC R317.1). Buy that run separately from the top plates.
Board feet use nominal dimensions: thickness times width in inches, times length in feet, divided by 12. An 8 ft 2x4 is 5.33 bf and an 8 ft 2x6 is 8 bf.
Waste and culls
The waste setting multiplies the stud total, field and corner studs together, and rounds up to a whole stud. At 10% the worked example goes from 23 studs to 26. It does not change the plate footage.
Studs get rejected for twist, wane, and heavy crown, and a wall also uses short pieces for blocking and cripples. Five to ten percent is a common allowance. Sight down each stud before nailing it in and face the crowns the same way along the wall. A stud with a bad crown can still be cut into cripples and blocks.
Metric spacing: 300, 400, and 600 mm
The web calculator works in feet and inches. The count rule is the same in millimeters: divide the wall length by the spacing and add one when it divides evenly. When it does not, round the division down and add two. The table counts field studs, with no corners and no waste. The Wall Stud calculator in the CutOnce app works in millimeters, with 300, 400, and 600 mm spacing and 2400, 2700, and 3000 mm stud heights.
| Wall length | 300 mm | 400 mm | 600 mm |
|---|---|---|---|
| 2.4 m | 9 | 7 | 5 |
| 3.0 m | 11 | 9 | 6 |
| 3.6 m | 13 | 10 | 7 |
| 4.8 m | 17 | 13 | 9 |
| 6.0 m | 21 | 16 | 11 |
Metric spacing is not a conversion of the imperial spacing. 16 in is 406.4 mm and 24 in is 609.6 mm. A metric sheet is 1200 mm wide, which divides evenly by 300, 400, and 600, and a 4 ft sheet is 1219 mm. Lay out the studs in the same system as the sheets, or the sheet edges drift off the studs along the wall.
Rake and gable walls
A rake wall has a sloped top plate that follows the roof. It is the end wall under a gable or a shed roof when that wall is framed full height to the rafters. The studs stand on the same on-center marks as in any other wall, and each one is taller than the one before it.
The height gained from one stud to the next is the spacing times the pitch. At 6/12 the roof rises 6 in for every 12 in of run, so studs 16 in apart differ by 16 x 6 / 12 = 8 in. When the run does not divide evenly, the last space is shorter and the last step is smaller in proportion.
The example below is a 12 ft run at 6/12 that starts from an 8 ft short wall. The high end is 8 ft plus 144 in x 6 / 12.
| Studs | 10 |
|---|---|
| Height at the low end | 8 ft 0 in |
| Height at the high end | 14 ft 0 in |
| Step between studs | 8 in |
Step per stud by roof pitch
The step between neighboring studs at 16 and 24 in on center, and the plumb thickness of one 1-1/2 in top plate lying on the slope. Values are rounded to the nearest 1/16 in.
| Pitch | Roof angle | Step at 16 in OC | Step at 24 in OC | Top plate, plumb |
|---|---|---|---|---|
| 3/12 | 14.0 deg | 4 in | 6 in | 1-9/16 in |
| 4/12 | 18.4 deg | 5-5/16 in | 8 in | 1-9/16 in |
| 5/12 | 22.6 deg | 6-11/16 in | 10 in | 1-5/8 in |
| 6/12 | 26.6 deg | 8 in | 12 in | 1-11/16 in |
| 8/12 | 33.7 deg | 10-11/16 in | 16 in | 1-13/16 in |
| 10/12 | 39.8 deg | 13-5/16 in | 20 in | 1-15/16 in |
| 12/12 | 45.0 deg | 16 in | 24 in | 2-1/8 in |
The two heights are wall heights, measured from the floor to the top of the sloped plate at that stud's mark. The cut length is shorter by the plates. A bottom plate takes off 1-1/2 in. A top plate that lies on the slope is thicker when measured plumb: 1-1/2 in divided by the cosine of the roof angle, which is 1-11/16 in at 6/12. With one bottom plate and one top plate, the length of a stud at its center mark is 3-3/16 in less than the wall height at that mark.
The top of every stud is cut at the roof angle, 26.6 degrees off square for 6/12. The cut runs across the 1-1/2 in edge of the stud, so one side of the cut is higher than the other by 1-1/2 in times the pitch, which is 3/4 in at 6/12. The length at the center mark falls halfway between: add 3/8 in for the long point or subtract 3/8 in for the short point, and measure every stud to the same point. The two end studs sit with a face on the end of the wall instead of centered on a mark, so take their heights at that face.
The count follows the straight-wall rule: both ends get a stud, and a run that does not divide evenly gets one more. For a full gable, calculate one side from the eave to the ridge and frame the other side as its mirror. The two sides share the stud under the ridge, so the example makes a 24 ft gable with 19 studs.
Bearing studs over 10 ft tall are beyond IRC Table R602.3(5). Section R602.3.1 has narrow exceptions: 2x6 studs that carry a roof load with no more than 6 ft of tributary length can be 18 ft tall at 16 in on center or 20 ft at 12 in, and since the 2018 edition exterior bearing studs up to 12 ft tall are allowed under Table R602.3(6). Both come with wind, snow, and lumber grade conditions. A wall past those limits needs an engineered design. Check this before framing a tall gable end.
What the count leaves out
The stud count covers the full-height studs of a blank wall, and the plate figure covers the plates. Add these separately:
- King studs, jack studs, headers, cripples, and sills at each door and window.
- Blocking: fireblocking where the code requires it (IRC R302.11), backing for cabinets, grab bars, and fixtures, and any mid-height blocks on the plans.
- Wall sheathing and bracing (IRC R602.10), and temporary braces to hold the wall plumb until it is tied in.
- Anchor bolts (IRC R403.1.6) and sill sealer under a bottom plate on a foundation.
- Nails. IRC Table R602.3(1) lists the fastener and spacing for each framing connection.
- Posts and built-up columns under beams and girder trusses.
What the app adds
The Wall Stud calculator in the CutOnce app runs this same count and draws the wall elevation as you enter it. It takes a custom spacing, such as 19.2 in, and a custom stud height. It works in millimeters with 300, 400, and 600 mm spacing, lists a pressure-treated bottom plate as its own line, and exports a PDF with the elevation and a lumber cut list. The Rake Wall calculator lists every stud with its own cut length, takes the plate thicknesses into account, gives the angle for the top cuts, and exports the elevation and the stud schedule as a PDF. Both work with no signal.
Common questions
- How many studs do I need for a 24 foot wall?
- At 16 in on center a 24 ft wall takes 19 studs: 288 in divided by 16 is 18 spaces, plus one for the end. At 24 in on center it takes 13. Add two studs for each standard corner, which makes 23 for a wall with a corner at both ends.
- How many studs do I need for a 20 foot wall?
- 16 studs at 16 in on center, not 15. A 20 ft wall is 240 in, and 240 / 16 = 15 is the number of spaces. There is a stud at both ends of every space, so the wall has one more stud than it has spaces. At 24 in on center it takes 11.
- How many studs do I need for a 12 foot wall?
- 10 studs at 16 in on center: 144 / 16 = 9 spaces, plus one. At 24 in on center it takes 7. Add two studs for each standard corner.
- How many studs per linear foot of wall?
- A blank wall at 16 in on center has 0.75 studs per foot plus one for the end, and at 24 in it has 0.5 per foot plus one. The estimating rule of one stud per foot for 16 in framing includes an allowance for corners, openings, and blocking.
- How many studs does a 12 x 16 room take?
- At 16 in on center the four walls have 46 field studs, and four standard corners add 8, for 54 studs. Add 4 studs for each door or window, and 168 lin ft of plate with a double top plate.
- How many studs does a 10 x 10 room take?
- At 16 in on center each 10 ft wall takes 9 field studs, so the four walls take 36. Four standard corners add 8, for 44 studs before doors and windows.
- Why add one to the stud count?
- Dividing the wall length by the spacing counts the spaces between studs. Every space has a stud at both ends, so a wall has one more stud than it has spaces. When the length does not divide evenly, the leftover short space at the far end needs its own closing stud, so the count is the division rounded down, plus two.
- What is the difference between 16 and 24 inches on center?
- It is the distance between stud centers. IRC Table R602.3(5) allows 2x4 studs at 24 in when the wall carries only a roof and ceiling, and requires 16 in when it also carries a floor. 2x6 studs can be 24 in apart under one floor and a roof. Walls at 24 in use about a third fewer studs and leave more room for insulation.
- Should I use 2x4 or 2x6 studs?
- Interior partitions are usually 2x4. Exterior walls are often 2x6 for the deeper insulation cavity, and a 2x6 wall can carry more at 24 in spacing under IRC Table R602.3(5). The stud count is the same for both sizes, and the wider stud takes more lumber: an 8 ft 2x6 is 8 bf against 5.33 bf for a 2x4.
- Does the calculator include plates and corners?
- Yes. It counts the field studs, adds two studs per standard corner or one per California corner, and gives the plate stock as the wall length times two plates, or three with a double top plate. It also totals the stud length and the board feet of the studs.
- How many 2x4s do I need to frame a wall?
- Add the plates to the studs. The 24 ft example takes 23 studs and 72 lin ft of plate, which is 5 more 2x4s in 16 ft lengths or 9 in 8 ft lengths. Door and window framing and blocking are extra.
- Does wall height change the number of studs?
- No. The count depends on the wall length and the spacing. Height changes the stud length you buy and the board feet. Bearing studs over 10 ft tall fall outside IRC Table R602.3(5). They need one of the R602.3.1 exceptions, which can call for 12 in spacing, or an engineered design.
- Does it account for doors and windows?
- No. It counts a blank wall. Leave the count as it is and add 4 studs per opening for the king and jack studs, plus the header. The studs that would have stood in the opening become the cripples, the sill, and blocking.
- What length stud do I buy for an 8 foot ceiling?
- A 92-5/8 in precut stud. With one bottom plate and two top plates, 4-1/2 in together, the framed wall is 97-1/8 in tall, which fits a ceiling layer of drywall and a full 8 ft sheet on the wall. For a 9 ft ceiling the precut is 104-5/8 in.
- How do I figure the studs for a gable or rake wall?
- Switch the calculator to rake wall and enter the roof pitch, the run, and the height at the low end. Across each full space a stud is taller than the last by the spacing times the pitch, which is 8 in at 6/12 and 16 in on center. A shorter last space steps up less. The calculator gives the stud count and the wall height at both ends. The app lists every stud with its cut length.
- How much waste should I add for studs?
- Five to ten percent is common. It covers studs rejected for twist or crown and the short pieces used for blocking. The calculator applies the percentage to the stud total and rounds up, so 23 studs at 10% becomes 26.
Count the studs, then cut the rake
CutOnce counts wall studs the same way this page does and draws the wall. Its Rake Wall calculator lists every gable stud with its cut length and the angle for the top cut.
Free to download, with a 7-day trial of everything. The web calculator covers the count, and the app adds the diagrams, the stud schedule, and the PDF.
See also
