Skip to calculator

Rafter Length Calculator

Find exact common rafter length (with eave tail), vertical ridge rise, plumb/seat cut miter angles, and minimum lumber length for gable or shed roofs.

Common Rafter Framing Geometry

Gable Half-Span Run
Run = (Building Span ÷ 2) [or Full Span for Shed/Lean-to]

Subtract half the ridge board thickness (typically 0.75" for a 2x ridge) when marking final saw cuts.

Total Rafter Length (with Tail)
Total Rafter = (Run + Horizontal Overhang) × √(1 + (Pitch Rise ÷ 12)²)

Matches the Pythagorean theorem √(Run² + Rise²) plus sloped eave tail.

Framing Square Cut Angles
Seat Cut = Pitch Angle (°) · Plumb Cut = 90° − Pitch Angle (°)

Use the pitch rise on the framing square tongue and 12" on the blade for birdsmouth and ridge plumb marks.

Worked Engineering Example

28 ft Wide Garage Gable Roof at 6/12 Pitch with 16" Overhang

Inputs:
  • Full building span = 28 ft → Run = 14 ft
  • Pitch = 6/12 (1.1180×)
  • Horizontal eave overhang = 1.33 ft (16 in)
Step-by-Step Math:
  1. Ridge rise = 14 × (6 ÷ 12) = 7.00 ft (7' 0")
  2. Rafter to outside wall = 14 × 1.1180 = 15.65 ft (15' 8")
  3. With 16" overhang tail = (14 + 1.333) × 1.1180 = 17.14 ft (17' 2")
  4. Order standard 18-foot framing lumber (2×8 or 2×10 per span tables)
Total Rafter Length: 17' 2" · Plumb Cut: 63.4° · Order 18 ft Lumber

Quick Pitch Lookup Charts (1/12 to 12/12)

Frequently Asked Questions

Do I subtract the ridge board thickness from the rafter length?

Yes. Traditional stick-framed roofs use a 1.5-inch thick (2×) ridge board, so carpenters shorten each opposing common rafter horizontally by 3/4 inch (half the ridge thickness) along the plumb cut line.

How do I pick the right framing lumber length for my rafters?

Always round your total rafter length (including the sloped eave tail) up to the next standard US dimensional lumber length—typically 10, 12, 14, 16, 18, or 20 feet—and verify lumber depth (2×6, 2×8, 2×10) against local snow-load span tables.

What is the difference between a common rafter and a hip rafter?

A common rafter runs straight up from the wall plate to the ridge at 90 degrees to the wall, using a 12-inch unit run. A hip rafter runs diagonally at 45 degrees from a building corner, using a 16.97-inch (12√2) unit run.