Rafter Length Calculator
Calculate common rafter length from building span, roof pitch, overhang and ridge board thickness.
Your inputs
See the method ↓Enter quantities in the labelled units. Unit changes keep the entered number; calculate again.
Loading calculator… If this message remains, reload the page.
HOW THE CALCULATION WORKS
Transparent rafter length calculator method
- Run = span ÷ 2 − ridge thickness ÷ 2.
- Pitch factor = √(1 + (pitch ÷ 12)²) (floating-point, labelled).
- Rafter length = run × factor; tail length = overhang × factor; total = both.
Worked example
24 ft span at 6/12 with 12 in overhang and 1.5 in ridge: run 143.25 in × 1.118 = 160.16 in + 13.42 in tail = 173.57 in ≈ 14.46 ft.
Defaults and assumptions
- Span and pitch start blank; overhang and ridge thickness default to 0.
- Changing a unit keeps and reinterprets the entered number; recalculate. Reset restores the displayed configuration defaults, including any explicitly named customer defaults. The example is demonstration data.
- Numeric inputs accept decimals, fractions, mixed numbers, grouped commas and scientific notation within 80 characters. Each field shows its supported range. Some tools accept negative values; required divisors must be nonzero or positive as stated. These bounds are not safe-use recommendations.
Limitations
- Line length only; plumb and seat cuts and birdsmouth depth are not calculated.
- Follow span tables and local building code for rafter size and spacing.
Precision and rounding
Supported arithmetic uses exact fractions. Formulas involving logarithms, trigonometry, statistical functions or simulations can use numerical approximations; storing an approximation as a fraction does not make it exact. Decimal display rounds to at most 6 fractional places, so very small values can appear as approximately zero. Time displays round to the nearest second where shown. Whole-item rounding follows the stated formula.
Sources
Use the assumptions, worked example and sources to interpret your result. Estimates do not replace professional advice.
How to use this calculator
- Enter the measured quantities in the labelled units; inspect any named customer defaults.
- Check the units, dates and selected options. Where a tool asks for a rate, price or product specification, use a value appropriate to your situation.
- Calculate and compare the result, exact details, assumptions and worked example.
Common questions
Are the example values recommendations?
No. They demonstrate the arithmetic. Use measurements, product labels and supplier information appropriate to your situation.
What happens when I change units?
The entered number stays the same and is reinterpreted in the new unit. The old result is cleared; calculate again.
Are inputs sent to a server?
No. Calculations stay in your browser. A calculation record is downloaded only when you request it.
Report a problem or suggest a calculator
Found a confusing result, a missing option, or an idea for a new calculator? Send it privately to the site owner.
Opening the form loads Cloudflare Turnstile, a spam check that processes connection and device information. Privacy details.
Related tools
Roof Pitch Calculator
Calculate pitch, slope, angle and sloped roof area.
Open calculator →Roofing Calculator (Shingles)
Calculate roofing squares and shingle bundles from roof footprint, pitch and waste allowance.
Open calculator →Board Foot Calculator
Tally lumber volume and cost with explicit measurement and supplier conventions.
Open calculator →