Framing Calculator

Wood wall framing estimator.

Home Studs + plates + header With waste factor
Rate this calculator · 5.0 (1)

Framing material estimator

16″ or 24″ OC · IRC R602 conventions

Instructions — Framing Calculator

1

Pick stud spacing and corner

16″ on-center (OC) is the IRC R602 default for load-bearing walls. 24″ OC is permitted in non-load-bearing partitions and saves about 25% of lumber. 3-stud corners are sturdier; 2-stud advanced framing saves lumber and improves insulation.

2

Enter wall geometry

Wall length in feet, wall height in feet (typically 8, 9, or 10). The calculator adds one stud at the end of the wall as the IRC convention requires.

3

Add doors and windows

Each opening adds king studs, jack studs, and (for windows) cripple studs above and a sill below. The header recommendation scales with the largest opening width.

Plate lumber: 2× lumber for both top and bottom plates. Order 10% extra for cuts. Pressure-treated (PT) bottom plate is required if it sits on concrete.
Waste factor: framers typically order 10% above the calculated count to cover crook, twist, and cut waste. The top number in the result includes that allowance.

Formulas

Stud counts come from a small set of straight-line rules in IRC R602. The chapter prescribes spacing, header sizing, and opening framing for typical residential walls.

Field studs
$$ S_{field} = \left\lceil \frac{L \times 12}{O} \right\rceil + 1 $$
Ceiling of length-in-inches divided by spacing, plus one for the end-of-wall stud. 20′ wall at 16″ OC = ceil(240/16) + 1 = 16 studs.
Corner studs
$$ S_{corner} = 2 \times C $$
Two corners per straight wall, each with C studs (3-stud traditional or 2-stud advanced framing). 6 studs for traditional corners, 4 for advanced.
Door framing
$$ S_{door} = D \times 5 $$
Per door: 2 king studs (full height), 2 jack studs (under header), and 1 header backer. Cripple studs above the header are dictated by the spacing layout.
Window framing
$$ S_{window} = W \times 7 $$
Per window: 2 king, 2 jack, 2 cripple top, 1 sill (average). Sill length depends on window width.
Double top plate
$$ P_{top} = L \times 2 \text{ linear feet} $$
IRC R602.3.2 requires a double top plate on load-bearing walls. Lap joints between the two layers must be offset at least 24″.
Bottom plate
$$ P_{bottom} = L \text{ linear feet (single)} $$
Single bottom plate. Use pressure-treated lumber where the plate sits on concrete or masonry (IRC R317.1).

Reference

Spacing and code (IRC R602)
Wall typeSpacingNotes
Load-bearing 2×4 (≤10′)16″ OCIRC R602.3.1 default
Load-bearing 2×6 (≤10′)16″ OC or 24″ OC per table24″ OC allowed at certain loads
Non-load-bearing partition24″ OCSaves ~25% of lumber
Tall wall (>10′)Per engineered designOutside prescriptive R602
Garage / shop16″ OC typical2×6 for taller walls
Bottom plate on concretePressure-treated required (R317.1)
Header backer2× backer attached to king studs

Header sizing by opening width

Simplified prescriptive guidance for typical residential load-bearing walls. Larger or heavy-load conditions require an engineered beam.

Door headers
OpeningHeader
≤ 36″2×6 (2-ply)
≤ 48″2×8 (2-ply)
≤ 72″2×10 (2-ply / 3-ply)
≤ 96″2×12 or insulated
> 96″LVL (engineered)
Window headers
OpeningHeader
≤ 36″2×6 (2-ply)
≤ 48″2×8 (2-ply)
≤ 60″2×10 (2-ply)
≤ 84″2×10 (3-ply) or 2×12
> 96″LVL or engineered

Notes: a 2-ply header is two pieces of 2× lumber with a 1/2″ plywood spacer between them, totaling 3-1/2″ thickness to match a 2×4 wall. Final header size must follow IRC Table R602.7.1 for the specific load (number of stories, roof span, snow load).

Article — Framing Calculator

Framing calculator: studs, plates, and headers for a typical wall

A framing calculator estimates the studs, plates, and headers needed to build a wood-framed wall under International Residential Code (IRC) Chapter 6. For a typical 20-foot wall at 16-inch on-center stud spacing with one door and two windows, you need around 41 framing studs (about 45 with a 10 percent waste factor), 40 linear feet of double top plate, 20 linear feet of bottom plate, and a 2×8 to 2×10 header depending on the largest opening width.

The calculator above runs the math. The article below explains the rules behind each number — IRC R602.3 for spacing, R602.7 for headers, R317 for pressure-treated bottom plates — and the conventions that builders actually use when ordering lumber from the yard.

How to calculate framing lumber

Wall framing breaks into four counts: field studs, corner studs, opening framing (doors and windows), and plates (top and bottom). Field studs follow a single formula: ceiling of wall length in inches divided by stud spacing, plus one end-of-wall stud. A 20-foot wall at 16 inches on center is ceil(240 / 16) + 1 = 16 field studs. At 24 inches on center the same wall drops to 11 field studs.

Corner and opening framing add to the base count. Two corners per wall, three studs each in traditional framing or two in advanced framing. Each door adds about five pieces (two king, two jack, one header backer). Each window adds about seven (two king, two jack, two cripple at the top, sill assembly).

Plates are linear feet of 2× lumber. A double top plate is required on load-bearing walls under IRC R602.3.2 — two layers, lapped joints offset 24 inches. The bottom plate is a single layer, pressure-treated if it sits on concrete or masonry (IRC R317.1).

Stud spacing: 16″ vs 24″ OC

The 16-inch on-center stud is the default in IRC R602.3.1 for 2×4 load-bearing walls up to 10 feet tall. The number traces to early-twentieth-century sheathing: 4-foot-wide plywood and gypsum panels land on three stud centers when studs are 16 inches apart, so panel edges always meet on a stud. The convention is older than the building code; the code locked it in.

24-inch on-center spacing is permitted in non-load-bearing partitions across the board, and in load-bearing 2×6 walls under specific entries in the R602.3.1 table. The lumber savings is roughly 25 percent. The trade-offs: drywall edges may show waviness, sheathing must be thicker to span the wider gap, and the wall is less stiff under lateral loads.

16″ OC
~15 studs / 20′ wall
IRC R602.3.1 default for 2×4
24″ OC
~11 studs / 20′ wall
Non-load-bearing or 2×6 LB

Framing openings: doors and windows

An opening interrupts the field-stud layout. Each one needs framing on both sides and above (and below, for windows). The standard package per opening:

  • King stud: full-height stud on each side of the opening (2 per door, 2 per window)
  • Jack stud (trimmer): shorter stud inside the king, supports the header (2 per opening)
  • Header: horizontal beam spanning the opening, sized per IRC R602.7
  • Cripple studs: short studs above the header up to the top plate (2 per window, sometimes 2 per door if header is short)
  • Sill: horizontal piece across the bottom of a window opening
  • Cripple bottom: short studs below the sill down to the bottom plate

The calculator above uses 5 framing pieces per door and 7 per window as the typical average. Larger or specialty openings (sliding doors, picture windows) increase the count and may require additional jack studs to handle the heavier header load.

Header sizing under IRC R602.7

IRC R602.7 and its tables prescribe header sizes by opening width and load condition (number of stories above, roof span, ground snow load). The simplified residential rule for a typical one-story load-bearing wall is roughly:

2×6 header for openings up to 36 inches. 2×8 for openings up to 48 inches. 2×10 for openings to 72 inches. 2×12 or an insulated header for openings to 8 feet. Anything larger usually moves to laminated veneer lumber (LVL) sized by an engineer or supplier-provided beam table.

Did you know

A 2-ply header is two 2× pieces of lumber with a 1/2-inch plywood spacer sandwiched between them. The spacer brings the total thickness to 3-1/2 inches, matching the actual width of a 2×4 wall (nominal 4 inches, actual 3.5 inches). For a 2×6 wall the header is built three-ply or with thicker spacers.

Top and bottom plates in wall framing

Every wood-framed wall has a top plate and a bottom plate. The top plate ties studs together at the top, distributes loads from above (joists, rafters, or upper-floor walls), and provides the nailing surface for the wall above. Load-bearing walls require a double top plate — two layers of 2× lumber, lapped at corners with joints offset by at least 24 inches (IRC R602.3.2).

The bottom plate is a single layer. It anchors the wall to the floor framing or to a concrete slab. When the wall sits on concrete or masonry, the bottom plate must be pressure-treated lumber under IRC R317.1 — without that, moisture wicking from the slab will rot untreated softwood within a few years.

Don't skip the PT bottom plate on slab walls

Untreated SPF (spruce-pine-fir) on a concrete slab is a moisture sponge. Even with a sill seal gasket, atmospheric moisture and slab vapor will saturate the bottom plate over time. Pressure-treated lumber adds about 30 percent to the bottom-plate cost and is required by code where the wood-concrete contact exists.

Corners and advanced framing

Two corner-framing conventions are common. The 3-stud corner uses three studs at each corner — one outside, one inside, and one perpendicular to back the drywall. The 2-stud corner (also called the California corner) uses two studs and a drywall backer clip. The 2-stud version is part of "advanced framing" or Optimum Value Engineering, an approach codified by the Building Science Corporation and supported by IRC for energy-efficient construction.

Advanced framing saves about 5 to 15 percent of lumber overall and opens the corner cavity for insulation, reducing thermal bridging. The trade-off is slightly less rigidity and a sheathing detail to keep drywall corner support. Two-stud corners are widely accepted, but builders trained on three-stud often default to it.

Framing lumber waste factor

Framers typically order 10 percent above the calculated count. The allowance covers studs with crook, twist, or knot defects (set aside as scrap or blocking) and end-of-board cuts. On a 200-stud project, that is 20 extras — usually a single bundle.

Plate lumber gets the same treatment. A 20-foot wall needs 60 linear feet (40 top + 20 bottom). Order 66 to 70 linear feet to cover corner and opening cuts.

Common framing calculator mistakes

Forgetting the end-of-wall stud. The "+1" in the field-stud formula is easy to miss. The math without it underestimates the count by one per wall.

Using nominal dimensions for layout. 2×4 lumber is actually 1.5 by 3.5 inches. Layouts that assume 2 by 4 will accumulate error across a wall.

Tip

Mark the bottom and top plate simultaneously by tacking them together with the long edges aligned. One layout line transfers to both plates at once. The technique cuts layout time roughly in half and eliminates plate-to-plate alignment errors.

Omitting cripple studs above headers. Short headers leave a gap between the header top and the top plate. That gap needs cripple studs at the same spacing as the wall's field studs — they carry the load above the opening into the header.

Forgetting PT bottom plate on slabs. If any part of the wall sits on concrete, that section needs pressure-treated lumber. The premium is small; the cost of replacement is large.

FAQ

Use field studs = ceiling(length × 12 ÷ spacing) + 1, then add 2 × corner studs (per corner type), 5 studs per door, and 7 studs per window. A 20′ wall at 16″ OC with 1 door and 2 windows: 16 field + 6 corner + 5 door + 14 window = 41 studs.
16 inches between stud centerlines. IRC R602.3.1 requires 16″ OC for 2×4 load-bearing walls. The number traces to early-twentieth-century plywood sheathing, which was sized so each 4′-wide sheet landed on three stud centers.
24″ OC is permitted in non-load-bearing partitions and in load-bearing 2×6 walls under specific table values (IRC R602.3.1). It saves about 25 percent of stud material but reduces stiffness. Drywall edges may sag noticeably at the wider spacing.
At 16″ OC: ceil(10 × 12 / 16) + 1 = 9 field studs. Add corner and opening framing for the full count. At 24″ OC the same wall needs 6 field studs.
A header is the horizontal beam that spans an opening (door or window) and transfers the load above the opening down to the jack studs on either side. IRC R602.7 sets prescriptive header sizes by opening width and load condition. Larger openings or heavier loads require an engineered beam, typically laminated veneer lumber (LVL).
A king stud runs full wall height on either side of an opening. A jack stud (also called a trimmer) sits inside the king stud and supports the header from below. Each opening needs at least 2 king and 2 jack studs. Wider or heavier openings may need additional jacks.
Same 2× stock as the studs (2×4 or 2×6, matching the wall). IRC R602.3.2 requires a double top plate on load-bearing walls; the bottom plate is a single layer. Pressure-treated (PT) lumber is required where the bottom plate sits on concrete or masonry.
10 percent is the standard framing waste factor. It covers crook, twist, splits, and cuts. The headline number in the calculator above already includes the 10 percent allowance.
Load-bearing walls: yes. Non-load-bearing partition: a single flat 2× on edge can span typical openings, no full header needed. The IRC R602.7 prescriptive tables apply only to load-bearing walls.
Yes, as part of advanced framing (also called OVE — Optimum Value Engineering). 2-stud corners with a drywall backer clip save lumber and create a deeper insulation cavity at the corner. Both are acceptable under IRC R602.