Wall Framing Calculator

Estimate studs, plates, king and jack studs, header lumber, OSB sheathing and nails for a 2x4 or 2x6 wall, with typical header sizes and a 2026 framing material cost.

Written & reviewed by Michael FairUpdated June 2026Based on U.S. codes & pricingHow we calculate

Wall Framing Calculator: How Many Studs Do I Need?

A framed wall is more than one stud every 16 inches. Every wall has a bottom (sole) plate and a doubled top plate, every window and door needs two king studs, two jack (trimmer) studs and a header, and every corner or wall intersection needs extra studs to give drywall something to land on. A quick estimate that only divides the length by 16 typically comes up 25%–40% short.

Start with common studs: wall length in inches ÷ spacing, rounded up, plus one for the end. A 20 ft wall at 16" on center needs 240 ÷ 16 + 1 = 16 common studs. Add two king and two jack studs per opening and about two extra studs per corner or intersecting wall, then add 10% for crooked or split boards. Studs removed inside an opening are not deducted, because those pieces become the cripples above headers and below window sills.

Plates are counted in linear feet: three times the wall length for a single bottom plate and double top plate. Buy them in long lengths (16 ft is common) and stagger the joints in the top plates by at least 24". Headers in a load-bearing wall are usually two pieces of 2× lumber on edge with a ½" spacer; typical single-story sizes run from 2-2×6 for a 3–4 ft opening up to 2-2×12 for about 8 ft, but the exact size depends on the load above and must come from IRC Table R602.7.

2×4 studs at 16" on center are standard for interior walls. Exterior walls are increasingly framed with 2×6 studs at 16" or 24" on center to fit R-19 to R-21 insulation, which many climate zones now require. Advanced framing (24" spacing, two-stud corners, right-sized headers) can cut lumber by 15%–20% and leaves more room for insulation, but check that your sheathing, siding and local code allow it.

In 2026 US pricing, a 2×4×8 stud costs about $3.75–$5.00, a 2×6×8 about $6.50–$9.00, and a 7/16" OSB sheet about $15–$22. Framing labor typically adds $4–$10 per sq ft of wall depending on region and complexity. Use the results with our drywall, insulation and lumber calculators to build a complete wall budget.

How to Use This Calculator

1. Choose Imperial or Metric units. 2. Enter the total wall length (add up all walls for a whole room or house). 3. Pick the wall height, stud size (2x4 or 2x6) and stud spacing. 4. Enter the number and typical width of windows and doors. 5. Enter the number of corners and wall intersections (each adds 2 studs). 6. Choose whether to include OSB sheathing and a waste factor. 7. Click "Calculate" for studs, plates, headers, sheathing, nails and cost.

Understanding Your Result

The stud breakdown shows common studs at your spacing, king and jack studs for openings and extra corner studs, then the total to buy with waste and the precut length. Plates are given in linear feet and 16 ft pieces. Header lumber, OSB sheathing and nails complete the framing list, and the cost covers materials only.

Key Formulas

Common Studs

Studs = ⌈Wall Length (in) ÷ Spacing⌉ + 1

One stud per spacing interval plus the end stud.

Total Studs

Total = (Common + 4 × Openings + 2 × Corners) × (1 + Waste)

Each opening adds 2 king and 2 jack studs; each corner or intersection adds 2.

Plates

Plate Lin Ft = 3 × Wall Length

One bottom plate plus a doubled top plate.

Worked Example

A 20 ft long, 8 ft tall exterior wall in 2×4 studs at 16" on center with two 3 ft windows, one 3 ft door, two corners and OSB sheathing.

  1. 1Common studs = ⌈240 ÷ 16⌉ + 1 = 16
  2. 2King studs = 3 openings × 2 = 6; jack studs = 3 × 2 = 6; corner studs = 2 × 2 = 4
  3. 3Subtotal = 32; with 10% waste = ⌈35.2⌉ = 36 studs (92-5/8" precut)
  4. 4Plates = 3 × 20 = 60 lin ft = 6 pieces of 16 ft (two per plate row)
  5. 5Header lumber = 3 × 2 × (3 + 0.25) = 19.5 lin ft; OSB = ⌈160 ÷ 32 × 1.1⌉ = 6 sheets
  6. 6Cost = 36 × $4.25 + 96 ft × $0.55 + 19.5 ft × $1.60 + 6 × $18 = $345

The wall needs 36 studs, six 16 ft plates, about 20 linear feet of header stock, 6 OSB sheets and roughly 10 lb of 16d nails, for about $345 in materials.

Assumptions Behind This Estimate

  • Single bottom plate and double top plate
  • Two king and two jack studs per window or door; cripples come from studs not deducted
  • Two extra studs per corner or wall intersection
  • Header length = opening width + 3" (two plies)
  • OSB coverage 32 sq ft per sheet plus 10%; about 12 16d nails per stud
  • Default prices are 2026 US averages and vary by region

Typical Header Sizes — Single-Story Exterior Bearing Wall

Approximate maximum opening width by header size; verify with IRC Table R602.7.
HeaderMax Opening (approx.)Typical Use
2-2×64 ftStandard windows, interior doors
2-2×85½ ftExterior doors, wider windows
2-2×106½ ftPatio doors, picture windows
2-2×128 ftSliding doors, large openings
LVL / engineeredOver 8 ftGarage doors, wide spans

Spans shrink for wider buildings, heavy snow loads or walls supporting a floor above.

Before You Buy: Practical Advice

  • Lay out stud positions on both plates together so they line up perfectly.
  • Crown each stud and face all the crowns the same way for a flatter wall.
  • Start your 16" layout from the corner so 4×8 sheathing and drywall edges land on studs.
  • Add blocking now for cabinets, TV mounts, grab bars and handrails — it is far harder later.
  • Ask your inspector whether advanced framing or 2×6 at 24" is accepted before buying lumber.

Frequently Asked Questions

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

At 16" on center, a 20 ft wall needs 240 ÷ 16 + 1 = 16 common studs. With two windows, one door and two corners, add 6 king studs, 6 jack studs and 4 corner studs for 32, plus 10% waste — about 36 studs in total. At 24" on center the common studs drop to 11.

What is the rule of thumb for studs per foot?

A quick rule is one stud per linear foot of wall at 16" on center. It sounds high, but for a wall with few openings it accounts for corners and waste better than dividing by 16. Walls with several windows and doors need more — our 20 ft example with three openings needs 36. For a more accurate count, calculate common studs, then add king, jack and corner studs individually, as this calculator does.

Should I use 16 or 24 inch stud spacing?

16" on center is the default for interior walls and walls carrying heavy loads or cabinets, and it gives stiffer drywall. 24" spacing saves about one-third of the studs and leaves more space for insulation, and is allowed by the IRC for many 2×6 walls, but it needs thicker drywall or careful fastening and is not suitable for every load.

What size header do I need for a door or window?

For a typical single-story bearing wall, approximate header sizes are 2-2×6 up to about 4 ft, 2-2×8 up to 5½ ft, 2-2×10 up to 6½ ft and 2-2×12 up to 8 ft. Larger openings or walls carrying a second floor need bigger headers or an LVL. Always confirm with IRC Table R602.7 for your building width and snow load.

Do non-load-bearing walls need headers?

Non-bearing interior walls do not need structural headers. A single flat 2×4 or a ladder-style header over the opening is enough to support the drywall and door trim. Many framers still use a doubled header for door openings to keep the jamb stiff and avoid cracking at the corners.

What length studs do I buy for an 8 ft wall?

Buy 92-5/8" precut studs. With a single bottom plate and double top plate (3 × 1½" = 4½"), the wall is 97-1/8" tall, which leaves room for ½" drywall on the ceiling and a full 8 ft sheet on the wall. Precuts for 9 ft walls are 104-5/8" and for 10 ft walls 116-5/8".