Skip to content
FiftyCalc Free calculators for all 50 states

Rafter Length Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Enter the building span, the pitch and the overhang to get the rafter length.

Result

Sample figures

Rafter length with overhang—in

Rafter run (inches) —

  • Rise at the ridge (inches)—
  • Rafter length, plate to ridge (inches)—
  • Rafter length with overhang (feet)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Rafter Length Calculator

Building span, wall to wall, in ft: enter 0 or more. Prefilled example: 24.

Roof pitch (rise per 12 in): enter a number from 0 to 24. Prefilled example: 6.

Ridge board thickness, in in: enter a number from 0 to 4. Prefilled example: 1.5.

Horizontal overhang, in in: enter 0 or more. Prefilled example: 12.

Affiliate link

This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.

Search Amazon for rafter squares. Visit Amazon

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Building span, wall to wall, in ft: enter 0 or more.
  2. Roof pitch (rise per 12 in): enter a number from 0 to 24.
  3. Ridge board thickness, in in: enter a number from 0 to 4.
  4. Horizontal overhang, in in: enter 0 or more.
  5. Read the result: Rafter length with overhang; the panel also shows Rafter run (inches), Rise at the ridge (inches), Rafter length, plate to ridge (inches) and Rafter length with overhang (feet).

How this calculator works

Run = half the span minus half the ridge thickness. Rafter length = run × √(1 + (pitch ÷ 12)²), measured along the rafter.

The overhang is added as horizontal run, then multiplied by the same slope factor. Buy the next standard lumber length up.

The formula

  1. Ru=s×122−r2
  2. T=(Ru+o)×1+(p÷12)2
Symbols used in the formula
SymbolMeaningUnit
sBuilding span, wall to wallft
pRoof pitch (rise per 12 in)
rRidge board thicknessin
oHorizontal overhangin
RuRafter runinches
TRafter length with overhangin

Worked example

Building span, wall to wall24 ft
Roof pitch (rise per 12 in)6
Ridge board thickness1.5 in
Horizontal overhang12 in
Rafter run (inches)143.25
Rise at the ridge (inches)71.63
Rafter length, plate to ridge (inches)160.16
Rafter length with overhang (feet)14.46
  1. Ru=24×122−1.52=143.25
  2. T=(143.25+12)×1+(6÷12)2=173.575

Rafter length with overhang 173.57 in

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How long is a rafter for a 24-foot span at 6/12?

With a 1½-inch ridge: 11.94 ft of run × 1.118 = about 160 inches (13.3 ft) before overhang.

What is the slope factor of a 4/12 roof?

√(1 + (4/12)²) ≈ 1.054.

Questions answered

Related calculators