How to use the wall framing calculator
- Enter the total length of the walls you are framing and pick the wall height and lumber size.
- Choose 16 in or 24 in stud spacing.
- Count the outside corners, the places where another wall meets this one, and the windows and doors, then enter the average opening width.
- Check the prices, which start at typical lumber prices for your area.
How it works
Each opening gets two king studs and two jack studs. The short cripple studs above and below an opening are cut from the full studs the opening replaces, so they are not counted twice.
Precut studs are 92-5/8, 104-5/8 and 116-5/8 in long so that with one bottom plate and two top plates the wall comes out at 8, 9 or 10 ft.
Studs on layout = wall length in inches ÷ spacing, rounded up, + 1
Extra studs = 2 per corner + 2 per wall intersection + 4 per opening
Studs to buy = (layout + extra) × (1 + extra %)
Plates = 3 × wall length (1 bottom, 2 top) + 5%, in 16 ft boards
Headers = 2 plies × (opening width + 3 in) per opening, in 12 ft 2×8 boards
Worked example
With the default inputs, 40 ft of 2×4 wall at 16 in spacing needs 31 studs on layout.
Two corners, one intersection and three openings add 18 studs, and 10% extra brings the total to 54 precut studs.
The plates take 120 ft of lumber, or 8 boards of 16 ft, and three 3 ft openings need 2 header boards.
Tips before you buy
- A quick check: at 16 in spacing, plan on about one stud per foot of wall, plus extras for corners and openings.
- Use pressure-treated lumber for any bottom plate that sits on concrete.
- Lay out the plates side by side and mark every stud and opening on both before you nail anything.
- Bearing walls and wide openings need headers sized by your plans or code; 2×8 is a common size for short openings in non-bearing walls.
Frequently asked questions
How many studs do I need for a wall?
Divide the wall length in inches by the spacing, round up and add 1, then add 2 for each corner, 2 for each intersecting wall and 4 for each window or door. 40 ft at 16 in needs 31 plus extras.
Are studs 16 or 24 inches apart?
Most walls are framed 16 in on center. Some 2×6 exterior walls are framed 24 in apart to save lumber and leave more room for insulation, where the code and loads allow it.
What length studs do I buy for an 8 ft wall?
Buy 92-5/8 in precut studs. With a bottom plate and a double top plate, they make a wall 97-1/8 in tall, so 8 ft drywall fits with room at the floor.
How much lumber do I need for wall plates?
Three times the wall length: one bottom plate and a doubled top plate. A 40 ft wall needs 120 ft of plate, or 8 boards of 16 ft with a little extra for splices.
How do I size a header?
Header size depends on the opening width and the load above it. Your plans or the span tables in your local building code give the size; this calculator assumes doubled 2×8.
Results are estimates based on the measurements you enter and typical material properties, and costs are planning estimates: actual costs vary. Products vary, so check quantities with your supplier and follow product labels and your local building codes. Read the full disclaimer. Last reviewed October 9, 2026.