Skip to content

Wall Framing Calculator: Studs, Plates & Boards to Buy

More than a stud count: enter your walls, doors and windows and the lengths your yard stocks, and get the boards to buy. The calculator searches for the cheapest mix of 8–20 ft lengths and precut studs for the studs, plates and headers, keeps the top-plate joints at least 24″ apart as the IRC requires, reuses offcuts for jacks, cripples and sills, and shows which board every piece is cut from. Free, no sign-up.

Walls
Wall 1
Length
Height to top of plates

Studs 7′ 8-5/8″ long (height minus 3 plates).

Enter each wall's framed length. At a corner one wall runs past and the other butts into it; set Corner on the wall that carries the corner stud.

Corners and king studs

A corner has 3 studs (conventional) or 2 (advanced); each wall already has its end stud. A T adds 2 backing studs, one each side of the wall that meets it (conventional), or none with ladder blocking (advanced) (APA M400). King studs follow IRC Table R602.7.5 for exterior walls unless you enter a count.

Stock lengths and prices
$ per board
Length2×4
92-5/8″ precut
8 ft
10 ft
12 ft
16 ft

The plan already counts every offcut. Add extra only for boards you reject at the yard or mistakes; there’s no standard figure.

Prices are optional. With a price for every ticked length of every size, the calculator searches for the cheapest mix; otherwise for the fewest linear feet.

Buy 10 × 2×4 92-5/8″ precut + 3 × 2×4 12 ft.

Boards to buy

  • 10 × 2×4 92-5/8″ precut
  • 3 × 2×4 12 ft

13 boards · 113 linear ft · 75.5 board ft

10 full-height studs (common, end, corner and king studs), plus the jacks, cripples, sills, headers and plates in the cut lists below.

Buy list

SizeLengthBoardsLinear ftBoard ft
2×492-5/8″ precut1077.251.5
2×412 ft33624

No prices entered, so the plan aims for the fewest linear feet. Waste: 0″ (0%), the offcuts too short to reuse and a 3/16″ allowance per saw cut (our allowance). Offcuts are reused within a wall. Board feet are on the nominal size.

Wall 1: 12′ × 8′ 1-1/8″

Wall 1 elevation: 10 full-height studs, 0 openings12′
Seen from the start end on the left. Green outlines are king studs, shaded members are jacks, cripples and sills, dashed boxes are rough openings and green ticks are plate joints.

Buy for this wall: 10 × 2×4 92-5/8″ precut + 3 × 2×4 12 ft

Plate joints
  • Bottom plate: one piece, no joints
  • Top plate (lower): one piece, no joints
  • Top plate (upper): one piece, no joints
Cut list (13 pieces from 13 boards)
  • 1 × bottom plate, 2×4 at 12′: from #1
  • 2 × top plates, 2×4 at 12′: from #2, #3
  • 8 × common studs, 2×4 at 7′ 8-5/8″: from #5, #6, #7, #8, #9, #10, #11, #12
  • 2 × end and corner studs, 2×4 at 7′ 8-5/8″: from #4, #13

Stock boards

  • #1 2×4 12 ft: 12′ bottom plate
  • #2 2×4 12 ft: 12′ top plate
  • #3 2×4 12 ft: 12′ top plate
  • #4 2×4 92-5/8″ precut: 7′ 8-5/8″ end and corner stud
  • #5 2×4 92-5/8″ precut: 7′ 8-5/8″ common stud
  • #6 2×4 92-5/8″ precut: 7′ 8-5/8″ common stud
  • #7 2×4 92-5/8″ precut: 7′ 8-5/8″ common stud
  • #8 2×4 92-5/8″ precut: 7′ 8-5/8″ common stud
  • #9 2×4 92-5/8″ precut: 7′ 8-5/8″ common stud
  • #10 2×4 92-5/8″ precut: 7′ 8-5/8″ common stud
  • #11 2×4 92-5/8″ precut: 7′ 8-5/8″ common stud
  • #12 2×4 92-5/8″ precut: 7′ 8-5/8″ common stud
  • #13 2×4 92-5/8″ precut: 7′ 8-5/8″ end and corner stud

Not structural advice. The calculator counts lumber for the headers, spacing and wall heights you choose; it doesn't size headers or check loads. Header sizes, stud spacing and wall height depend on what the wall carries: check the IRC tables cited below and your local building department.

How the calculator plans the boards

Each wall is framed from its start end. These are the rules it follows and where each comes from:

RuleFigureSource
Stud length = wall height − one bottom plate and two top plates92-5/8″ + 3 × 1-1/2″ = 97-1/8″Fine Homebuilding; plate thickness PS 20-25 Table 3
Top-plate end joints offset between the two layersat least 24″IRC R602.3.2
Plate joints over studsnot required; placed on the layout or halfway between studsIRC R602.3.2; the placement is our choice
King studs at each end of a headerTable R602.7.5, or your countIRC R602.7.5 (exterior walls)
Corner studs3 (conventional) or 2 (advanced) per cornerAPA Advanced Framing guide
Backing studs where another wall meets2 (conventional) or ladder blocking (advanced, not counted)APA Advanced Framing guide
Header length = rough opening + 1-1/2″ per jack stud at each end36″ + 2 × 1-1/2″ = 39″Derived from the 1-1/2″ jack thickness (PS 20-25)
Plates from 8–20 ft lengths, not precut studsone piece when a ticked length covers the wall, unless prices make a split cheaperOur choice
Cripples shorter than 1-1/2″left out (the page notes it)Our choice
Allowance for each saw cut between two pieces of one board3/16″Our allowance; no source gives one

Layout. The first stud is flush with the start end, then a stud is centred on every 16″ (or 12″, 24″) mark, then one at the far end. Inside a door or window the layout studs become cripples above the header and, under a window, below the sill; where a king stud or an end's corner or T studs stand, the layout stud is left out. All heights are measured from the floor (the underside of the bottom plate): a window's sill height is floor to the bottom of its rough opening, and a door's rough opening height is from the floor too.

Buying. Each wall's pieces are grouped by size and cut longest first, each from the smallest offcut that holds it before a new board is bought. It also cuts the long pieces first and then the short ones as a group, tries every ticked length as the main board and each length on its own, and keeps the cheapest plan it finds (by cost when every ticked length of every size has a price, otherwise by linear feet). Full-height studs come from the precut when it matches. Plates are cut from the 8–20 ft lengths only; precut studs go to studs, jacks, cripples, sills and 2×4 or 2×6 header plies (our choice: precuts are sold as studs). Offcuts aren't shared between walls, and the bottom plate runs through door openings (you cut it out on site), so it counts as plate.

Worked example: a 24 ft wall with a window

A 24′ wall, 8′ 1-1/8″ high, 2×4 studs 16″ on center with a double top plate, and one window: rough opening 36″ × 48″, sill 36″ from the floor, 4′ from the start end, with a 2-ply 2×8 header (an example pick, not a sizing). Stock: 92-5/8″ precut, 8 ft, 10 ft, 12 ft, 16 ft, no prices.

  • Studs: 7′ 8-5/8″, so each full-height stud is one 92-5/8″ precut with no cutting; 18 full-height studs including 1 king stud per end (Table R602.7.5: a 36″ span falls in the 4 ft row).
  • Opening: header plies 3′ 3″ long, jacks 6′ 10-1/2″, cripples 2-7/8″ above the header and 2′ 9″ below the sill.
  • Bottom plate: joints at 16′ from the start end.
  • Top plate (lower): joints at 16′ from the start end.
  • Top plate (upper): joints at 12′ from the start end.
  • The closest joints in the two top plates are 4′ apart, more than the IRC's 24″.

Boards to buy: 20 × 2×4 92-5/8″ precut + 2 × 2×4 8 ft + 1 × 2×4 10 ft + 2 × 2×4 12 ft + 2 × 2×4 16 ft + 1 × 2×8 8 ft: 244 linear feet, 168.3 board feet, with 3′ 11-5/8″ of waste (1.6%): the offcuts left after every piece is cut, and saw-cut allowances.

How many studs for a wall? Common lengths

Common studs on the layout: one at each end plus one on every mark between, which is ⌈length ÷ spacing⌉ + 1, one fewer when the last mark falls within 1-1/2″ of the end (derived from the layout above). Corners, T-intersections and openings change it; the calculator adds them.

Wall lengthStuds at 16″ o.c.Studs at 24″ o.c.
8 ft75
10 ft96
12 ft107
14 ft128
16 ft139
18 ft1510
20 ft1611

Stud length and precut studs

A precut stud is 92-5/8″. With a bottom plate and two top plates at 1-1/2″ each it makes a 97-1/8″ wall (Fine Homebuilding). For 9 ft ceilings the precut is 104-5/8″ (JLC), which by the same arithmetic makes 109-1/8″ (JLC gives 109-1/4″, and roughly 97-1/4″ for the 8 ft wall). JLC notes other regions use 93″ or 92-1/4″ precuts, so these lengths are trade guidance: tick the precut your yard sells, or leave it unticked and the calculator cuts studs from stock. With a single top plate a stud is 1-1/2″ longer for the same wall height.

Top plates and the 24-inch rule

The IRC caps wood stud walls with a double top plate that overlaps at corners and intersections with bearing partitions. End joints in the two top plates must be offset at least 24″, and joints in plates need not fall over studs (IRC R602.3.2). Planning by linear feet, a plate stays one piece when a ticked length covers the wall (our choice); with prices it's split only when that's cheaper. Plates are split at the cheapest points, keeping only pairs where every joint in one top plate is at least 24″ from every joint in the other. Each top-plate layer is planned at the wall's length: the laps at corners shift a few inches between walls but net out across a room, so they aren't added.

A single top plate is an IRC exception: it must be tied at corners, intersecting walls and splices with galvanized steel plates (Table R602.3.2), and rafters or joists must sit within 1″ of the studs. The ties aren't counted here.

Stud spacing: IRC Table R602.3(5)

The calculator warns at 24″ on center because the allowed spacing depends on what the wall carries, which it doesn't ask:

StudsBearing: roof and ceiling only+ one floor+ two floorsBearing heightNonbearing
2×424″16″not allowed10 ft24″, 14 ft
2×624″24″16″10 ft24″, 20 ft

Heights are the laterally unsupported stud height; the table's footnotes (for example a 32 ft roof span limit for 2×4 studs under a habitable attic) apply (IRC Table R602.3(5)).

Headers: you pick the size

Header size and the jack studs it needs depend on the snow load, the building width and what the wall carries (IRC Tables R602.7(1) and R602.7(2)), so the calculator doesn't choose them: pick the size and plies, and it counts the lumber. A header's plies make 3″ for two 2× pieces, less than a 3-1/2″ wall: the IRC's fastening table lists a built-up header with a 1/2″ spacer (Table R602.3(1), item 10). The spacer isn't counted. King studs, the full-height studs beside each header, follow Table R602.7.5 for exterior walls:

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

A span between rows uses the larger span. The calculator uses the rough opening width as the span and the first column unless you choose the other; past 18 ft, or for an interior wall, enter the count yourself.

Corners: conventional or advanced framing

Conventional framing uses three-stud corners; APA's advanced framing can use two-stud corners with drywall clips or ladder blocking, and ladder junctions instead of backing studs where an interior wall meets an exterior one (APA Advanced Framing Construction Guide). Every wall here already has a stud at each end, so a conventional corner adds 1 more, on the wall you mark as carrying the corner, and an advanced corner adds none (its drywall clips or ladder blocking aren't counted). Set the other wall's end to "End stud only". A T-intersection end adds 2 backing studs, one each side of where this wall meets the other, counted in this wall's stud size; with advanced framing it adds none, and the ladder blocking isn't counted.

Not covered yet: rake and gable walls, tall walls over 10 ft (the calculator warns), blocking and fireblocking, sheathing, nails and hardware, metal studs and metric. For deck surfaces, use the deck board calculator; to price lumber by the board foot, the board foot calculator.

Wall framing FAQ

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

10 at 16 inches on center, or 7 at 24 inches: one at each end plus one on every 16 (or 24) inch mark between, before doors, windows and corners. With a bottom plate and a double top plate, 97-1/8 inches high and no openings, the calculator's buy list is 10 × 2×4 92-5/8″ precut + 3 × 2×4 12 ft. Doors and windows replace common studs with king and jack studs, a header and cripples, which it counts too.

Should studs be 16 or 24 inches on center?

It depends on what the wall carries. IRC Table R602.3(5) allows 2×4 bearing studs at 24 inches when they carry only a roof and ceiling, but 16 inches with a floor above too, and not at all under two floors; 2×6 studs can go 24 inches with one floor and 16 with two (IRC Table R602.3(5)). Nonbearing walls can be 24 inches. APA's advanced framing typically uses 2×6 at 24 inches (APA M400).

How long is a stud for an 8 ft or 9 ft wall?

Precut studs are 92-5/8 inches for 8 ft walls and 104-5/8 inches for 9 ft walls (JLC). With a bottom plate and two top plates at 1-1/2 inches each, a 92-5/8 inch stud makes a 97-1/8 inches wall (Fine Homebuilding), and 104-5/8 makes 109-1/8 inches. Other regions use other precuts, so check your yard. For any other height the calculator cuts studs from stock.

Do top plate joints have to be over a stud?

No: the IRC says joints in plates need not occur over studs. End joints in the two top plates must be offset at least 24 inches (IRC R602.3.2). This calculator keeps every joint in one top plate at least 24 inches from every joint in the other, and puts joints on the stud layout or halfway between studs.

Can I use a single top plate instead of a double?

The IRC's default is a double top plate. A single top plate is allowed when it's tied with steel plates at corners, intersecting walls and splices (Table R602.3.2) and the rafters or joists are centered over the studs within 1 inch (IRC R602.3.2). APA's advanced framing can use single top plates (APA M400). Choose single top plate per wall here; the steel ties aren't counted.

Sources

  1. International Code Council. 2024 International Residential Code, Section R602 Wood Wall Framing. 2024 IRC (read on ICC Digital Codes, November 17, 2026). Used: R602.3.1 and Table R602.3(5) stud size, height and spacing (2 × 4 bearing: 10 ft laterally unsupported height, 24 in. o.c. supporting a roof-ceiling assembly only, 16 in. with one floor too, not permitted with two floors; 2 × 6 bearing: 10 ft, 24 / 24 / 16 in.; nonbearing 2 × 4: 14 ft, 24 in.; 2 × 6: 20 ft, 24 in.); R602.3.2 double top plate, end joints in top plates offset not less than 24 in., joints in plates need not occur over studs, plates at least 2 in. nominal and as wide as the studs, single top plate exception (tied at corners, intersections and splices per Table R602.3.2; rafters or joists centred over studs within 1 in.); R602.3.4 bottom plate; Table R602.3(1) item 10 built-up header with 1/2 in. spacer; R602.7 header spans (Tables R602.7(1), R602.7(2)); R602.7.5 jack studs under each header end and Table R602.7.5 minimum full-height studs at each end of headers in exterior walls (header span 4, 6, 8, 10, 12, 14, 16, 18 ft: 1, 2, 2, 3, 3, 3, 4, 4 at < 140 mph Exposure B or < 130 mph Exposure C; 1, 1, 1, 2, 2, 2, 2, 2 at ≤ 115 mph Exposure B; spans between rows use the larger span).
  2. APA – The Engineered Wood Association. Advanced Framing Construction Guide (Form M400). Form No. M400B, revised April 2016. Used: Conventional framing: studs 16 in. o.c., double top plates, three-stud corners; advanced framing: two-stud corners (Figure 4), single top plates, single-ply headers, 24 in. o.c.; interior wall intersections: conventional walls have a stud at each side of an intersecting wall, the advanced ladder junction uses 2x blocking at 24 in. vertical spacing instead (Figure 5); citing 2015 IRC Figure R602.3(2), the third corner stud and partition backing studs may be omitted with backup cleats or drywall clips. Trade guidance, not a rule. Readable copy.
  3. Fine Homebuilding. Do Precut Studs Make Sense?. September 1, 2002 (web page, read November 17, 2026). Answer by Mike Guertin. Used: A precut stud is 92-5/8 in.; with the sole plate and two top plates at 1-1/2 in. each, the wall is 97-1/8 in. high. Trade guidance, not a rule.
  4. The Journal of Light Construction. Precut Stud Lengths. March 2, 2017 (web page, read November 17, 2026). Tim Uhler, John Spier. Used: Precut studs for 8-foot walls are 92-5/8 in. (wall framing roughly 97-1/4 in. with three plates); for 9-foot ceilings 104-5/8 in. (109-1/4 in. overall); other regions use 93 in. or 92-1/4 in.. Trade guidance, not a rule.
  5. National Institute of Standards and Technology. Voluntary Product Standard PS 20-25, American Softwood Lumber Standard. PS 20-25, January 2025. Used: §2.2 board measure computed from nominal size; Table 3 dry dressed sizes.