Skip to content
CalcTheJob

Stud Calculator for Wall Framing

Enter the wall length, height and stud spacing, then the corners, windows and doors. The calculator counts layout studs, corner and intersection studs, king and jack studs for every opening, plates, header stock and sheathing, and adds a waste allowance.

Estimates only — confirm with your supplier and local code. First published · Last reviewed by CalcTheJob.

How many studs do I need for a wall?

Start with the layout studs: divide the wall length in inches by the spacing, round up, and add one to close the far end. A 20 ft wall at 16 in on center is 240 ÷ 16 = 15, plus 1, so 16 studs. At 24 in on center the same wall needs 11.

That is the minimum for a plain wall. Real walls need more:

  • Corners. A traditional three-stud corner adds two studs where the wall turns; a two-stud corner with drywall clips adds one. Set the number to match how you frame.
  • Intersections. Where a partition meets the wall, two extra studs give the drywall something to land on. Ladder blocking between layout studs uses fewer.
  • Openings. Every window and door gets a full-height king stud at each side and one or more shorter jack studs (trimmers) under each end of the header.
  • Waste. Some studs will be bowed or twisted and end up as blocking. 10% is the default.

The layout studs that land inside an opening are not subtracted. They are cut down into cripples, the short studs above the header and below the window sill, so the count stays close to what you will actually use.

16 or 24 inches on center?

The International Residential Code sets the limits in Table R602.3(5). For exterior and bearing walls of 2×4 studs, spacing can be 24 in on center when the wall carries only a roof and ceiling, but only 16 in when it also carries a floor above, and 2×4s are not allowed under two floors. 2×6 studs can be 24 in on center under a roof, or a roof and one floor, and 16 in under two floors. Bearing studs in that table are limited to a laterally unsupported height of 10 ft.

StudRoof and ceiling only+ one floor+ two floorsNonbearing
2×424 in16 inNot allowed24 in (to 14 ft tall)
2×624 in24 in16 in24 in (to 20 ft tall)

Wider spacing saves studs and leaves more room for insulation, which is why 2×6 walls at 24 in are common in energy-focused construction. The catch is that the drywall, sheathing and siding you choose must be rated for the wider span, and roof trusses or joists above should line up with the studs. The code says that where framing members above are more than 16 in apart and the studs are at 24 in, they must bear within 5 in of the studs unless the top plate is heavier or blocked (R602.3.3). Interior nonbearing walls can be framed more lightly: R602.5 allows 2×3 studs at 24 in or flat 2×4s at 16 in.

Plates and stud length

Studs bear on a bottom (sole) plate at least as wide as the studs (R602.3.4). Exterior and bearing walls are capped with a double top plate that laps at corners and intersections, with end joints in the two layers offset at least 24 in (R602.3.2). Interior nonbearing walls need only a single top plate. So a bearing wall uses three times its length in plate stock and a partition twice. The calculator converts that into pieces of the stock length you choose, 16 ft by default because long plates mean fewer joints.

Stud length is the wall height minus the plates. Each plate is a 2× member, 1½ in thick in actual size, so an 8 ft wall with three plates needs studs 96 − 4½ = 91½ in long. Check what your lumber yard sells as precut studs before cutting full-length boards. The lumber size calculator lists actual dimensions for every nominal size.

King studs, jack studs and headers

A header carries the load over an opening down to the foundation. The IRC requires it to sit on jack studs (or approved framing anchors) at each end, with the number of jacks given in the header span tables, Table R602.7(1). That number is labeled NJ and depends on the header size, the span and what the wall carries; enter it in the jack studs field.

Beside the jacks, each end gets one or more full-height king studs. For exterior walls, Table R602.7.5 sets the minimum by header span and wind exposure. In most of the country (under 140 mph, Exposure B) it is one king stud per side for openings up to 4 ft, two up to 8 ft, three up to 14 ft and four up to 18 ft; for spans between rows, use the larger span. In low-wind areas (115 mph or less, Exposure B) the counts drop to one up to 8 ft and two up to 18 ft. Wider openings are beyond the table and should be designed by an engineer.

Header span up to< 140 mph Exp. B / < 130 mph Exp. C≤ 115 mph Exp. B
4 ft11
6 ft21
8 ft21
10–14 ft32
16–18 ft42

Headers are listed as linear feet of two-ply stock: the opening width plus 1½ in of bearing for each jack at each end. The depth of each header (2×6, 2×8, 2×10 and so on) comes from Table R602.7(1) for your span, load and lumber species, so the calculator does not pick it for you. In nonbearing walls, R602.7.4 allows a single flat 2×4 over openings up to 8 ft.

Sheathing and finishing the wall

For exterior walls the calculator also counts 4×8 sheets of sheathing: the wall area minus the window and door openings, plus waste. Door openings are taken as 6.8 ft tall. Walls that serve as braced wall panels have specific sheathing and nailing rules in IRC section R602.10, so check those for your house.

Once the framing is up, the insulation calculator fills the cavities, the drywall calculator counts sheets and screws for the inside face, and for the outside, the siding calculator turns the same wall area into squares of siding and trim.

Sources & assumptions

How this calculator gets its numbers. Full method: our methodology.

  • Layout studs = wall length in inches ÷ spacing, rounded up, plus one to close the far end (12, 16, 19.2 or 24 in on center).
  • Corners and intersections add the number of studs you set (default 2 per corner for a three-stud corner, 2 per intersection). These are common framing practice, not code minimums; ladder blocking or two-stud corners use fewer.
  • Each opening gets king studs at both ends from IRC Table R602.7.5 for exterior walls (for spans between rows, the larger span) and the jack studs per side you enter from header Table R602.7(1). Interior openings get one king per side. Layout studs inside openings stay in the count and are cut down for cripples.
  • Exterior walls get a bottom plate and a double top plate (R602.3.2, R602.3.4); interior partitions a single top plate (R602.5). Stud length = wall height − 1½ in per plate.
  • Headers are two plies, each the opening width plus 1½ in of bearing per jack stud at each end. Header depth is not sized here.
  • Sheathing = wall area − window and door area, in 4×8 sheets. Waste defaults to 10% and applies to studs, plates and sheets.

Sources

  1. Seattle Department of Construction & Inspections, 2021 Seattle Residential Code, Chapter 6 Wall Construction (adopts IRC 2021 Section R602). Table R602.3(5) stud size, height and spacing; R602.3.2 double top plate with 24 in offset; R602.3.4 bottom plate; R602.5 single top plate for nonbearing walls; Table R602.7(1) header spans and jack studs (NJ); Table R602.7.5 full-height studs at each end of headers.
  2. UpCodes, R602.7.5 Supports for Headers. Headers supported by jack studs or framing anchors; full-height studs at each end per Table R602.7.5 (4 ft: 1; 6–8 ft: 2; 10–14 ft: 3; 16–18 ft: 4 at < 140 mph Exposure B).
  3. UpCodes, R602.3.2 Top Plate. Double top plate overlapping at corners and intersections; end joints offset at least 24 in; plates at least 2 in nominal and as wide as the studs.

Last reviewed . Product figures vary by brand; the label on what you buy wins.

Frequently asked questions

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

16 studs at 16 in on center (240 ÷ 16 = 15, plus 1), or 11 at 24 in on center, before adding corners, openings and waste.

How do you calculate studs for a wall?

Divide the wall length in inches by the stud spacing, round up and add 1. Then add 1 or 2 studs per corner, 2 per wall intersection, a king and jack stud at each side of every opening, and about 10% for waste.

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

10 studs at 16 in on center (144 ÷ 16 = 9, plus 1), or 7 at 24 in on center, before corners, openings and waste.

How long should studs be for an 8 ft wall?

With a bottom plate and a double top plate, each 1½ in thick, studs for a 96 in wall are 91½ in long.

How many king studs are needed beside a door?

For an exterior wall in most areas (under 140 mph, Exposure B), IRC Table R602.7.5 requires one full-height stud at each end of a header up to 4 ft wide and two up to 8 ft wide.