Skip to content
CalcShown

Popular

    Roofing

    Rafter Calculator

    Enter the span and pitch to get the common rafter length with overhang, the plumb and seat cut angles, the birdsmouth heel, the hip line, and the lumber length to buy.

    Verified · 7 tests · 2 sources · Updated

    What verified means on this page

    • Tested. 7 automated tests check this calculator against official examples, published tables or hand-worked answers every time the site changes (last run December 3, 2026).
    • Sourced. The formulas and data come from the 2 sources listed below, checked against a second source.
    • Shown. "Show the Math" lists every step with your own numbers, so you can check the answer yourself.
    • Open to correction. Spot an error? Tell us. We fix it, add a test so it can't come back, and log it.
    How we verify every calculator →

    Roof

    Rafter spacing

    Lumber & Cuts

    Birdsmouth seat (wall width)

    Rafter Length Formula

    run          = span ÷ 2 − ridge thickness ÷ 2
    pitch factor = √(1 + (rise ÷ 12)²)
    rafter       = run × pitch factor            (ridge face to outside of wall)
    tail         = overhang × pitch factor
    total        = rafter + tail
    

    Rafter Lengths (1½ in Ridge, 12 in Overhang)

    Span 4/12 6/12 8/12 10/12 12/12
    20 ft 11.53 ft 12.23 ft 13.15 ft 14.24 ft 15.47 ft
    24 ft 13.64 ft 14.46 ft 15.55 ft 16.84 ft 18.30 ft
    28 ft 15.75 ft 16.70 ft 17.95 ft 19.44 ft 21.12 ft
    32 ft 17.85 ft 18.94 ft 20.36 ft 22.05 ft 23.95 ft

    Add a couple of inches for trimming, then round up to the next stock length.

    Cut Angles

    Pitch Plumb cut Seat cut
    4/12 18.4° 71.6°
    6/12 26.6° 63.4°
    8/12 33.7° 56.3°
    10/12 39.8° 50.2°
    12/12 45.0° 45.0°

    The Birdsmouth

    The seat cut sits flat on the wall plate (3½ in on a 2×4 wall, 5½ in on 2×6). The heel (plumb) cut is seat × tan(angle), which is 1¾ in at 6/12 on a 2×4 wall. The notch cuts seat × sin(angle) into the rafter, measured square to its edge. Keep that under a third of the rafter’s depth.

    Layout Tips

    1. Cut one pattern rafter, test-fit it at both ends of the building, then use it to mark the rest.
    2. Crown every rafter up.
    3. Rafter ties or ceiling joists must resist outward thrust at the plate (IRC R802.5).

    Frequently Asked Questions

    How do I calculate rafter length?

    Rafter length = run × √(1 + (pitch ÷ 12)²), where run is half the span minus half the ridge board thickness. Add the overhang run × the same factor. For a 24 ft span at 6/12 with a 1½ in ridge and 12 in overhang, (143.25 + 12) × 1.118 = 173.6 in, or 14 ft 5⅝ in.

    What angle do I cut rafters at?

    The plumb cut (at the ridge and tail) equals the roof angle, atan(pitch ÷ 12). That is 26.6° for 6/12 and 33.7° for 8/12. On a speed square, pivot to the pitch number on the common scale. The seat cut is 90° minus that.

    How deep can a birdsmouth be?

    Framers keep the notch to about one-third of the rafter depth so enough wood remains over the wall. The calculator shows how deep your seat cut goes and warns above ⅓. Check IRC R802.7 for cutting and notching limits.

    How long is a hip rafter?

    The hip's plan run is the common run × √2, so its line length is √(2 × run² + rise²). For a 24 ft span at 6/12, that is √(2 × 144² + 72²) = 216 inches, before ridge deductions.

    Does this calculator check rafter span?

    It does the geometry. Whether a 2×8 can span that distance depends on species, grade, spacing and snow load. Look up IRC Tables R802.4.1 or use an engineer's design.

    Sources

    1. International Residential Code R802, Wood roof framing (spans, notching)
    2. American Wood Council, Span tables for joists and rafters