Wall framing

Framing calculator

A framing calculator turns a wall's length, height and openings into a lumber list. A 16 ft wall 8 ft 1-1/8 in tall, studs at 16 in centres, with one door and one window takes 17 full-length studs, 48 ft of plate and 6′ 8-1/2″ of header stock per ply.

Framing Calculators editorial teamUpdated 5 sources

Calculator

Wall framing calculator

Studs, plates, headers, jacks, cripples and sheathing for one wall.

ft
in

Doors and windows (rough openings)Sill height 0 = a door. Heights are from the subfloor.

More options
%
ft

Type lengths the way you read a tape: 8' 9", 7 3/4 or 7.75. Metric: 2667 mm or 2.667 m.

38″ × 82-1/2″36-1/2″ × 48-1/2″16′ 0″
Studs to buy1992-5/8″ long
Plates48′ 0″4 × 16′ 0″
Header stock13′ 5″two plies of 2x

Take-off

Studs on layout
134 fall in openings
King studs
4
Jack (trimmer) studs
4cut from stud stock
Cripples
2short pieces, from offcuts
Corner and intersection extras
4
Sheathing (4 × 8 ft sheets)
495 sq ft of wall after openings

Each opening

Opening 1 (38″ × 82-1/2″)
header 41″ · jacks 81″cripples above 2-3/8″
Opening 2 (36-1/2″ × 48-1/2″)
header 39-1/2″ · jacks 83″cripples above 3/8″

Studs = wall length ÷ spacing, rounded up, + 1, then extras. 10% waste added to the stud and plate counts.

How it works. Studs = wall length ÷ spacing (rounded up) + 1, less the layout studs that fall inside openings, plus 2 king studs per opening and the extras for corners and intersections. Jacks, cripples and headers are listed separately because they are cut from stock.

How the wall framing calculator counts lumber

A wall framing calculator counts studs on layout first, then adds what openings and corners need. It follows the order a framer lays out a plate:

  1. Layout studs. One stud at each end and one every 16 or 24 in between: wall length ÷ spacing, rounded up, plus one.
  2. Openings. Layout studs that land inside a rough opening are not full studs; they become cripples above the header and below the sill. Each opening gets two full-height king studs and two jack (trimmer) studs under the header.
  3. Corners and intersections. A three-stud corner adds two studs, a two-stud (California) corner adds one; a partition backing adds two.
  4. Plates. A bottom plate and a double top plate make three times the wall length.
  5. Waste. The stud and plate totals get your waste allowance; jacks and cripples come from offcuts.

Studs are listed at the length that fits between three 1-1/2 in plates: for an 8 ft 1-1/8 in wall that is 92-5/8 in, the common precut stud length for an 8 ft ceiling with a double top plate.

Stud spacing and plates under the IRC

Stud spacing depends on stud size and what the wall carries; IRC Table R602.3(5) sets the limits[1]. For bearing walls up to 10 ft tall:

Maximum stud spacing for bearing walls, IRC Table R602.3(5)
StudRoof and ceiling onlyOne floor + roofTwo floors + roof
2x424 in16 innot allowed
2x624 in24 in16 in
  • The top plate is doubled, overlapped at corners and bearing-wall intersections, with end joints offset at least 24 in. A single top plate is allowed when rafters or joists sit within 1 in of the studs and the plate is tied at joints[1].
  • Advanced framing, from the US DOE Building America program, uses 2x6 studs at 24 in, two-stud corners, single top plates and single headers on interior walls to save lumber and add insulation[2]. Set spacing to 24 in, corners to 1 and plates to single to model it.
  • Code editions and amendments vary by state and city; confirm with your building department[5].

Header size calculator: length and depth

A header size calculator answers two questions: length, which is the rough opening plus one jack stud on each side (a 38 in opening takes a 41 in header), and depth, which comes from IRC Tables R602.7(1) to R602.7(3) by span, building width and load[1]. This tool lists the lengths and lets you pick the depth from those tables. Nonbearing walls need no structural header; a single flat 2x4 can bridge openings up to 8 ft.

The rough opening is the unit size plus the allowance in the installation instructions. JELD-WEN, for example, wants a prehung exterior door frame 1 in narrower and 3/4 in shorter than the opening[3]. Window makers publish their own minimums, so read the sheet for your unit before you frame.

Example wall: 16 ft long, 8 ft 1-1/8 in tall, 16 in centres, one 38 × 82-1/2 in door and one 36-1/2 × 48-1/2 in window
ItemCount or length
Studs on layout13
King studs4
Jack studs4
Full-length studs before waste17
Plates (3 × wall)48 ft
Header stock per ply6′ 8-1/2″

All framing calculators

Each tool shows its formula and works in feet-inches or metric. Lumber sizes follow the American Softwood Lumber Standard[4].

Stairs

Lumber

Roofs

Walls and floors

Siding

Trim

Decks

Codes are localThe numbers here come from the model codes named on each page. Your building department can adopt a different edition or amend it, and its approval is the one that counts.

Frequently asked questions

How many studs do I need for a 12 ft wall?

At 16 in centres, 12 ft ÷ 16 in = 9 spaces, so 10 studs on layout, plus corners and openings. At 24 in centres it is 7 studs.

How do you calculate wall framing?

Count layout studs (length ÷ spacing, rounded up, + 1), add king and jack studs for each opening and extras for corners, then three plates the length of the wall and a header for each opening.

How long is a header for a 36 in door?

Header length is the rough opening plus 3 in for two jack studs. A 36 in door usually needs a rough opening near 38 in, so a 41 in header; check the door's installation sheet.

What size is a 2x4 really?

A dry 2x4 is 1-1/2 × 3-1/2 in (38 × 89 mm), set by the American Softwood Lumber Standard PS 20.

Sources

  1. 2021 International Residential Code, Chapter 6: Wall Construction (R602 studs, plates, headers) · International Code Council, accessed November 13, 2026
  2. Advanced Framing: Minimum Wall Studs · U.S. DOE Building America Solution Center (PNNL), updated September 16, 2022
  3. Installation Instructions for Prehung Exterior Entry Doors (JII106) · JELD-WEN, 2018, rev. 05/22
  4. Voluntary Product Standard PS 20-25, American Softwood Lumber Standard · National Institute of Standards and Technology, January 2025
  5. International Residential Code adoption map · International Code Council, accessed November 13, 2026