Skip to content
EasyDIYCalcs

Rafter & Roof Pitch Calculator

Enter your roof’s span and pitch (or angle, or rise) to get the common rafter length, including overhang, plus the rise and cut angles.

Units
Roof type
26.6°RunRiseRafter
Roof size

Outside of wall to outside of wall.

Steepness
Steepness

Measured level, out from the wall.

Thickness. 1½ in (38 mm) for a 2× ridge board.

Result

Enter your measurements to see the result.

Something look wrong? Report a problem

How it’s calculated

A common rafter is the long side of a right triangle formed by the run and the rise.

  1. Run = half the span on a gable roof (the full width on a shed roof), measured from the outside of the wall to the center of the ridge.
  2. Slope angle θ comes from the pitch (θ = atan(pitch ÷ 12)), from the angle you enter, or from rise ÷ run.
  3. Rafter length (wall to ridge) = run ÷ cos θ. For a 6/12 pitch that’s the run × 1.118.
  4. Overhang: the level overhang is converted to a length along the slope the same way (overhang ÷ cos θ) and added.
  5. Ridge board: rafters stop at the face of the ridge, so half its thickness (again ÷ cos θ) is taken off each rafter.

Worked example

A gable roof with a 24 ft span, 6/12 pitch, 12 in overhang and a 1½ in ridge board:

  • Run = 24 ÷ 2 = 12 ft (144 in); rise = 12 × 6/12 = 6 ft
  • Slope angle = atan(6 ÷ 12) = 26.6°; slope factor = 1.118
  • Wall to ridge: 144 × 1.118 = 161.0 in = 13' 5"
  • Overhang: 12 × 1.118 = 13.4 in; ridge deduction: 0.75 × 1.118 = 0.84 in
  • Rafter length: 161.0 + 13.4 − 0.84 = 173.6 in = 14' 5 9/16"

In metric, a 7,200 mm span at 22.5° with a 450 mm overhang and a 45 mm ridge gives a 1,491 mm rise and a 4,359 mm rafter.

Roof pitch, angle and percent

In the US, pitch is written as inches of rise per 12 inches of run, such as 6/12. In the UK, Australia and elsewhere it’s usually given in degrees. They describe the same slope:

  • 4/12 = 18.4° (33%)
  • 6/12 = 26.6° (50%)
  • 8/12 = 33.7° (67%)
  • 12/12 = 45° (100%)

Marking the cuts

  • Plumb cut (at the ridge and usually the tail): vertical when the rafter is in place. It’s the roof angle away from square. On a speed square, pivot to the pitch number on the “common” scale.
  • Seat cut (the level part of the birdsmouth that sits on the wall): 90° minus the roof angle from square.

Limitations

This calculator handles the geometry of common rafters on gable and shed roofs. It doesn’t size rafters, set spacing, check spans or loads, or handle hip, valley and jack rafters. Lengths are measured along the rafter. Buy boards long enough to allow for the cuts. Rafter size and spacing must suit your span, snow and wind loads; follow your local building code or ask an engineer.