How it works
The formula
slope factor = √(1 + (pitch ÷ 12)²)
rafter length = (run + overhang) × slope factor · roof angle = arctan(pitch ÷ 12)
- A common rafter is the hypotenuse of a right triangle: the run across and the rise up. The slope factor turns any level distance into the length along the rafter.
- We stop each rafter half of a 1 1/2 in ridge board short of the ridge line, and measure the overhang level from the wall.
- Code limits from the 2021 IRC: with an overhang, the birdsmouth notches the cantilevered part of the rafter, which must keep at least 3 1/2 in above the cut with an overhang of 24 in or less (R802.7.1.1); with no overhang it's an end notch, no deeper than 1/4 of the rafter (R502.8.1). Other notches are limited to 1/6 of the depth and kept out of the middle third. At least 1 1/2 in of bearing on wood (R802.6); a ridge board at least 1 in thick and as deep as the cut end (R802.3).
- This finds length and count. Pick the rafter size (2×6, 2×8…) from the IRC rafter span tables for your snow load and spacing.
Rafter length by pitch, 24 ft span, 12 in overhang
| Pitch | Angle | Rise | Rafter |
|---|---|---|---|
| 3/12 | 14.0° | 3 ft 0 in | 13 ft 4 in |
| 4/12 | 18.4° | 4 ft 0 in | 13 ft 8 in |
| 5/12 | 22.6° | 5 ft 0 in | 14 ft 0 in |
| 6/12 | 26.6° | 6 ft 0 in | 14 ft 6 in |
| 7/12 | 30.3° | 7 ft 0 in | 14 ft 12 in |
| 8/12 | 33.7° | 8 ft 0 in | 15 ft 7 in |
| 9/12 | 36.9° | 9 ft 0 in | 16 ft 2 in |
| 10/12 | 39.8° | 10 ft 0 in | 16 ft 10 in |
| 12/12 | 45.0° | 12 ft 0 in | 18 ft 4 in |
Questions people ask
How do I calculate rafter length?
Take half the span, less half the ridge board, add the level overhang, and multiply by the slope factor √(1 + (pitch ÷ 12)²). At 6/12 the factor is 1.118.
What angle is a 6/12 roof?
26.6°. A 4/12 roof is 18.4°, 8/12 is 33.7° and 12/12 is 45°.
How deep can the birdsmouth be?
With an overhang, deep enough to sit on the wall but leaving at least 3 1/2 in of rafter above the seat cut, with the overhang no more than 24 in. With no overhang, the notch is at the end of the rafter and may be no deeper than 1/4 of its depth, about 1 3/8 in on a 2×6. Either way, give it at least 1 1/2 in of bearing on the wall plate.