Tool

Rafter length calculator

Enter the building width from wall to wall, the pitch, the overhang and the ridge board thickness. The answer links to the roof area calculator for the same building.

Measurements

Example values. Replace them with yours.

Read as 24 ft 0 in

ft-in

Read as 6 in 12

in 12

Read as 12 in

in

Example: 1-1/2 in

in

A common rafter on a gable roof, measured along its top edge. The run is half the building width, less half the ridge board.

Answer

24 ft 0 in wide, 6/12 pitch

  1. 14 ft 5-9/16 in
    rafterridge to tail, along the top edgeBuy longer stock for the plumb and tail cuts.
  2. 13 ft 4-3/16 in
    to the wallridge to the outside of the wall
  3. 26.57°
    angleroof slope from level

Work out the roof area for this building →

Estimate only, not engineering advice. Values marked Example are not recommendations: adjust them to your local building code, permit requirements and the products you buy.

The working

  1. Run24 ft ÷ 2 − 1.5 in ÷ 2 = 11 ft 11-1/4 in
  2. Pitch factor√(1 + (6 ÷ 12)²) = 1.11803
  3. Rafter to the wall line11.938 ft × 1.11803 = 13 ft 4-3/16 in
  4. Tail, the overhang along the slope12 in × 1.11803 = 1 ft 1-7/16 in
  5. Rafter length13 ft 4-3/16 in + 1 ft 1-7/16 in = 14 ft 5-9/16 in
  6. Roof angleatan(6 ÷ 12) = 26.57°

Assumptions and sources

No product figures: geometry from your measurements only.