Framing Calculator

Stud Calculator for Wall Framing

Count the studs, plates and header lumber for one wall. Enter the wall length and stud spacing, add corners, wall intersections, windows and doors, and get the studs to order with spares, plate linear feet, plate boards in 8, 10, 12 and 16 ft lengths, and header linear feet.

Quick answer

Studs = wall length in inches ÷ spacing, rounded up, + 1. Then add extra studs for corners, wall intersections, and a king and jack stud on each side of every window and door.

A 20 ft wall at 16 in on center needs 16 layout studs (240 ÷ 16 = 15, + 1), or 18 studs to order with 10% spares.

Wall Studs, Plates & Headers

One wall at a time · results update as you type

Use a period for decimals (10.5, not 10,5). Up to 1,000 ft.

Used only for stud linear feet and the tall-wall warning.

0 to 4. Count a corner on only one of the two walls that meet there.

0 to 20. Places where another wall meets the middle of this one.

0 to 50. Covers crooked or split boards. Blank uses 10; 0 means no spares.

Windows and doors

Enter the rough opening width. Each opening gets king and jack studs on both sides.

Boards set on edge in each header. This calculator does not size headers.

Used only to add the jack studs to the header length. Change it to match your lumber.

Enter the wall length to see the stud count.

Your result (planning estimate for one wall)

Studs to order —
Layout studs—
Corner and T extras—
King studs—
Jack studs—
Studs before spares—
Cripples (cut from layout studs)—
Plate boards to buy (—, spares included)
Board length8 ft10 ft12 ft16 ft
Boards————

Pick one board length. Each row is counted separately and offcuts are not reused, so the count is on the high side.

How the Stud Calculator Works

Layout studs

Layout studs = (wall length in inches ÷ spacing, rounded up) + 1

Dividing the length by the spacing counts the gaps between studs. The + 1 adds the stud at the far end, so both end studs are included. This is the same rule the deck calculator uses for joists.

Extra studs

  • Corners: + 2 per corner for a 3-stud corner, or + 1 for a 2-stud advanced framing corner. The wall's end stud is already a layout stud.
  • Wall intersections (T): + 2 per intersection for a stud channel, or + 0 with ladder blocking.
  • Windows and doors: king studs = openings × 2 sides × kings per side, and jack studs = openings × 2 sides × jacks per side. The default is 1 king and 1 jack per side.

Layout studs are not subtracted for openings. The layout studs that fall inside a window or door are cut into cripple studs above the header (and below the sill for windows), so the count already pays for that material.

Studs to order, plates and headers

Studs to order = (layout + extras + kings + jacks) × (1 + spares % ÷ 100), rounded up

  • Plate linear feet = wall length × plate rows (no spares). A double top plate and a single bottom plate is 3 rows.
  • Plate boards for each board length = rows × (wall length × (1 + spares) ÷ board length, rounded up).
  • Header linear feet = openings × plies × (opening width + 2 × jacks per side × jack thickness) ÷ 12.
  • Cripples (information only) = about openings × (opening width ÷ spacing, rounded down), doubled for windows. The real number depends on where the opening falls on the layout.

Not counted: blocking and fire blocking, ladder-blocking lumber, sheathing, nails, hold-downs, rim or band joists, and header sizing. The bottom plate is not shortened at doors, because plates are usually laid full length and cut out after the wall is raised.

Worked Examples: Studs for Common Wall Lengths

Plain walls with no corners or openings, a double top plate and a single bottom plate (3 rows), and 10% spares.

WallLayout studsStuds to orderPlate linear ft8 ft plate boards16 ft plate boards
8 ft at 16 in on center7824.063
10 ft at 16 in on center91030.063
12 ft at 16 in on center101136.063
16 ft at 16 in on center131548.096
20 ft at 16 in on center161860.096
20 ft at 24 in on center111360.096

Full example: a 20 ft wall with a window and a door

A 20 ft wall at 16 in on center with 2 corners (3-stud), 1 wall intersection (stud channel), one 36 in window and one 32 in door, 1 king and 1 jack per side, and 10% spares:

  • Layout studs: 240 ÷ 16 = 15, + 1 = 16
  • Corner and T extras: 2 × 2 + 1 × 2 = 6
  • King studs 4 and jack studs 4 (2 openings × 2 sides)
  • Studs before spares: 16 + 6 + 4 + 4 = 30, so 33 studs to order
  • About 6 cripples, cut from the layout studs
  • Header lumber with 2 plies: 12.3 linear ft for 2 openings
  • Plates: 60.0 linear ft, or 6 boards of 12 ft

Spacing, Openings and Building Code

  • 16 or 24 in on center: 16 in is traditional wall framing, and 24 in is used in advanced framing (DOE Building America Solution Center). The spacing a wall may use depends on stud size, wall height and the load it carries (IRC R602.3).
  • King and jack studs: wide headers in exterior walls can need more than one full-height stud at each end, and more jack studs, set by your code's header tables (IRC Tables R602.7(1), R602.7(2) and R602.7.5). Change the kings and jacks per side on each opening to match.
  • Top plate: a double top plate is the usual choice, with joints lapped at corners and intersections. A single top plate is allowed only in limited cases.
  • Tall walls: exterior bearing walls taller than 10 ft may need to be engineered.

Common Mistakes

  • Forgetting the + 1. Length ÷ spacing counts gaps, not studs, and leaves you one short.
  • Counting a corner twice. Where two walls meet, add the corner studs to only one of them.
  • Subtracting studs for openings. The studs in the opening become cripples, so keep them in the order.
  • Mixing up the spacing. On-center spacing is measured from the middle of one stud to the middle of the next, not the gap between them.

To price the studs and plates, enter the counts in the board foot calculator. For the same wall, the drywall calculator and insulation calculator work out sheets and batts.

Sources and Limits

Limits: the extra studs per corner and per intersection, the cripple estimate, the 1.5 in jack thickness and the 10% spares are planning defaults, not code values, so change them to match your plans. The largest accepted wall (1,000 ft long, 20 ft high) and the spacing range (6 to 48 in) are limits set by this calculator, not by a standard. This tool counts lumber; it does not size studs or headers or check a design against code.

Stud Calculator FAQ

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

At 16 in on center a 20 ft wall has 16 layout studs: 240 in / 16 = 15, plus 1 for the end stud. With 10% spares that is 18 studs to order. At 24 in on center it is 11 layout studs, or 13 with spares. Add studs for corners, wall intersections, windows and doors.

Why do you add 1 to the stud count?

Dividing the wall length by the spacing counts the gaps between studs. A wall has one more stud than gaps because both ends need a stud. A 12 ft wall at 16 in on center has 9 gaps and 10 studs.

How many extra studs does a window or door need?

This calculator adds 1 king stud and 1 jack stud on each side of every opening by default, which is 4 extra studs per window or door. Wide headers can need more. The numbers come from your code's header tables (IRC Tables R602.7(1), R602.7(2) and R602.7.5), so you can change the kings and jacks per side for each opening.

Should I subtract studs where a window or door goes?

No. The layout studs that fall inside an opening are cut into short cripple studs above the header, and below the sill for windows, so the calculator keeps them in the count. It shows about how many cripples that gives, for information.

How many studs does a corner take?

The default is 2 extra studs per corner, for a 3-stud corner, because the wall's end stud is already counted. Choose the 2-stud advanced framing corner for 1 extra. Where another wall meets this one, a stud channel adds 2 studs and ladder blocking adds 0.

How much plate lumber do I need for a wall?

Multiply the wall length by the number of plate rows. A double top plate and a single bottom plate is 3 rows, so a 20 ft wall needs 60 linear ft of plate. With 10% spares that is 6 boards of 12 ft or 6 boards of 16 ft. Each row is counted separately, so the board count is on the high side.

Should I frame walls at 16 or 24 inches on center?

16 in on center is traditional wall framing, and 24 in is used in advanced framing. The spacing a wall may use depends on stud size, wall height and the load it carries (IRC R602.3), so check your local building code before choosing 24 in.

How we built this calculator: layout studs = wall length ÷ spacing, rounded up, + 1, with extra studs for corners, intersections and openings, then spares rounded up. Plates and headers are counted in linear feet. It is a planning estimate for one wall: follow your plans and local building code. Written and checked by the YardsCalculator editorial team.