Authoritative Content & Methodology
Data Source and Methodology
Primary reference for trigonometric identities used in roof geometry: NIST Digital Library of Mathematical Functions (DLMF), Chapter 4: Trigonometric Functions, 2010–2024. Direct link: https://dlmf.nist.gov/4.
All calculations are rigorously based on the formulas and data provided by this source.
Note: This tool performs geometric computation only; it does not perform structural sizing or code checks.
The Formulas Explained
Glossary of Variables
How It Works: A Step-by-Step Example
Scenario: A garage with a 24 ft span and a 6-in-12 roof pitch. Ridge thickness is 1.5 in; overhang is 18 in.
- Run = span ÷ 2 = 24 ft ÷ 2 = 12 ft.
- Angle: θ = arctan(6/12) ≈ 26.565°.
- Pitch factor: sec(θ) ≈ 1.1180.
- Lcenter = run ÷ cos(θ) = 12 ft × 1.1180 ≈ 13.416 ft.
- Ridge deduction: Δridge = (1.5 in ÷ 2) ÷ cos(θ) ≈ (0.75 in) ÷ 0.8944 ≈ 0.838 in ≈ 0.0698 ft.
- Lcut = 13.416 − 0.0698 ≈ 13.346 ft.
- Overhang tail: Δoverhang = 18 in ÷ cos(θ) ≈ 18 ÷ 0.8944 ≈ 20.12 in ≈ 1.676 ft.
- Total: Ltotal = 13.346 + 1.676 ≈ 15.022 ft ≈ 15′ 0 1/4″.
These steps match the calculator’s output within rounding precision.
Frequently Asked Questions (FAQ)
What inputs do I need?
Provide span or run, then choose either roof pitch (rise-in-12) or angle in degrees. Optionally add ridge thickness (to deduct half) and overhang (horizontal).
Which is more accurate: pitch or angle?
They are equivalent when correctly converted. Pitch is common on plans; angles are convenient for protractors and layout tools. The calculator handles both precisely.
Do I need to include sheathing or fascia thickness?
This tool reports the line length along the rafter’s top edge. If your detail requires adding or subtracting materials (e.g., fascia thickness), adjust on site or incorporate it into the overhang allowance.
Can I calculate hip or valley rafters?
This version focuses on common rafters. Hip/valley lengths require plan geometry across two axes. We plan to add an advanced module with those features.
How precise are the conversions?
Internally, calculations use double-precision floating point with unit conversions. Imperial outputs are rounded to your selected fractional precision (1/16″ or 1/8″).
Will this pass building inspection?
Inspections focus on structural adequacy and code compliance. Use this tool for geometry and layout only. For sizing, consult the IRC/IBC and NDS span tables or a licensed engineer.
Can I save or share my results?
Use the “Copy results” button to place a formatted summary on your clipboard for quick sharing in notes, emails, or job cards.