US Roof Calculator

Rafter Length Calculator

A common rafter is just the hypotenuse of the roof triangle. Enter your building span and pitch and this calculator returns the rafter's line length (with overhang), how many rafters the roof needs at your spacing, and the plumb and seat cut angles — the same figures a framing square gives you, without the table lookup.

Home › Rafter Length Calculator

Calculate your rafter length

Your rafter figures

Rafter length
—
—
Rafters needed
—
—
Pitch angle
—
plumb cut angle

    Length is the theoretical line length from ridge center to the outside of the wall plate, plus the overhang — before the ridge-board deduction (subtract half the ridge thickness) and before seat/plumb cuts.

    How rafter length is calculated

    Run = span ÷ 2 Multiplier = √(1 + (pitch ÷ 12)²) Rafter length = run × multiplier + overhang (horizontal) × multiplier Rafter pairs = building length ÷ spacing + 1

    Worked example. Span 24 ft, pitch 6/12, overhang 12 in, building 40 ft long at 16″ spacing: run = 12 ft, multiplier ×1.118, main rafter = 13.42 ft, overhang adds 1 × 1.118 = 1.12 ft → 14.53 ft total (about 14 ft 6⅜ in). Count: 480 in ÷ 16 in = 30 spaces + 1 = 31 pairs = 62 rafters. Pitch angle = arctan(6/12) = 26.57°.

    Framers traditionally read the same numbers off a framing square's rafter table as "length per foot of run" — for 6/12 that is 13.42 inches of rafter for every foot of run, which is the multiplier × 12. The calculator simply does the multiplication for your actual run instead of a unit run.

    The ridge deduction

    The length given here is the theoretical line length to the center of the ridge. Real rafters butt against a ridge board, so each rafter is shortened by half the ridge board's thickness (typically ¾ inch for a 2× ridge), measured horizontally along the rafter line. Layout also needs the birdsmouth (seat cut) where the rafter sits on the wall plate — its depth is governed by code limits on how much of the rafter's depth may be notched. Order lumber one standard length above the calculated figure and cut to fit.

    Rafter length per foot of run (common pitches)

    PitchMultiplierLength per 1 ft of runPitch angle
    3/12×1.030812.37 in14.04°
    4/12×1.054112.65 in18.43°
    5/12×1.083313.00 in22.62°
    6/12×1.118013.42 in26.57°
    7/12×1.157713.89 in30.26°
    8/12×1.201914.42 in33.69°
    9/12×1.250015.00 in36.87°
    10/12×1.301715.62 in39.81°
    12/12×1.414216.97 in45.00°

    Multiply the third column by your run in feet (and divide by 12) to cross-check any rafter: a 14 ft run at 8/12 needs 14 × 14.42 in = 201.9 in ≈ 16.83 ft of rafter before overhang.

    Frequently asked questions

    How do I calculate rafter length?

    Take half the building span (the run), multiply by the pitch multiplier √(1 + (pitch/12)²), and add the overhang — also multiplied, because the overhang continues down the same slope. A 12 ft run at 6/12 gives 12 × 1.118 = 13.42 ft before overhang.

    How many rafters do I need?

    Divide the building length by the spacing and add one pair for the starting end: a 40 ft building at 16″ on center needs 31 pairs = 62 common rafters. Gable-end framing, barge (fly) rafters and blocking are additional.

    What is the plumb cut angle?

    The angle at the top of the rafter where it meets the ridge — equal to the pitch angle (26.57° for 6/12), measured so the cut face sits vertical (plumb) when the rafter is in place. The seat cut at the wall is the complement: 90° minus the pitch angle.

    Do I subtract for the ridge board?

    Yes, in the real cut: the calculator gives the theoretical length to the ridge centerline. Shorten each rafter by half the ridge board's actual thickness (about ¾″ for nominal 2× lumber), measured along the rafter. For ordering lumber this is immaterial — you buy the next standard length up anyway.

    What's the difference between a rafter and a truss?

    Rafters are cut and assembled on site, one pair at a time ('stick framing'); trusses are factory-built engineered triangles delivered complete. The geometry in this calculator (span, pitch, run) is shared by both — see the truss calculator for counts and costs of the factory option.

    Sources & data

    Geometry: standard rise-over-run roof mathematics — pitch multiplier = √(1 + (rise/12)²), rafter length from the Pythagorean theorem — as published in roofing measurement references and framing practice.

    Data retrieved: 17 Nov 2026.

    Disclaimer: This page gives a preliminary estimate, not a contractor quote. Figures are based on national published cost ranges and standard geometry, with the assumptions shown on the page. Your actual price or measurement will vary with location, roof complexity and condition, material grade, and contractor. Always obtain written quotes and verify critical measurements before buying materials.

    Related calculators & guides

    Keep going with the tools and guides homeowners use alongside this one:

    Roof Pitch Calculator

    Convert rise and run into pitch, angle in degrees, slope percent, multiplier and rafter length.

    Hip Roof Calculator

    Hip rafter length, ridge length and roof area for an equal-pitch hip roof.

    Roof Truss Calculator

    How many trusses you need at 16″ or 24″ spacing, and what they cost.

    Roof Area Calculator

    True roof square footage and roofing squares from footprint and pitch.

    Roof Pitch Multiplier Chart

    Every pitch from 1/12 to 12/12: angle, slope percent, multiplier and best materials.