What Is the Rafter Length Calculator?
The Rafter Length Calculator is a free online tool designed for contractors and DIY builders who need quick, accurate calculations in the construction and building space. By entering your roof span — building width, roof pitch, overhang / eave, you get instant results including rafter length, rafter length, ridge board height. No formulas to memorize, no spreadsheets to build — just enter your numbers and get the answer in seconds. Whether you're a beginner or experienced professional, this calculator saves you time and eliminates guesswork.
Why This Calculation Matters
Getting rafter length right can make the difference between success and costly mistakes. In construction and building, small errors compound quickly. Manual calculations are error-prone and time-consuming, especially under pressure. This calculator applies proven formulas used by contractors and DIY builders worldwide, giving you confidence that your numbers are correct. Use it to plan your projects with precision and avoid common pitfalls that trip up beginners.
When Should You Use This Calculator?
This tool is most useful when you know your roof span — building width and need to find the right rafter length. It's also great for quick estimates before committing to a decision, and to double-check manual calculations or professional quotes, and when comparing different scenarios side by side. Bookmark this page and come back whenever you need a fast, reliable answer — the calculator is always free and requires no signup.
Rafter Length Calculator
Recommended Rafter Size
How to Use This Calculator
- Enter Your Roof Span (ft) — building width: Start by entering your roof span — building width — this is the primary input for the calculation.
- Fill In Additional Details: Complete the remaining fields: roof pitch, overhang / eave, wall height. Each value refines the calculation for greater accuracy.
- Click Calculate: Hit the Calculate button to run the numbers. Results appear instantly below.
- Review Your Results: Check your rafter length, rafter length, ridge board height. Use these figures to inform your next decision or compare against alternative scenarios.
How to Calculate Rafter Length
Rafter length is determined by the building span, roof pitch, and desired overhang. The run (horizontal distance) is half the span, and the rafter follows the hypotenuse of the triangle formed by the run and rise.
- Run = Span ÷ 2 (half the building width)
- Pitch angle = arctan(pitch / 12)
- Rise = Run × pitch / 12
- Ridge height = Wall height + Rise
- Birdsmouth seat cut = wall plate width (typically 3.5" for 2×4 wall)
- The plumb cut depth should not exceed 1/3 of rafter depth
Example: 24 ft span, 6/12 pitch, 12" overhang: Run = 12 ft, angle = 26.57°, rafter = 12/cos(26.57°) + 1 = 13.42 + 1 = 14.42 ft.
Tips & Considerations
- Double-check your roof span — building width before calculating — even small input errors can significantly change your results.
- Run the calculator with different values to compare scenarios and find the optimal approach for your situation.
- Pay attention to both rafter length and rafter length — they work together to give you the full picture.
- Bookmark this page for quick access next time you need to plan your projects.
- If you're unsure about your wall height, start with a conservative estimate and adjust from there.
Frequently Asked Questions
How do you calculate rafter length?
Rafter length equals half the building span divided by the cosine of the pitch angle, plus the overhang. For a 24 ft span with 6/12 pitch and 12" overhang: run = 12 ft, angle = 26.57°, rafter = 12/cos(26.57°) + 1 ft = 14.42 ft.
What size rafter do I need?
Rafter size depends on span, spacing, pitch, and snow/wind loads. General rules: 2×6 for spans up to 10 ft at 16" OC, 2×8 for up to 14 ft, 2×10 for up to 18 ft, and 2×12 for up to 22 ft. Always consult local building codes and IRC span tables for your specific loads.
What is a birdsmouth cut?
A birdsmouth is a notch cut into the rafter where it sits on the top wall plate. It has two parts: the seat cut (horizontal, resting on the plate) and the plumb cut (vertical). The seat cut width typically matches the wall plate (3.5" for a 2×4 wall). The notch depth should not exceed one-third of the rafter depth.
How do you calculate ridge board height?
Ridge height from the floor = wall height + (run × pitch ÷ 12). For an 8 ft wall with 12 ft run and 6/12 pitch: 8 + (12 × 0.5) = 14 ft. Subtract half the ridge board thickness for the actual rafter seat position at the ridge.
What is the standard rafter overhang?
Standard eave overhang is 12 to 24 inches. 12" is minimum for weather protection, 16-18" is most common for residential construction, and 24"+ provides extra shade and rain protection but may need lookout support for wider overhangs.
Do I need a ridge board or ridge beam?
A ridge board is non-structural — rafters bear against it while ceiling joists resist outward thrust. A ridge beam is structural and supports rafter loads directly, required when there are no ceiling joists (vaulted/cathedral ceilings). Ridge beams must be engineered for the specific loads.