Wall framing calculator

Enter the wall length and height, the stud spacing, and the doors and windows. The calculator lays out the wall and counts the studs, the king, jack and cripple studs, the headers and the plates. A drawing shows the wall from the front, to scale.

Your wall
Units

The height of the frame, from the bottom of the bottom plate to the top of the top plate.

Stud spacing, on center
Stud spacing, on center
Wall
Corners at the ends of the wall
Door and window sizes

The rough opening is the hole in the frame. For a 36 × 80 in prehung door it is 38 × 82 1/2 in. For a window, read it in the maker's catalog. The default window puts its head level with the door's.

Headers, plates and lumber
Jack studs at each side of an opening
Top plates

The header size and the number of jack studs come from your plans or from the span tables of your code. A 2 × 4 or 2 × 6 is 1 1/2 in (38 mm) thick.

Studs to buy
Stud length
Studs before spares
Full-height studs
On the layout and at the ends
At corners
At walls that meet
King studs
Jack studs
Cripple studs
Header boards
Window sills
Plates
Plate boards
Wall area
Rough openings
4 × 8 ft sheets1200 × 2400 mm sheets, one side
The wall from the front, to scale. The calculator spreads the doors, windows and walls that meet evenly along the wall.

Jack studs and cripples are cut from studs; the count of studs includes them. Plates include the window sills and a flat header. Sheets cover one side less the openings, without waste.

How the calculator works

  1. Stud length. The wall height less the bottom plate and the top plates: 96 − 3 × 1 1/2 = 91 1/2 in for an 8 ft wall with a double top plate.
  2. Layout. A stud at each end, and studs on centers measured from the left end: 16, 32, 48 in and on. Where a door, a window or a meeting wall falls on the layout, its own studs take the place of the layout studs.
  3. Corners. At each end that meets another wall at a corner, one more stud beside the end stud, to carry the other wall's drywall.
  4. Openings. Each door and window gets king studs from plate to plate, jack studs under the header, and a header. A window also gets a sill and cripple studs under it. Cripples above a header stand on the layout.
  5. King studs. In an exterior wall, the number at each side of a header comes from IRC Table R602.7.5. In an interior wall, one at each side.
  6. Studs to buy. The full-height studs, plus the studs that the jacks and cripples are cut from, plus the spares, rounded up.
  7. Plates. The wall length once for the bottom plate and once for each top plate, plus the sills and a flat header, divided into boards of the length you buy.

Worked example

An exterior wall is 20 ft (6.10 m) long and 8 ft (2.44 m) high, with studs 16 in (406 mm) on center and a corner at both ends. It has one 36 × 80 in door and two 36 × 48 in windows, double 2 × 8 headers, one jack stud at each side and a double top plate.

StepCalculationResult
Stud length96 in − 3 × 1 1/2 in91 1/2 in (2324 mm)
Layout and end studs14 layout marks, 8 of them inside the openings, plus 2 end studs8
Corner studs1 at each end2
King studs3 openings × 2 sides × 16
Full-height studs8 + 2 + 616
Jack studs3 openings × 2, each 81 in long6 studs
Cripples above the headers8 pieces of 3 1/4 in, from 1 stud1 stud
Cripples under the windows8 pieces of 31 1/2 in, 2 from each stud4 studs
Studs to buy(16 + 6 + 1 + 4) × 1.10 = 29.730 studs
Header boards2 × 41 in for the door, 4 × 39 in for the windows6 boards of 2 × 8
Plates3 × 20 ft + 2 sills × 36 in66 ft (20.1 m)
Plate boards66 ft ÷ 16 ft = 4.15 boards of 16 ft
Sheets, one side(160 − 45.8) sq ft ÷ 32 sq ft = 3.64 sheets of 4 × 8 ft

The rough openings are 38 × 82 1/2 in for the door and 36 × 48 in for the windows, with the sills at 34 1/2 in. A header is the opening plus a jack stud at each side: 38 + 2 × 1 1/2 = 41 in. With studs 24 in (610 mm) on center, the same wall takes 28 studs.

Studs by wall length

For a straight wall with no openings, corners or walls that meet, divide the length in inches by the spacing, round up, and add 1 for the stud at the start.

Wall length16 in on center24 in on center
8 ft (2.44 m)75
10 ft (3.05 m)96
12 ft (3.66 m)107
16 ft (4.88 m)139
20 ft (6.10 m)1611
40 ft (12.19 m)3121

The counts are before spares. Each corner, opening and meeting wall adds studs; the calculator counts them.

Stud spacing in the IRC

The International Residential Code (IRC) gives the largest stud spacing in Table R602.3(5). These are the limits for 2 × 4 and 2 × 6 studs.

Wall2 × 4 studs2 × 6 studs
Bearing, supports a roof and ceiling only24 in24 in
Bearing, supports one floor and a roof and ceiling16 in24 in
Bearing, supports two floors and a roof and ceilingNot allowed16 in
Nonbearing24 in24 in

The table also limits the stud height between supports: 10 ft for 2 × 4 and 2 × 6 bearing studs, 14 ft for 2 × 4 and 20 ft for 2 × 6 nonbearing studs. Section R602.3.2 asks for a double top plate, with an exception for a single top plate tied with steel plates. Interior nonbearing walls need at least a single top plate (R602.5).

King studs, jack studs and headers

A header carries the load over an opening. Jack studs under its ends carry it to the bottom plate, and king studs beside them run from plate to plate. IRC Table R602.7.5 gives the king studs at each end of a header in an exterior wall, for wind under 140 mph in exposure B or under 130 mph in exposure C.

Header spanKing studs at each end
Up to 4 ft (1.22 m)1
Over 4 ft, up to 8 ft (2.44 m)2
Over 8 ft, up to 14 ft (4.27 m)3
Over 14 ft, up to 18 ft (5.49 m)4

For a span between two rows of the IRC's table, the larger row applies. The calculator takes the rough opening width as the span. The header size and the number of jack studs depend on the span, the loads and the snow; IRC Table R602.7(1) gives them for exterior bearing walls. The calculator does not size headers: choose the size from your plans or that table.

A nonbearing wall needs no load-bearing header. IRC section R602.7.4 allows one flat 2 × 4 as the header over an opening up to 8 ft (2.44 m) wide, with no cripples above it, when the space to the top plate is 24 in (610 mm) or less. Where the space is larger, the calculator puts cripples on the layout above it.

Lumber sizes

A 2 × 4 is not 2 by 4 inches. The American Softwood Lumber Standard, PS 20, gives the dry dressed sizes.

Nominal sizeActual sizeIn millimeters
2 × 41 1/2 × 3 1/2 in38 × 89 mm
2 × 61 1/2 × 5 1/2 in38 × 140 mm
2 × 81 1/2 × 7 1/4 in38 × 184 mm
2 × 101 1/2 × 9 1/4 in38 × 235 mm
2 × 121 1/2 × 11 1/4 in38 × 286 mm

Two 2 × 8 boards with a 1/2 in spacer make a header as thick as a 2 × 4 wall is deep. The calculator counts the boards; it does not count the spacer.

Corners and walls that meet

Exterior corners are typically framed with three studs. The U.S. Department of Energy notes that the third stud generally only gives the drywall a nailing edge, and that a two-stud corner with drywall clips leaves more room for insulation. The calculator counts the third stud in the wall you enter; the other wall's end stud belongs to that wall. For a two-stud corner, choose None.

Where a wall butts into this wall between its ends, the calculator adds a stud at each side of the meeting wall, 3 1/2 in (89 mm) apart, to take its end stud and the drywall.

To board the wall, use the drywall calculator: it adds waste and counts the joint compound, tape and screws.

Questions

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

10 studs at 16 in on center and 7 at 24 in on center, for a wall with no openings or corners. Add 10 % for spares: 11 and 8. Each door, window and corner adds studs.

How do I calculate studs 16 inches on center?

Divide the wall length in inches by 16, round up, and add 1. A 20 ft wall is 240 in: 240 ÷ 16 = 15, plus 1 is 16 studs. Then add the studs for corners, openings and meeting walls, and spares.

How many studs per foot of wall?

About 3/4 of a stud for each foot at 16 in on center, and 1/2 at 24 in on center, plus one. With openings and corners, a wall takes more.

How long are the studs for an 8 ft wall?

91 1/2 in (2324 mm) with a bottom plate and a double top plate: 96 − 3 × 1 1/2 in. With a single top plate, 93 in.

How many studs go beside a door or window?

At each side, a jack stud under the header and a king stud from plate to plate. In an exterior wall, IRC Table R602.7.5 asks for 2 king studs at each side of a header over 4 ft and up to 8 ft, and more for wider spans.

What is a cripple stud?

A short stud above a header or below a window sill. Cripples stand on the stud layout, so that sheathing and drywall have something to fasten to.

Does an interior wall need a header?

A nonbearing wall needs no load-bearing header (IRC R602.7.4). One flat 2 × 4 may serve over an opening up to 8 ft wide when the space above it is 24 in or less. An interior bearing wall is framed like an exterior wall (R602.4).

How much extra lumber should I buy?

A typical allowance is about 10 % more studs, for bent, split and miscut ones. Type your own percent in the calculator.

Sources

Embed this calculator

Add this calculator to your website. Copy the code and paste it into your page.

<iframe src="https://simplehouseplanner.com/tools/framing-calculator/?embed" title="Wall framing calculator" width="100%" height="760" style="border: 1px solid #d9d9d9; border-radius: 12px" loading="lazy"></iframe>
<p><a href="https://simplehouseplanner.com/tools/framing-calculator/">Wall framing calculator</a> · Simple House Planner</p>

Checked on 15 November 2026. The calculator counts lumber; it does not size headers or check a wall's strength. Follow your plans and your local code.