Framing Calculator
Use this free framing calculator to estimate how many studs, total linear feet of lumber, and number of boards you need for any wall, shed, deck, or roof framing project. Enter your wall dimensions and stud spacing — 12, 16, or 24 inches on center — and the calculator instantly tells you the stud count, total lumber needed including top and bottom plates, and a material and installation cost estimate based on 2026 pricing.
Lumber (linear ft) = Studs × Wall Height + Top & Bottom Plates (2 × Wall Length)
Includes top plate, bottom plate & all studs · 2×4 lumber ~$4–$8 per 8 ft board · Always add 10–15% for waste, headers & blocking
Estimates based on 2026 US average pricing. Lumber prices fluctuate — always confirm current pricing at your local lumber yard.
Understanding the Calculator Inputs
This calculator estimates stud count, total lumber in linear feet, number of 8 ft boards to buy, and material and labor cost for five common framing project types. Here's what each input means and when to adjust the defaults.
Wall Length
Enter the full exterior length of the wall being framed — not the net interior measurement. For a room with multiple walls, run the calculator once per wall and add the results. For shed framing, enter each wall length separately. The stud count formula adds one stud for the starting corner, so running separate walls gives a more accurate total than treating the perimeter as one continuous run.
Wall Height
Standard residential wall height is 8 ft. Many newer homes use 9 ft (pre-set as default here) or 10 ft ceilings for a more open feel. Taller walls use proportionally more lumber per stud but don't change the stud count formula. For vaulted or cathedral ceilings where height varies, use the average height across the wall. Shed walls are typically 7–8 ft at the eave.
Stud Spacing
16" on center is the US building code standard for load-bearing walls and most exterior walls. It's the safe default for any wall where you're unsure. 24" on center is permitted for non-load-bearing interior partition walls and is used in advanced framing (OVE — Optimum Value Engineering) to save lumber — roughly 25% fewer studs. 12" on center is used for heavy loads, tall walls over 10 ft, or high-wind/seismic zones where extra rigidity is required. Never use 24" OC on a load-bearing wall without engineering approval.
Project Type
The project type adjusts the material cost per linear foot (lumber grade and species appropriate for that use) and the labor cost per square foot of wall. Deck framing uses pressure-treated lumber at higher cost than interior walls. Roof framing uses more complex cuts at higher labor rates. Interior walls use standard SPF dimensional lumber at the lowest cost per linear foot.
The calculator gives you the theoretical minimum. Real framing jobs always need more — waste from cuts, damaged boards at the lumberyard, extra studs for door and window trimmers, blocking between studs for future shelf brackets, and the occasional miscalculation. Order 10% extra for simple rectangular walls, 15% for walls with multiple openings or complex layouts. Running short mid-frame means a return trip that costs more in time than the extra lumber.
3 Real-World Framing Examples
These are realistic project scenarios with complete material lists — not just stud counts. Each shows what you'd actually bring to the lumber yard.
Example 1 — Basement Partition Wall (16 ft × 8 ft, 16" OC)
A non-load-bearing interior wall dividing a basement into a bedroom and utility area. Standard 2×4 SPF framing, no windows, one door opening.
| Item | Qty | Unit Cost | Total |
|---|---|---|---|
| 2×4×8 ft studs (16" OC) | 13 studs + 15% = 15 boards | $4–$7 each | $60–$105 |
| 2×4×16 ft top plate | 1 piece (doubled = 2 needed) | $12–$18 each | $24–$36 |
| 2×4×16 ft bottom plate | 1 piece | $12–$18 | $12–$18 |
| Door header (doubled 2×6, 36" opening) | 2 pieces × 4 ft | $6–$10 each | $12–$20 |
| King studs + trimmers (door) | 4 pieces cut to height | $4–$7 each | $16–$28 |
| Concrete screws (bottom plate to slab) | 1 box | $10–$15 | $10–$15 |
| Total materials (DIY) | $134–$222 | ||
| Contractor installed | $900–$2,000 | ||
Real-world note: Basement partition walls are one of the most common DIY framing projects. The main challenge: concrete slab floors require powder-actuated nailers or concrete screws for the bottom plate — a standard nail gun won't work. Rent a powder-actuated tool ($20–$40/day) or use Tapcon concrete screws with a hammer drill. Also note: if the basement has any moisture history, use pressure-treated lumber for the bottom plate only — it costs ~$5 more but resists rot if water ever contacts it.
Example 2 — Exterior Wall Addition (20 ft × 9 ft, 16" OC)
Framing a new 20 ft exterior wall for a home addition or garage conversion. Load-bearing, 2×6 framing for insulation depth, two window openings.
| Item | Qty | Unit Cost | Total |
|---|---|---|---|
| 2×6×10 ft studs (16" OC) | 16 studs + 15% = 19 boards | $9–$14 each | $171–$266 |
| 2×6×20 ft double top plate | 4 pieces (2 plates, spliced) | $18–$26 each | $72–$104 |
| 2×6×20 ft bottom plate (PT) | 2 pieces | $22–$32 each | $44–$64 |
| Window headers (2 openings, doubled 2×8) | 4 pieces × 4 ft each | $10–$16 each | $40–$64 |
| King studs + trimmers (2 windows) | 8 pieces | $9–$14 each | $72–$112 |
| Sill plates + cripple studs (2 windows) | ~10 pieces | $9–$14 each | $90–$140 |
| Structural hardware (joist hangers, anchors) | 1 lot | $60–$100 | $60–$100 |
| Total materials (DIY) | $549–$850 | ||
| Contractor installed | $2,000–$4,000 | ||
Real-world note: Exterior load-bearing walls require 2×6 framing in most cold-climate codes to accommodate R-19 to R-21 batt insulation. In warm climates (zones 1–3), 2×4 walls with exterior foam insulation may be acceptable — check your local energy code. Every window opening in a load-bearing wall requires an engineered header sized for the span — 36" openings typically use doubled 2×6, 48" openings use doubled 2×8. Undersized headers are a code violation and structural risk.
Example 3 — Shed Framing (12×16 ft, All 4 Walls + Roof)
Complete framing material list for a 12×16 ft gable-roof shed. 7 ft eave height, 16" OC, standard 2×4 SPF walls, 2×6 rafters.
| Item | Qty | Unit Cost | Total |
|---|---|---|---|
| 2×4×8 ft wall studs (all 4 walls) | ~60 studs + 15% = 70 boards | $4–$7 each | $280–$490 |
| 2×4 plates (top + bottom, all walls) | ~12 pieces (various lengths) | $6–$14 each | $72–$168 |
| 2×6×12 ft rafters | 10 pairs = 20 pieces + 15% | $12–$18 each | $240–$414 |
| Ridge board (2×8×16 ft) | 1 piece | $28–$40 | $28–$40 |
| 2×4×12 ft collar ties | 10 pieces | $8–$12 each | $80–$120 |
| Door header + framing | 1 opening kit | $30–$60 | $30–$60 |
| Structural hardware (hurricane ties, joist hangers) | 1 lot | $80–$140 | $80–$140 |
| Total framing materials | $810–$1,432 | ||
| + Sheathing (walls + roof) | $400–$700 | ||
| Total framing + sheathing | $1,210–$2,132 | ||
Real-world note: This is framing and sheathing only — not roofing, siding, doors, windows, or foundation. A complete 12×16 shed build typically runs $4,000–$9,000 contracted or $1,800–$3,500 in DIY materials for everything. Use our plywood calculator to calculate exact sheathing quantities and our shed cost calculator for the full project budget including foundation and electrical.
Lumber Size Reference Chart
Lumber is sold by nominal size — the name it goes by at the store — but the actual dimensions are smaller due to the drying and planing process. This matters when you're calculating fits, clearances, and load capacities.
| Nominal Size | Actual Size | Common Use | Avg Price (8 ft) | Pressure Treated |
|---|---|---|---|---|
| 2×3 | 1.5" × 2.5" | Non-load-bearing blocking, nailers | $3–$5 | N/A |
| 2×4 | 1.5" × 3.5" | Interior & exterior wall studs | $4–$8 | $6–$11 |
| 2×6 | 1.5" × 5.5" | Exterior walls (cold climate), floor joists | $7–$12 | $10–$16 |
| 2×8 | 1.5" × 7.25" | Floor joists, window/door headers | $10–$16 | $14–$22 |
| 2×10 | 1.5" × 9.25" | Long-span floor joists, ridge boards | $14–$22 | $18–$28 |
| 2×12 | 1.5" × 11.25" | Beams, stair stringers, long spans | $18–$28 | $24–$36 |
| 4×4 | 3.5" × 3.5" | Posts, corners, deck framing | $8–$14 | $12–$20 |
| 4×6 | 3.5" × 5.5" | Beams, heavy-load deck posts | $14–$22 | $20–$30 |
| 6×6 | 5.5" × 5.5" | Heavy posts, pergola columns | $22–$35 | $28–$45 |
Prices are for standard SPF (Spruce-Pine-Fir) at national average 2026 pricing. Pressure treated adds 40–60% to cost. Douglas Fir runs 10–20% above SPF. Prices fluctuate with lumber market conditions — always check current pricing at your lumber yard before finalizing your budget.
When to Use Pressure Treated Lumber
Pressure treated (PT) lumber is required by code anywhere lumber contacts or comes close to concrete, soil, or moisture:
- Bottom plates on concrete slabs — any wall plate sitting directly on a concrete floor or slab
- Ground-contact applications — posts, beams, or framing within 6 inches of grade
- Deck framing — all structural members of an outdoor deck exposed to weather
- Exterior sill plates — the bottom plate of any exterior wall sitting on a foundation
You do not need PT lumber for interior wall studs, interior partition plates above the slab, or any framing more than 6 inches above grade that's protected by exterior sheathing.
Stud Count Quick Reference
Quick lookup for common wall lengths at standard spacing. All counts include end studs. Add 15% for waste and add extra for door/window king studs and trimmers.
| Wall Length | 16" OC Studs | 24" OC Studs | 8 ft Boards (16" OC) | Linear Ft (16" OC, 9 ft wall) |
|---|---|---|---|---|
| 8 ft | 7 studs | 5 studs | ~10 boards | ~79 linear ft |
| 10 ft | 9 studs | 6 studs | ~12 boards | ~101 linear ft |
| 12 ft | 10 studs | 7 studs | ~14 boards | ~114 linear ft |
| 16 ft | 13 studs | 9 studs | ~18 boards | ~149 linear ft |
| 20 ft | 16 studs | 11 studs | ~23 boards | ~184 linear ft |
| 24 ft | 19 studs | 13 studs | ~27 boards | ~219 linear ft |
| 30 ft | 24 studs | 16 studs | ~33 boards | ~276 linear ft |
| 40 ft | 31 studs | 21 studs | ~44 boards | ~359 linear ft |
Board count includes 15% waste. Linear footage includes studs + top plate + bottom plate at 9 ft wall height. Does not include headers, blocking, or king studs.
16" OC — use for all load-bearing walls, all exterior walls, any wall where you're unsure, and any wall that will have tile or heavy finishes. 24" OC — acceptable for non-load-bearing interior partition walls only; saves ~25% on lumber but requires thicker drywall (5/8" instead of 1/2") to prevent sagging between studs. Never guess — if you don't know whether a wall is load-bearing, treat it as load-bearing and use 16" OC until you can confirm with a structural engineer.
Framing Cost by Project Type (2026)
Framing costs vary significantly by project type, lumber species, and whether you hire out or DIY. All figures are 2026 US national average pricing.
Cost Per Square Foot by Project Type
| Project Type | Material $/sq ft | Installed $/sq ft | Typical Project Cost |
|---|---|---|---|
| Interior Partition Wall | $1–$3 | $7–$16 | $700–$2,400 (100 sq ft wall) |
| Exterior Load-Bearing Wall | $2–$5 | $10–$20 | $1,000–$3,000 (100 sq ft wall) |
| Shed / Outbuilding | $3–$6 | $12–$25 | $1,500–$5,000 (12×16 shed walls) |
| Deck Framing (PT lumber) | $4–$8 | $15–$30 | $3,000–$9,000 (200 sq ft deck) |
| Roof Framing | $5–$10 | $18–$35 | $5,000–$14,000 (1,500 sq ft roof) |
| New Home (full framing) | $7–$16 | $20–$40 | $30,000–$80,000 (2,000 sq ft home) |
Contractor Labor Rate by Region (2026)
| Region | Framing Labor Rate | vs National Average |
|---|---|---|
| Southeast (GA, FL, NC, SC) | $8–$14/sq ft wall | 15–20% below average |
| Midwest (OH, IN, MI, MN) | $9–$16/sq ft wall | At or near average |
| Mid-Atlantic (VA, MD, PA) | $11–$18/sq ft wall | 10–20% above average |
| Northeast (NY, MA, CT) | $14–$24/sq ft wall | 30–45% above average |
| Pacific Coast (CA, WA, OR) | $15–$28/sq ft wall | 35–50% above average |
Lumber prices are the most volatile input in any framing estimate. They swung 300%+ between 2020 and 2022 and continue to fluctuate based on mill capacity, tariffs, and housing demand. The prices in this calculator reflect 2026 national averages but can be out of date within months. Always confirm current pricing at your local lumber yard before finalizing any framing budget — the material cost difference between a good month and a bad month can be 20–30% on a large project.
What the Calculator Doesn't Count
The stud count and lumber total cover the basic wall structure — studs, top plate, bottom plate. Every real framing job requires additional materials the calculator doesn't include. Plan for all of these before ordering.
Headers Above Every Opening
Every door and window requires a structural header — a beam spanning the opening that transfers load around the gap. Headers are made from doubled dimensional lumber (2×6, 2×8, 2×10, or 2×12 depending on span) or engineered LVL beams. A standard 32" door opening needs a doubled 2×6 header; a 48" window needs a doubled 2×8; a 6 ft garage door needs a doubled 2×12 or an engineered beam. Headers are not in the stud count but can add 5–15% to total lumber depending on the number of openings.
King Studs and Trimmers
Every door and window opening requires two king studs (full-height studs on each side of the opening) and two trimmer studs (shorter studs that support the header ends). That's 4 extra studs per opening — plus cripple studs above the header filling to the top plate. A wall with 3 windows and 1 door needs 16+ extra stud pieces beyond the basic wall calculation.
Blocking
Horizontal blocking between studs is required in many situations: fire blocking (required by code at specific heights in tall walls and at floor-ceiling transitions), backing for future fixtures (grab bars, TV mounts, heavy shelving), and structural blocking between floor joists. For a bathroom being framed, always install blocking at 33–36" height on every wall where grab bars might eventually be mounted — retrofitting blocking later means cutting open finished walls.
Corner and Intersection Framing
Every exterior corner requires 3 studs — two to form the corner and one as a nailer for the interior finish. Every interior wall that meets an exterior wall requires a corner assembly that adds 2–3 studs. On a typical room with 4 corners and 2 intersecting walls, that's 10–18 additional studs beyond the basic wall count.
Structural Hardware
Modern framing requires metal connectors that aren't lumber but are required by code and structural engineering: hurricane ties (rafter-to-wall plate connections), joist hangers (floor and ceiling joist connections), post bases (post-to-foundation connections), and hold-down anchors (required in seismic and high-wind zones). Budget $80–$250 in structural hardware for a typical room addition or shed, and more for seismic zones.
Sheathing
Structural wall sheathing (OSB or plywood applied to exterior walls) and roof decking are separate from framing lumber. Use our plywood calculator to estimate sheathing quantities. A typical exterior wall uses one 4×8 sheet per 32 sq ft of wall area — a 20 ft × 9 ft wall needs approximately 6 sheets of OSB.
Removing or modifying a load-bearing wall without a structural engineer's review is one of the most dangerous things a DIYer can do. Load-bearing walls transfer the weight of the roof and upper floors to the foundation — removing one without proper temporary shoring and a permanent engineered beam causes structural collapse. Signs a wall may be load-bearing: it runs perpendicular to floor joists, it sits directly above a beam in the basement or crawlspace, it runs through the center of the house parallel to the ridge. When in doubt, hire a structural engineer ($300–$700) before touching anything.
Common Framing Estimation Mistakes
Calculating Only the Net Wall Area
A 20 ft wall with a 3 ft door and a 4 ft window has 13 ft of solid wall — but you still need studs positioned every 16" across the full 20 ft run, plus extra studs for the window and door framing. Framing doesn't stop at openings; it frames around them. Calculate studs for the full wall length, then add window and door framing separately.
Forgetting the Double Top Plate
Load-bearing walls require a double top plate — two layers of horizontal lumber at the top of the wall. This is required by code and is what ties adjacent wall sections together at corners and splices. Most calculators and first-time builders account for one top plate. The second plate adds one full wall length of lumber to your material list — easy to forget, immediately visible when you run short on framing day.
Using Indoor Lumber for Outdoor Applications
Standard KD (kiln dried) SPF lumber used for interior framing will rot within 2–5 years when used in applications that contact concrete, soil, or persistent moisture. Using untreated lumber for deck framing, shed floor systems, or bottom plates on concrete slabs is both a building code violation and a structural failure waiting to happen. Pressure treated lumber costs 40–60% more but is the only appropriate choice for these applications.
Not Accounting for Lumber Length Waste
A 9 ft wall stud cut from a 10 ft board wastes 1 ft per piece — 10% waste per board. An 8 ft board used as a 9 ft stud doesn't work at all, requiring two pieces to be scabbed together. Always match your lumber lengths to your wall height efficiently: 9 ft walls use 10 ft studs, 8 ft walls use 8 ft studs, 10 ft walls use 10 or 12 ft studs. Mismatched lengths generate significant waste and trips back to the lumber yard.
Ignoring the Permit and Inspection Requirements
Most structural framing — adding walls, removing walls, building additions — requires a building permit and a framing inspection before walls are closed in with drywall. Skipping permits saves time upfront and creates problems when selling: buyers' inspectors find unpermitted work, title companies flag open permits, and insurance claims on structures with unpermitted modifications are routinely denied. The permit process for a standard room addition or wall addition typically costs $200–$800 and takes 1–3 weeks.
Factors That Affect Framing Cost
Lumber Species and Grade
Standard SPF (Spruce-Pine-Fir) #2 grade is the most common framing lumber and the most affordable. Douglas Fir is stronger and costs 10–20% more — preferred for long spans and high-load applications. Southern Yellow Pine is strong and rot-resistant but heavier and more expensive. For exterior and ground-contact applications, pressure treated lumber is required regardless of species — it adds 40–60% to material cost.
Wall Complexity
Simple rectangular walls are the cheapest to frame — minimal cuts, predictable stud layout, fast installation. Angled walls, curved walls, cathedral or vaulted ceiling framing, and multi-story walls all increase labor time significantly. Expect 25–50% higher labor costs for complex geometry vs standard rectangular framing. Roof framing is the most complex — complex roof lines with valleys, hips, and dormers can run 3–5× the labor cost of simple gable framing.
Engineered Lumber vs Dimensional
LVL (laminated veneer lumber) beams, I-joists, and PSL (parallel strand lumber) are engineered wood products that span farther and carry more load than dimensional lumber of the same size. They cost 2–4× more but allow longer spans without intermediate posts — eliminating load-bearing walls and creating open floor plans. For headers over large openings (garage doors, wide windows), engineered beams are often the only code-compliant option.
Seismic and Wind Zone Requirements
In earthquake zones (California, Pacific Northwest, parts of the Midwest) and hurricane zones (Gulf Coast, Atlantic Coast), framing requires additional structural connections, shear panels, and hold-down hardware not needed in inland locations. These requirements add $1,000–$5,000+ to a typical framing project in high-risk zones. Always verify local structural requirements before finalizing a framing plan.
How We Estimate Costs
Transparent about where the numbers come from and what they represent.
The Stud Count Formula
Studs = CEILING(Wall Length in inches ÷ Stud Spacing) + 1
The ceiling function rounds up to ensure you always have enough studs. The +1 accounts for the closing stud at the far end of the wall. This is the standard formula used in contractor framing takeoffs and matches the methodology in RSMeans framing labor unit data.
Total Lumber Formula
Total linear feet = (Studs × Wall Height) + (2 × Wall Length)
The second term accounts for one top plate and one bottom plate. Load-bearing walls require a double top plate — add one additional wall length to the total for these walls. The calculator uses a single top plate by default; add 15% waste to cover the double plate on load-bearing applications.
Material Cost Ranges
Material cost per linear foot is derived from retail lumber pricing at Home Depot, Lowe's, and regional lumber yards for the appropriate lumber species for each project type (SPF for interior walls, pressure treated for deck framing, etc.), updated as of early 2026. The ranges reflect the low and high ends of current market pricing for standard grades — premium grades and specialty species will exceed the high end.
Labor Cost Ranges
Labor cost per square foot of wall is sourced from contractor bid data on HomeAdvisor and Angi for clearly scoped framing projects, cross-referenced with RSMeans labor unit data for residential framing. The ranges represent the 20th to 80th percentile of actual contractor bids — excluding the cheapest (often incomplete scope) and most expensive (premium market or complex projects). National average — regional adjustment is covered in the cost table above.
A 2×4 stud costs $4.50 at one lumber yard and $7.80 at another in the same city on the same day. Framing labor runs $9/sq ft in rural Georgia and $24/sq ft in Manhattan. Showing a single number would be meaningless. The ranges reflect real market pricing — use the midpoint for planning, the high end as your ceiling, and get actual quotes from local suppliers and contractors for final budgeting.
Frequently Asked Questions
Plan your full construction project with these free calculators.
