Stud Wall Calculator
Work out how many studs, plates, and feet of lumber you need to frame a wall — at 16 or 24 inch spacing, with openings counted.
Stud Wall Calculator
Each opening adds 2 studs (one king stud and one jack stud per side is the full detail; this calculator adds 2 per opening as a planning estimate). Headers, sills, and blocking are extra.
Formulas:
Studs = (Wall length in inches ÷ Spacing) rounded up, + 1 end stud, + 2 per opening
Plates = 2 × Wall length (top plate + bottom plate)
Total lumber = Studs × Wall height + Plates
What Does a Stud Wall Calculator Do?
A stud wall calculator works out how many studs you need to frame a wall, how much lumber the top and bottom plates take, and the total linear feet of lumber for the job. You enter the wall length, the wall height, the stud spacing, and the number of door and window openings, and the calculator returns the stud count, the plate length, and the total lumber — the numbers you need to build a shopping list or check a contractor's estimate.
A stud wall is the skeleton of most North American houses: vertical studs spaced evenly apart, nailed between a bottom plate (also called a sole plate) that sits on the floor and a top plate that carries the load from above. The spacing between studs — 16 inches on center is the standard, 24 inches is the alternative — decides how many studs the wall needs and how stiff it is. Getting the count right matters: too few studs and the wall is weak and the drywall sags between them; too many and you have wasted lumber and money.
How to Use This Calculator
Enter the wall length in feet — the full run of the wall, end to end. Then enter the wall height in feet: 8 feet is the standard ceiling height in most homes, 9 feet in newer builds, and 10 feet in some high-end houses. Choose the stud spacing: 16 inches on center is the default and the right choice for most walls, including all load-bearing walls. Enter the number of door and window openings, and the calculator adds 2 extra studs per opening for the framing around it.
The headline result is the total stud count. The breakdown shows how many studs the plain wall needs, how many extra the openings add, and the linear feet of plate lumber (top and bottom plates together). The total lumber figure — studs times height plus plates — is the number to use when you are buying: divide it by the length of the boards you are buying (usually 8-foot studs) to work out how many boards to order.
The Stud Wall Formula
The stud count comes from the spacing. A 12-foot wall is 144 inches long. At 16 inches on center, that divides into 9 spaces (144 ÷ 16 = 9). You need a stud at the start of the wall, one at the end of each space, and one at the far end — so the stud count is the number of spaces plus 1, which is 10 studs. If the wall length does not divide evenly, round the spaces up: a 10-foot wall (120 inches) at 16 inches on center is 7.5 spaces, rounded up to 8, plus 1, which is 9 studs.
At 24 inches on center, the same 12-foot wall divides into 6 spaces (144 ÷ 24 = 6), plus 1, which is 7 studs — three fewer than at 16 inches. That is the trade-off of wider spacing: less lumber and less cost, but a less stiff wall and fewer nailing points for drywall and trim. The plates are simpler: the top plate and the bottom plate each run the full length of the wall, so together they are twice the wall length — 24 linear feet for a 12-foot wall.
Openings add studs because a door or window interrupts the regular spacing. Each side of an opening needs a king stud (a full-height stud next to the opening) and a jack stud (a shorter stud that supports the header above the opening). This calculator adds 2 extra studs per opening as a planning estimate — the full detail for a wide window can need more, and the header, sill, and cripple studs above and below the opening are extra lumber on top of the stud count.
16 Inches or 24 Inches on Center?
Sixteen inches on center is the standard for most walls, and it is required by building codes for load-bearing walls in most areas. The spacing matches the standard sizes of sheet materials: drywall and plywood come in 4-foot-wide sheets, and 16-inch spacing means every sheet edge lands on a stud (48 inches divides evenly by 16). That makes hanging drywall straightforward, with no floating edges.
Twenty-four inches on center is allowed for some non-load-bearing interior walls and for exterior walls in some codes under advanced framing (also called optimum value engineering). It uses about 30% fewer studs, which saves lumber and leaves more room for insulation between the studs — a real energy benefit, since wood conducts heat far better than insulation does. But 24-inch spacing needs thicker drywall (5/8 inch instead of 1/2 inch) to avoid sagging between studs, and some inspectors will not accept it on exterior walls. Check your local code before choosing 24-inch spacing for anything other than a non-load-bearing partition.
Worked Example
Say you are framing a bedroom wall 12 feet long and 8 feet high, at 16 inches on center, with one door opening. The base stud count is 144 ÷ 16 = 9 spaces, plus 1, which is 10 studs. The door adds 2 extra studs, for a total of 12 studs. The plates are 2 × 12 = 24 linear feet. The total lumber is 12 studs × 8 feet + 24 feet of plate = 96 + 24 = 120 linear feet.
For a longer wall — 20 feet long, 9 feet high, at 16 inches on center, with two window openings — the base count is 240 ÷ 16 = 15 spaces, plus 1, which is 16 studs. The two openings add 4 studs, for a total of 20 studs. The plates are 2 × 20 = 40 linear feet. The total lumber is 20 × 9 + 40 = 180 + 40 = 220 linear feet. At 24 inches on center, the same wall would need only 240 ÷ 24 = 10 spaces plus 1, which is 11 base studs, plus 4 for the openings — 15 studs in total, saving 5 studs and 45 linear feet of lumber.
Tips for Framing a Stud Wall
Buy straight studs. Sight down each board before you buy it: reject any that are bowed, twisted, or cupped. A crooked stud makes a wavy wall that no amount of drywall mud will hide. Buy 10% more studs than the calculator says, so you can reject the worst ones and still have enough.
Mark the plates together. Lay the top and bottom plates side by side on the floor and mark the stud positions on both at the same time. That guarantees the studs line up top and bottom, which is what makes the wall straight and the drywall hang properly.
Remember the end studs. The "+ 1" in the formula is the stud at the far end of the wall. It is easy to forget when you are counting by hand, and a wall without an end stud has nothing to nail the corner drywall to.
Use a double top plate on load-bearing walls. A second top plate, nailed on top of the first with the joints staggered, ties the wall together and spreads the load from the joists above. It adds one more wall-length of lumber — the calculator's plate figure counts a single top plate, so add one more length for a double top plate.
Common Mistakes to Avoid
The biggest mistake is forgetting the end stud — the "+ 1" in the formula. The second mistake is measuring the spacing from the wrong point: "16 inches on center" means 16 inches from the center of one stud to the center of the next, not 16 inches of gap between them. With 1.5-inch-wide studs, the gap between studs at 16 inches on center is 14.5 inches.
The third mistake is forgetting the lumber for openings: headers, sills, and cripple studs are not in the stud count, and a wall with several windows needs a surprising amount of extra lumber. The fourth is framing a load-bearing wall at 24 inches on center without checking the code — in most areas, that will fail inspection. Finally, do not forget blocking and fire blocking: horizontal blocks between studs add stiffness and are required by code in tall walls and at certain heights. They are extra lumber beyond what this calculator counts.
Results from this calculator are estimates for planning and ordering. Check your local building code for the required stud size, spacing, and framing details for your wall type.
Frequently Asked Questions
How many studs do I need for a 12-foot wall at 16 inches on center?
10 studs. A 12-foot wall is 144 inches long, which divides into 9 spaces at 16 inches on center, plus 1 end stud. Add 2 extra studs per door or window opening.
What does 16 inches on center mean?
It means 16 inches from the center of one stud to the center of the next. With 1.5-inch-wide studs, the gap between studs is 14.5 inches.
Can I frame a wall at 24 inches on center?
For non-load-bearing interior walls, usually yes, and it saves about 30% of the studs. For load-bearing or exterior walls, most codes require 16 inches on center — check your local code first.
How much lumber do I need for a 12-foot wall, 8 feet high?
10 studs at 16 inches on center (80 linear feet), plus 24 linear feet of plate lumber (top and bottom), for 104 linear feet total — before openings, headers, and blocking.
Why do openings need extra studs?
Each side of a door or window opening needs a king stud (full height, next to the opening) and a jack stud (shorter, supporting the header above). This calculator adds 2 extra studs per opening as a planning estimate.