Home › Rafter Length Calculator
Calculate your rafter length
Your rafter figures
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
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)
| Pitch | Multiplier | Length per 1 ft of run | Pitch angle |
|---|---|---|---|
| 3/12 | ×1.0308 | 12.37 in | 14.04° |
| 4/12 | ×1.0541 | 12.65 in | 18.43° |
| 5/12 | ×1.0833 | 13.00 in | 22.62° |
| 6/12 | ×1.1180 | 13.42 in | 26.57° |
| 7/12 | ×1.1577 | 13.89 in | 30.26° |
| 8/12 | ×1.2019 | 14.42 in | 33.69° |
| 9/12 | ×1.2500 | 15.00 in | 36.87° |
| 10/12 | ×1.3017 | 15.62 in | 39.81° |
| 12/12 | ×1.4142 | 16.97 in | 45.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.
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.