📚 What's in This Guide
A stud calculator turns a wall's length into the number of studs, plates, and framing pieces you need to buy before you start building. It is useful for anyone framing a partition wall, a garage, a shed, or a basement room, and it matters because framing lumber is sold in whole pieces, so a bad count means either a second trip to the yard or a stack of leftover boards.
This stud calculator handles more than one wall at a time, accounts for doors and windows, adds corner and intersection studs, and gives you a lumber list plus the layout marks to transfer onto your plates. Enter your walls in the calculator above to get started.
Most quick stud tools stop at wall length divided by spacing. That is a fine starting point, but real walls have doors, windows, corners, and plates, and each of those changes the lumber order. This calculator adds them one at a time so you can see where every piece comes from.
To estimate studs for a plain wall, divide the wall length in inches by the stud spacing in inches, round up, and add 1 for the end stud. A 16 ft wall at 16 in on center needs (192 ÷ 16) + 1 = 13 studs. Doors and windows replace some of those studs but add king studs, jack studs, and cripple studs around the opening, so a wall with openings usually needs more pieces, not fewer. Add plates separately: a double top plate and one bottom plate need 3 times the wall length in board footage.
1. How the Stud Calculator Works
You describe your project one wall at a time. For each wall you enter the length in feet and inches, then add any doors or windows with their rough opening width and, if you know it, how far each one sits from the left end of the wall. You then choose the stud spacing, the stud length, and whether the top plate is single or double.
For every wall, the calculator first counts the regular layout studs: one at the start, one at every spacing interval, and one at the far end. Each opening then replaces the layout studs that would have landed inside it, and adds two king studs, two jack studs, and the cripple studs that fill the space above the header, and below the sill on a window.
Next it adds the extra studs you allow for corners and T-intersections, applies your waste percentage, and rounds up to whole pieces. Plates are counted separately from the total wall length and the number of plate courses, then divided by the board length you choose.
The results are a studs-to-buy number, a plate board count, the header and sill lengths, an estimated cost if you enter prices, a list of layout marks for each wall, and a diagram of the layout.
The calculator treats every wall as a straight, flat wall built from lumber 1.5 inches thick. If you leave an opening's position blank, it spaces that opening evenly along the wall, so the count can differ by a stud or two from a wall where the openings sit somewhere else. Corner and T-intersection studs follow common conventions that vary between builders, so both are adjustable. Headers are sized by the structure, not by this calculator, so only their length is given. Sheathing, drywall, insulation, blocking, and fasteners are not included.
2. How to Use the Stud Calculator
- Enter the length of your first wall in feet and inches.
- Add any doors or windows on that wall, with each opening's rough width and, if you know it, its distance from the left end of the wall.
- Add more walls if your project has them, and enter the number of corners and T-intersections.
- Choose your stud spacing, stud length, and whether the top plate is single or double.
- Set the plate board length, the header style, and your waste percentage.
- Optionally enter your price per stud and per plate board to see an estimated cost.
- Review the studs to buy, the plate boards, the lumber list, and the stud layout marks.
You can add up to 6 walls, and up to 5 openings on each wall. If a number is outside the allowed range, the calculator tells you and uses the nearest allowed value instead of changing it silently.
3. Stud Calculator Formula
Layout studs = rounded-up (Wall length / Stud spacing) + 1
Wall length and stud spacing are both in inches. The + 1 is the stud at the far end of the wall, and the rounding up covers a wall that is not an exact multiple of the spacing.
Openings change the count. A layout stud is replaced if its centerline falls inside the opening or within the 3 inches beside it that the king and jack studs take up. Each opening then adds its own framing:
Studs for one opening = 2 king + 2 jack + cripples
Header length = Rough opening width + 3 in
Cripples are counted above the header and, for a window, again below the sill. Each cripple sits at a layout position that falls inside the opening.
The wall totals, extras, and waste then combine like this:
Net studs = Layout studs - Replaced studs + King, jack and cripple studs + Corner and T-intersection studs
Studs to buy = rounded-up (Net studs x (1 + Waste %))
Plate boards = rounded-up (Sum of wall lengths x Plate courses x (1 + Waste %) / Board length)
Plate courses is 3 for a double top plate and one bottom plate, or 2 for a single top plate. The calculator rounds up only at the end, never in the middle of the calculation.
4. Worked Example
These are the calculator's default values: two walls, 16 inch spacing, a double top plate, 8 foot plate boards, a 10% waste allowance, and one corner. Wall 1 is 16 feet long with a 36 inch door starting 24 inches from the left end and a 36 inch window starting 100 inches from the left end. Wall 2 is 12 feet long with no openings.
| Wall | Length | Layout Studs | Replaced | Kings + Jacks | Cripples | Studs |
|---|---|---|---|---|---|---|
| Wall 1 | 16'-0" | 13 | 4 | 8 | 6 | 23 |
| Wall 2 | 12'-0" | 10 | 0 | 0 | 0 | 10 |
Wall 1 is 192 inches long. At 16 inch spacing, 192 divided by 16 is 12, plus one end stud gives 13 layout studs. The door replaces the studs at 32 and 48 inches, and the window replaces the studs at 112 and 128 inches, so 4 layout studs are replaced.
The two openings add 4 king studs, 4 jack studs, and 6 cripple studs: 2 above the door, 2 above the window, and 2 below the window. That gives 13 - 4 + 4 + 4 + 6 = 23 studs for Wall 1. Wall 2 is 144 inches with no openings, so 144 divided by 16 is 9, plus 1 is 10 studs.
The walls meet at one corner, which adds 1 stud for a three-stud corner. The net total is 23 + 10 + 1 = 34 studs. With a 10% waste allowance, 34 x 1.10 = 37.4, which rounds up to 38 studs to buy.
For the plates, a double top plate and one bottom plate make 3 courses. The walls total 192 + 144 = 336 inches, so 336 x 3 = 1,008 inches, or 84 feet of plate. With 10% waste that becomes 92.4 feet, and 92.4 divided by 8 is 11.55, which rounds up to 12 boards.
Each header is 36 + 3 = 39 inches long. With double headers that is 4 pieces, 13 feet in total, plus one 36 inch window sill, for 16 feet of header and sill lumber. The stud and plate total is 38 + 12 = 50 pieces, and at $4 per stud and $5 per plate board the estimate is 38 x 4 + 12 x 5 = $212.
The layout marks for Wall 2 fall at 1'-4", 2'-8", 4'-0", 5'-4", 6'-8", 8'-0", 9'-4", and 10'-8" from the left end, with a stud flush at each end of the wall.
5. Understanding Your Result
The studs-to-buy number is the figure to take to the lumber yard. It is the net stud count from your walls, openings, and corners, plus your waste allowance, rounded up to whole pieces. The plate board count works the same way for the top and bottom plates.
These are planning counts, not a framing plan. They are exact for the assumptions listed above, but the real number depends on details the calculator cannot see, such as where you add extra backing, how you frame around plumbing or wiring, and how many boards turn out too warped to use. When a total lands close to a whole number, adding one piece is cheap insurance.
Header and sill numbers are lengths only. The calculator does not choose a header size, because the right lumber depends on the span, the load above, and your local code. Take the header size from your plans or the code tables. The cost estimate covers studs and plate boards at the prices you enter, so add headers, sheathing, and fasteners separately.
6. Stud Spacing: 12, 16, 19.2 or 24 Inches
Stud spacing is measured on center, which means from the middle of one stud to the middle of the next, not from edge to edge. The calculator offers 12, 16, 19.2, and 24 inches, and the spacing you choose changes the stud count more than any other input.
Sixteen inches is the most common choice for walls in houses. It puts a stud under the edge of every 4 foot sheet of drywall or plywood, because 48 divided by 16 is exactly 3, and it works for most stud sizes and wall heights. Twenty-four inches uses about a third fewer studs per wall and also lines up with 4 foot sheets, because 48 divided by 24 is 2, but it is only permitted when the stud size, wall height, and load allow it.
Twelve inches is less common. It is sometimes chosen where a wall needs extra stiffness or carries a heavier load, and it uses roughly a third more studs than 16 inches. The 19.2 inch spacing comes from dividing 8 feet into five equal spaces. It shows up more often in floor and roof framing than in walls, though some builders use it in walls to save a few studs.
The rules that set the maximum spacing are part of the building code. In the 2021 International Residential Code, section R602.3.1, the size, height, and spacing of studs must follow Table R602.3(5), and studs must be No. 2 grade lumber or better, with limited exceptions. Your local code may differ, so use the calculator's spacing options to compare lumber counts, and confirm the spacing your wall is allowed to use with your plans or your building department.
7. Openings, Corners and Intersections
Openings are where a plain length-and-spacing count goes wrong. A door or window interrupts the regular studs, and the framing that replaces them takes more than one piece for one.
On each side of an opening there is a king stud that runs the full height of the wall, and a shorter jack stud beside it, sometimes called a trimmer. The jack studs carry the ends of the header, the horizontal member across the top of the opening. Above a header, and below a window sill, short cripple studs keep the stud spacing going so drywall and sheathing have something to nail to.
To count these, the calculator finds the regular layout studs that would fall inside the opening or within the 3 inches beside it that the king and jack take up. Those studs are removed, then two kings, two jacks, and the cripples are added. A header rests between the king studs, so its length is the rough opening width plus 3 inches. If you choose a double header, the calculator counts two pieces per opening.
The rough opening width is the size of the framed hole, not the size of the door or window. A door usually needs a rough opening a couple of inches wider than the slab, so check the manufacturer's rough opening dimensions before you enter a width.
Corners and intersections need extra studs too, and framers build them a few different ways. A two-stud corner uses drywall clips or scrap backing instead of a third stud, adding no full-length studs. A California corner, a common choice for exterior walls, adds one backing stud to the two end studs the wall counts already include. A traditional four-stud corner uses two extra studs for a solid, fully backed corner. The calculator's corner style presets set this for you, and Custom lets you enter your own count.
A T-intersection, where one wall meets the middle of another, needs backing for the wall that ties in. A ladder-block T uses horizontal blocking between studs, adding roughly one full-length stud, while a full backer approach adds two. As with corners, exact terminology and stud counts vary by region and by framer, so the T-intersection presets are starting points rather than one fixed rule, and Custom is available if your framing differs.
If you know where your openings sit, enter the distance from the left end of the wall to the opening's left edge. If you leave that field blank, the calculator spaces the opening evenly along the wall. That is a reasonable estimate, but it can differ by a stud or two from your actual layout.
8. Units and Terminology
- On center (OC): the distance from the center of one stud to the center of the next.
- Plates: the horizontal members at the bottom (bottom plate) and top (top plate) of a wall. A double top plate has two layers, and the upper layer overlaps at corners and intersections to tie walls together.
- Rough opening: the framed hole for a door or window, slightly larger than the unit itself.
- King, jack, and cripple studs, headers, and sills: the framing around an opening, described in the previous section.
- Nominal and actual size: a 2x4 is nominally 2 by 4 inches but measures about 1.5 by 3.5 inches, and the calculator uses the 1.5 inch thickness.
- Layout marks: the stud positions measured from the left end of the wall to the center of each stud, shown in feet, inches, and fractions of an inch.
Precut studs are the common way to buy studs for standard walls. They are sold at 92-5/8 inches for 8 foot walls and 104-5/8 inches for 9 foot walls, sized to work with one bottom plate and a double top plate, as The Journal of Light Construction explains. A 10 foot wall uses a 116-5/8 inch precut. The calculator uses these lengths for its stud length options, and you can enter a custom length if your wall is a different height.
9. Practical Tips
- Measure each wall along the plate, the same way you will cut the plates, and enter lengths in feet and inches rather than converting them yourself.
- Write down door and window positions from your plans before you use the calculator. Entering them improves the count and gives you exact king and jack marks.
- Sort through the stud pile at the yard. Warped studs are common, and the waste allowance is there for the boards you cannot use. Ten percent is a reasonable starting point, and a small or complicated job may deserve more.
- Buy precut studs when your wall height matches one of the standard sizes, so you do not have to cut every stud to length.
- Order plate boards long enough to keep joints to a minimum. A 12 or 16 foot board leaves fewer splices on a long wall, and top plate splices should be staggered.
- Mark the layout on the top and bottom plates together, laid side by side, so the studs line up from one plate to the other.
- Take header lumber sizes from your plans or local code. This calculator counts pieces and lengths, but it does not size structural members.
- Check current local prices before you rely on the cost estimate, since lumber prices change often.
10. Common Mistakes
- Forgetting the end stud: dividing wall length by spacing counts the gaps between studs, not the studs, so one more is needed for the far end.
- Rounding down: a wall 200 inches long at 16 inch spacing works out to 12.5, and rounding that down would leave the end of the wall without a properly spaced stud.
- Mixing units: entering feet where inches are expected, or the other way around, throws the count off by a factor of 12.
- Measuring spacing edge to edge: stud spacing is measured on center, so measuring from one edge to the same edge of the next stud is correct, but measuring the gap between studs is not.
- Leaving out the plates: the plate boards are part of the lumber order and are easy to forget.
- Treating openings as free: a window removes a couple of layout studs but adds kings, jacks, cripples, and a header, so a wall with openings usually needs more pieces, not fewer.
- Skipping waste: ordering the exact net count leaves no room for warped or damaged boards.
- Using the count in place of plans: a calculator gives a planning estimate, so structural details still come from your plans and local code.
11. Related Calculations and Use Cases
A stud count is usually one part of a larger framing job. If your project includes a staircase, for example a basement or loft that needs a new stairwell, our Stair Calculator works out the rise, run, stringer length, and landing for you.
Outdoor framing projects often start with the ground. If you are building a shed or small outbuilding, our Gravel Calculator can estimate the base material for the pad before the walls go up.
Common uses for this stud calculator include partition walls in a basement or garage, framing a shed or workshop, building an interior wall to divide a room, framing an addition, and planning the lumber order for a small cabin or tiny house. Because the calculator handles several walls in one pass, you can enter a whole room, or a whole building, and get one combined lumber list.
12. Frequently Asked Questions
Divide the wall length by the stud spacing, round up to the next whole number, and add one for the end stud. For example, a 16-foot wall with studs 16 inches on center needs 192 divided by 16, which is 12, plus 1, so 13 studs. That count does not include extra studs for openings, corners, or waste, which the calculator above adds for you.
Start with the regular layout count, then remove the layout studs that fall inside each opening. Add two king studs and two jack studs for every opening, plus cripple studs above the header and, for a window, below the sill. The calculator above does this for each door and window you add, using the position you enter or spacing the openings evenly.
Sixteen inches is the most common spacing and a safe default for most walls. Twenty-four inches uses fewer studs but is only allowed where the stud size, wall height, and load permit it, so check your local code and plans. Building codes set stud size, height, and spacing together, so the right answer depends on what the wall supports.
Add the studs and the plate boards. Studs are counted from the wall length, spacing, openings, and corners, and plates are usually one bottom plate and a double top plate, so the total plate length is the wall length times three. The calculator above gives both counts and a combined total, including your waste allowance, which is the number of 2x4s when the wall is framed with 2x4 lumber. Headers are extra.
A king stud runs the full height of the wall beside an opening. A jack stud, also called a trimmer, sits inside the king stud and supports the end of the header. Cripple studs are the short studs above a header and below a window sill that keep the stud spacing going across the opening.
Conclusion
A wall's stud count starts with a simple idea, wall length divided by spacing plus one, but real walls also have plates, openings, corners, and boards that are not usable. This stud calculator handles those parts together, turning your measurements into studs to buy, plate boards, header lengths, and layout marks you can transfer to the plates. Accurate lengths and opening positions matter most, because small errors in either change the count. Use the stud calculator above to plan your lumber order, then check the numbers against your plans and local code before you buy.
This calculator is for planning purposes only. Stud size, spacing, and headers must follow your plans and local building code. Confirm all quantities with your supplier before ordering.