Rafter Length Calculator
Rafter Parameters
Calculation Results
Are you a roofer? Turn this into a customer quote.
RoofBidder measures the roof from satellite, prices your materials and sends a branded PDF proposal. 3-day free trial.
How to Calculate Rafter Length
- Run = half the span (outside of wall to outside of wall ÷ 2). Rise = run × pitch ÷ 12.
- Common rafter = √(run² + rise²), plus the overhang.
- Hip or valley rafter (equal pitches on both sides): its run is the common run × √2, so length = √((run × √2)² + rise²), plus the overhang.
- Jack rafters get shorter by the same amount each step, the common difference = spacing × (common rafter length ÷ run). The calculator lists every jack length from the corner.
- Overhang (horizontal): enter it measured level from the outside of the wall. The calculator adds overhang ÷ cos(angle) along a common, jack or lean-to rafter. On a hip or valley the overhang runs √2 times as far in plan with the same drop, so it adds overhang × √(2 + (pitch ÷ 12)²).
- The length is to the center of the ridge. Deduct half the ridge board thickness (measured level) from each common rafter, and buy the next even lumber length (a 14.53 ft rafter → a 16 ft board).
For a lean-to or shed roof (one slope), choose the lean-to / shed rafter type: the run is the whole width of the building.
Rafter Length Examples
Example 1: Gable roof, common rafters
24 ft span, 6:12, 12 in. horizontal overhang
- Run 12 ft, rise 6 ft, rafter 13.42 ft
- Overhang along the rafter 1.12 ft: 14.53 ft (buy a 16 ft board)
Example 2: Hip rafter
30 ft span, 35°, 16 in. horizontal overhang
- Run 21.21 ft (15 × √2), rise 10.50 ft, rafter 23.67 ft
- Overhang along the hip 2.10 ft: 25.78 ft
Example 3: Valley rafter
24 ft span, 6:12, no overhang
- Run 16.97 ft, rise 6 ft: 18.00 ft
Example 4: Jack rafters
24 ft span, 6:12, 16 in. spacing, 12 in. horizontal overhang
- Common difference 17.89 in.
- Jacks 17.89, 35.78, 53.67, 71.55, 89.44, 107.33, 125.22 and 143.11 in., plus 13.42 in. of overhang each
Example 5: Lean-to (shed) rafter
10 ft wide, 3:12
- Run 10 ft (the full width), rise 2.50 ft: 10.31 ft
- With a 12 in. horizontal overhang: 11.34 ft
Rafter Lumber and Spacing
- Rafters are usually 16 or 24 inches on center. Hip and valley rafters are single members at the corners, usually one size deeper than the common rafters.
- The rafter size (2x6, 2x8 ...) depends on span, spacing, species, grade and snow load; use the rafter span tables in the International Residential Code (Tables R802.4.1(1) through R802.4.1(8)) or ask your lumber yard.
- Lumber comes in 2 ft increments (8, 10, 12, 14, 16 ft ...); round the total length up.
- Cut the birdsmouth with the birdsmouth cut calculator.
