Rafter Length Calculator

Calculate rafter length from run and rise (or roof pitch), then estimate total board feet needed for the full roof span.

Roof Dimensions

Lumber & Quantity

Enter your roof dimensions on the left to get rafter length and board feet.

How the Formula Works

  1. 1
    Rise from pitch: If using pitch X/12: Rise = Run × (X ÷ 12)
  2. 2
    Rafter span: Span = √(Run² + Rise²) — the Pythagorean theorem applied to the roof triangle.
  3. 3
    Overhang extension: The rafter extends past the wall by the overhang. Its slope-length is √(Overhang² + Overhang_rise²) where Overhang_rise = Overhang × (Rise ÷ Run).
  4. 4
    Total rafter length: Total = Span + Overhang Extension
  5. 5
    Board feet: BF = (Thickness × Width × Length_ft) ÷ 12 — using nominal lumber dimensions.
  6. 6
    Project total: Total BF = BF_per_rafter × Count × (1 + Waste%)

Summary

Calculate rafter length from run and rise (or roof pitch), then estimate total board feet needed for the full roof span.

How it works

  1. Choose whether to enter Rise directly or use a Pitch (in/12) value.
  2. Enter the horizontal Run — the distance from the wall plate to the ridge centerline.
  3. Enter the Rise or select a standard pitch (e.g. 6/12 means 6 inches of rise per 12 inches of run).
  4. Enter the rafter width and depth (nominal lumber dimensions) and the number of rafters.
  5. The calculator applies the Pythagorean theorem: Rafter = √(Run² + Rise²) and adds a user-defined overhang.
  6. Board feet are computed for a single rafter and for the full set, with an optional waste factor.

Use cases

  • Framing a gable, hip, or shed roof and estimating rafter lumber.
  • Checking rafter length before ordering pre-cut lumber from a yard.
  • Verifying roof geometry during a remodel or addition.
  • Teaching students the relationship between pitch, rise, run, and hypotenuse.
  • Preparing a material takeoff for a roofing permit application.

Frequently Asked Questions

Last updated: 2026-06-13 · Reviewed by Nham Vu