Skip to content
Back to Engineering Calculators

Rafter Length Calculator

Calculate common roof rafter length to the nearest 1/16 inch from building span, roof pitch (x:12), ridge board thickness, and eave overhang.

Common Roof Rafter Calculator

US framing run, rise, pitch, overhang, and plumb/seat cuts

Enter building span (or run) and roof pitch above, or click Load Sample to calculate rafter cut lengths and angles.

How to Use This Rafter Length Calculator

  1. Choose Full Building Span or Half-Span Run: Select Full Gable Width (outside top-plate to outside top-plate) or Half Run in feet.
  2. Enter Roof Pitch (Rise per 12 Inches Run): Input roof slope such as 6 for a 6:12 gable roof or 4 for a 4:12 porch pitch.
  3. Specify Ridge Thickness & Eave Overhang: Enter nominal ridge board width (1.5 inches for 2x framing lumber) and horizontal soffit overhang in inches.
  4. Read Framing Square Cuts, Fractional Inches & Lumber Size: Inspect common rafter length to 1/16 inch, birdsmouth seat/plumb cut angles, tail length, and recommended stock board length.

Roof Rafter Formula, Worked Framing Scenarios & Pitch Table

Rafter Length = sqrt(Run^2 + Rise^2) + (Overhang / cos(atan(Pitch / 12)))

Scenario 1 (24-ft Gable Garage at 6:12 Pitch): With a 1.5" ridge board and 12" overhang, adjusted run is 12 ft - 0.75" = 143.25", vertical rise is 71.63", giving 160.16" (13 ft 4 3/16") plus a 13.42" overhang tail, or 14 ft 5 9/16" total (order 16 ft 2x8 or 2x10 boards).

Scenario 2 (12-ft Wide Lean-To Shed Roof at 4:12 Pitch, Zero Ridge): On a single-slope shed roof (`ridgeThickIn = 0`) with 12" overhang, run = 144", rise = 48", main rafter = 151.79" plus 12.65" tail = 164.44" (13 ft 8 7/16").

Roof PitchSlope AngleRafter Factor (in/ft run)Plumb Cut Angle
4:1218.4°12.65 in/ft71.6°
6:1226.6°13.42 in/ft63.4°
8:1233.7°14.42 in/ft56.3°
10:1239.8°15.62 in/ft50.2°
12:1245.0°16.97 in/ft45.0°

Roof Framing Accuracy, Collar Ties & Common Mistakes

  • Never Cut All Rafters Before Test-Fitting One Pair: Always measure and cut one test pattern pair and check snug fit against the ridge board and top-plate wall crowning before gang-cutting 30 rafters.
  • Respect IRC Seat-Cut Bearing Limits: Never notch the birdsmouth deeper than one-quarter to one-third of total rafter depth, keeping full bearing on the double top plate.
  • Include Structural Collar Ties & Hurricane Clips: Conventional stick-framed gable roofs require rafter ties (ceiling joists) across the lower third plus hurricane ties under US wind codes.

Carpentry geometry verified to 1/16" US framing increments under our Editorial Policy.

Related Carpentry & Geometry Calculators

Frequently Asked Questions

How do you calculate common rafter length from span and pitch?

Divide the total building span by 2 to get the run, subtract half the ridge board thickness, multiply adjusted run (in feet) by pitch to find vertical rise, and apply the Pythagorean theorem: Rafter = sqrt(Run^2 + Rise^2).

What is a birdsmouth cut and how are plumb and seat cuts measured?

A birdsmouth is the notch where a rafter rests squarely on the top wall plate. The vertical plumb cut equals 90 minus the roof slope angle, and the horizontal seat cut equals the roof pitch angle itself.

Do you deduct ridge board thickness when cutting rafters?

Yes. On a standard gable roof with a 1.5-inch ridge board, subtract 0.75 inches horizontally from each side run before cutting, or shorten the plumb cut horizontally by 0.75 inches after layout.

How do you calculate the overhang tail length on a rafter?

Divide the horizontal eave overhang projection (in inches) by cosine(roof slope angle). That gives the sloped rafter tail length to add past the birdsmouth heel plumb line.

Should you subtract ridge beam thickness the same as a ridge board?

Yes, geometrically you always deduct half of whatever vertical center member sits between opposing rafters (0.75 inches for a nominal 2x ridge board, or 0.875 inches for a 1-3/4 inch LVL ridge beam). Structural ridge beams carry roof weight without collar ties and require dedicated beam hangers.