Framing Math: The Calculations Every Carpenter Should Know

carpentry March 26, 2026

The Math That Keeps a Frame Square

Framing is physical work, but the job lives and dies on math. A staircase that doesn’t meet code gets torn out. A roof pitch calculated wrong means the sheathing doesn’t align. Board feet estimated incorrectly means a second trip to the lumber yard.

Here are the core calculations every framing carpenter uses regularly, with the formulas and worked examples you can verify on the job.

Stair Rise and Run

This is the calculation that trips up apprentices most often — and the one inspectors check first.

The formula: Riser Count = round(Total Rise / Target Riser Height) Actual Riser Height = Total Rise / Riser Count Total Run = (Riser Count - 1) × Tread Depth

IRC Code Requirements:

  • Maximum riser height: 7¾ inches (7.75”)
  • Minimum tread depth: 10 inches
  • Maximum riser variation: 3/8” between any two risers

Worked example: Total rise from finished floor to finished floor: 108 inches (9 feet). Target riser height: 7 inches.

Riser count = round(108 / 7) = round(15.43) = 15 risers Actual riser height = 108 / 15 = 7.2 inches ✓ (under 7.75” max) Total run = (15 - 1) × 10 = 140 inches (11 feet 8 inches)

The 7.2-inch riser passes IRC code. You need 140 inches of horizontal run, plus the landing at top and bottom.

Common mistake: Measuring total rise to the subfloor instead of finished floor. If the finish flooring hasn’t been installed yet, you need to account for its thickness at both levels.

Try the free stair calculator →

Board Feet

Board feet is how lumber is priced and estimated. One board foot equals a piece of wood 1 inch thick, 12 inches wide, and 12 inches long.

The formula: Board Feet = (Thickness × Width × Length in feet) / 12

Where thickness and width are in inches, and length is in feet.

Worked examples:

  • 2×6×8ft = (2 × 6 × 8) / 12 = 8 board feet
  • 2×12×10ft = (2 × 12 × 10) / 12 = 20 board feet
  • 4×4×12ft = (4 × 4 × 12) / 12 = 16 board feet

Note: Board feet uses nominal dimensions (2×6), not actual dimensions (1.5×5.5). This is a lumber industry convention.

Try the free board feet calculator →

Stud Count and Spacing

For wall framing, you need to know how many studs to cut before you start.

The formula: Stud Count = ceil(Wall Length in inches / Spacing) + 1

The “+1” accounts for the end stud. At 16” on center, a 10-foot wall needs:

ceil(120 / 16) + 1 = ceil(7.5) + 1 = 8 + 1 = 9 studs

At 24” on center, an 8-foot wall:

ceil(96 / 24) + 1 = 4 + 1 = 5 studs

Don’t forget: King studs and jack studs for window and door openings, cripple studs above and below openings, and double top plates. The stud count formula gives you the field studs — rough opening framing is additional.

Try the free stud spacing calculator →

Roof Pitch

Roof pitch is expressed as a ratio of rise to run over 12 inches. A 6:12 pitch means 6 inches of rise for every 12 inches of horizontal run.

Converting pitch to degrees: Angle = arctan(Rise / Run) × (180 / π)

Worked examples:

  • 4:12 pitch = arctan(4/12) = 18.43°
  • 6:12 pitch = arctan(6/12) = 26.57°
  • 12:12 pitch = arctan(12/12) = 45°

Why degrees matter: When you’re setting your circular saw bevel or miter saw angle for plumb cuts and seat cuts, you need the degree value, not the ratio.

Rafter length from pitch: Once you know the pitch and the horizontal span, the rafter length (along the slope) is:

Rafter Length = Horizontal Run / cos(pitch angle)

For a 6:12 pitch with a 12-foot run: Rafter Length = 144” / cos(26.57°) = 144 / 0.8944 = 161 inches (13 feet 5 inches)

Try the free roof pitch calculator →

When Mental Math Fails

These formulas are straightforward, and experienced carpenters often run them in their heads or on scrap lumber with a pencil. But mental math fails in specific situations: when you’re tired at the end of a long day, when the total rise is an awkward number that doesn’t divide cleanly, when you’re estimating board feet for a material list with 20 different items, or when you need to verify an apprentice’s layout before they cut.

That’s where calculators — whether free web tools or a dedicated app — earn their keep. Not because the math is hard, but because checking the math is fast and catches the mistakes that cost material.

Explore all free calculators →

carpentryframingmathcalculations