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
Results
Rafter Length
—
feet (incl. overhang)
Pitch Angle
—
degrees
BF / Rafter
—
board feet
Total Board Feet
—
all rafters + waste
| Parameter | Value |
|---|---|
| Horizontal Run | — |
| Vertical Rise | — |
| Horizontal Overhang | — |
| Rafter Span (no overhang) | — |
| Overhang Extension | — |
| Total Rafter Length | — |
| Lumber Size (nominal) | — |
| Number of Rafters | — |
| Waste Factor | — |
| Board Feet per Rafter (before waste) | — |
| Total Board Feet (incl. waste) | — |
How the Formula Works
-
1
Rise from pitch: If using pitch X/12: Rise = Run × (X ÷ 12)
-
2
Rafter span: Span = √(Run² + Rise²) — the Pythagorean theorem applied to the roof triangle.
-
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
Total rafter length: Total = Span + Overhang Extension
-
5
Board feet: BF = (Thickness × Width × Length_ft) ÷ 12 — using nominal lumber dimensions.
-
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
- Choose whether to enter Rise directly or use a Pitch (in/12) value.
- Enter the horizontal Run — the distance from the wall plate to the ridge centerline.
- Enter the Rise or select a standard pitch (e.g. 6/12 means 6 inches of rise per 12 inches of run).
- Enter the rafter width and depth (nominal lumber dimensions) and the number of rafters.
- The calculator applies the Pythagorean theorem: Rafter = √(Run² + Rise²) and adds a user-defined overhang.
- 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-05-23 ·
Reviewed by Nham Vu