What this calculator does
Find out how much lumber to buy for a framed wall: studs, plates and headers. A framed wall is a row of upright boards called studs. They stand between a bottom board (the bottom plate) and a doubled board on top (the top plate). Each door and window needs extra pieces around it. Your lumber order starts with the studs on the regular spacing. Then you add the extra studs that openings and corners need. Last come the plate boards and the header boards that span over each opening.
This wall framing calculator counts the regular studs at your spacing. It adds extra for each opening and each corner, or spot where another wall meets this one. Then it adds a percentage for warped or split boards. It also totals the plate lumber and the doubled header lumber for the openings. And it gives the length to cut each stud so the finished wall reaches the height you want.
Where it's used
Why this math matters outside the classroom:
- House framing. Framers laying out a 20 ft wall at 16 in centers divide 240 in by 16 to get 15 spaces, so 16 studs.
- Shed walls. A 10.5 ft shed wall at 24 in on center has 126 ÷ 24 = 5.25 spaces, which rounds up to 6, so it takes 7 studs.
- Plate stock. Builders need 3 × 20 = 60 ft of plates for a 20 ft wall, which is four 16 ft boards.
- Cut lists. Carpenters cutting studs for an 8 ft wall subtract three 1.5 in plates from 96 in and cut each stud to 91.5 in.
- Remainders in class. Students see why 126 ÷ 24 = 5 remainder 6 still needs 6 spaces when every space ends in a stud.
Grade level and standards: Grades 4–5; Common Core State Standards for Mathematics 4.OA.A.3. © Copyright 2010. National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.
How to use it
- Enter the wall length and its overall framed height. Measure from the bottom of the bottom plate to the top of the doubled top plate.
- Choose the stud spacing from your plans or local practice.
- Enter the number of doors and windows, their average rough opening width, and any corners or walls that meet this one.
- Set the plate board length and a waste allowance. Then read the studs, plates and headers.
What the inputs mean
- Stud spacing (on center)
- 16 in on center (measured from the middle of one stud to the middle of the next) is the most common spacing for house walls. 24 in uses fewer studs and is common in advanced framing. 19.2 in divides an 8 ft sheet into five spaces. Your plans or local code set what's allowed.
- Average rough opening width
- The rough opening is the framed hole, slightly bigger than the door or window. The header spans it and rests on a 1.5 in jack stud at each end.
- Extra studs per opening
- Each opening has a jack stud on each side holding up the header, and a king stud beside each jack. King studs often take the place of regular studs, so 2 extra per opening is a common allowance. Framers who add the kings as well use 4.
- Corners and wall intersections along this wall
- Corners, and places where another wall meets this one, need extra studs or blocking. They give the drywall something to attach to and give you a place to nail.
- Length of plate lumber
- Plates are commonly cut from 8 to 16 ft boards.
Formula and method
layout studs = (wall length × 12 ÷ spacing, rounded up) + 1 studs = (layout + openings × extra per opening + corners × 2) × (1 + waste ÷ 100), rounded up plate lumber = 3 × wall length; plate boards = plate lumber ÷ board length, rounded up header lumber = openings × 2 × (rough opening + 3 in) stud cut length = wall height − 3 × 1.5 in
Layout studs are the ones on the regular spacing. Wall length is in feet, so × 12 turns it into inches. Spacing is in inches, and waste is the extra percentage for bad boards. Studs sit at every spacing mark from one end, and one more closes the far end. So the count is the number of spaces plus one. A partial space at the end still needs a stud.
A 2× board (sold as 2 inches thick) is really 1.5 in thick. So three plates take up 4.5 in of the wall height. Headers are often built from two pieces of 2× lumber with a spacer between them. Each piece is 3 in longer than the opening.
Worked example
A 20 ft wall, 8 ft high, framed at 16 in on center with two 36 in openings, no corners, 16 ft plate boards and 10% extra studs.
- Spaces: 240 ÷ 16 = 15, so 16 layout studs.
- Add 2 per opening: 16 + 2 × 2 = 20.
- With 10% extra: 20 × 1.1 = 22 studs.
- Plates: 3 × 20 = 60 ft ÷ 16 = 3.75, so 4 boards. Headers: 2 × 2 × 39 in = 13 ft.
- Stud cut length: 96 − 4.5 = 91.5 in.
Result: Buy 22 studs, four 16 ft plate boards and 13 ft of header lumber. Cut the studs to 91.5 in.
Understanding the result
The stud count includes spares, so return or reuse what's left. For a whole house, add up the counts for each wall.
How deep the header boards must be (2×6, 2×8, 2×10 and so on) depends on the span and the weight above. That comes from your plans, local code or a span table. This tool gives only the length.
Assumptions and limitations
- A straight wall with one bottom plate and a doubled top plate of standard 2× lumber.
- All openings share one average width.
- Cripple studs (short pieces above and below openings) come from leftover cuts or the waste allowance.
- Gable-end walls, rake (sloped-top) walls and walls with different heights aren't handled.
- It doesn't size headers or check structural needs. Follow your plans and local building code.
- Blocking, fire blocking and sill plates for foundations aren't counted.
Frequently asked questions
How many studs do I need per foot of wall?
At 16 in on center, you need about three studs for every 4 ft of wall, plus one to finish the end. So a 12 ft wall needs 10. Openings, corners and spares add more.
Why is the stud shorter than the wall?
The plates take up part of the height. With a single bottom plate and a double top plate of 1.5 in lumber, studs are cut 4.5 in shorter than the overall wall height.
What is the difference between king, jack and cripple studs?
King studs run full height beside an opening. Jack studs (also called trimmers) sit just inside them and hold up the header. Cripple studs are the short pieces above a header or below a window sill that keep the regular spacing going.
Is 24 in spacing allowed?
It's common in many places for certain walls, often with deeper studs and framing lined up from floor to roof. But whether it's allowed depends on the wall's load, its height and your local code. Check your plans or building department.
How this calculator is checked
Method: On-center layout (spaces rounded up plus one), with editable allowances per opening and a fixed 2 per corner; plates as three times the wall length; headers as two plies of rough opening + 3 in; stud length from 1.5 in plates. The calculation is covered by automated tests with known reference values and edge cases. Last updated 2026-10-18. Found a problem? Tell us.
Embed this calculator
Put this Wall Framing Calculator on your own website or blog for free. Paste this code where you want it to appear: