How rafter length is worked out
A common rafter is the sloping side of a right triangle. The run is the flat side, from the outside of the wall to the center of the ridge, and the rise is the vertical side. Pitch is given as inches of rise per 12 inches of run, so the slope factor is the length of the sloping side for each 1 ft of run.
Slope factor = √(1 + (pitch ÷ 12)²)
Rise (ridge height above the plate) = run × pitch ÷ 12
Rafter length (wall to ridge) = (run − ridge thickness ÷ 2) × slope factor
Overhang length = level overhang × slope factor
Plumb cut = roof angle from square; seat (level) cut = 90° − roof angle from square
The rafter stops against the ridge board, not at its center, so half the ridge's thickness comes off the run before multiplying. All lengths are measured along the same line on the rafter (usually its top edge, or the measuring line through the birdsmouth).
Worked example
A 24 ft wide building has a 12 ft run. At a 6/12 pitch: roof angle = arctan(0.5) = 26.57°, slope factor = √(1 + 0.25) = 1.11803. The ridge is 12 × 6 ÷ 12 = 6 ft above the top plate. With a 1½ in ridge board, the run shortens by 0.75 in (0.0625 ft): (12 − 0.0625) × 1.11803 = 13.3465 ft. A 1.5 ft level overhang adds 1.5 × 1.11803 = 1.6771 ft. Total = 15.024 ft, about 15 ft 0 5/16 in, so a 16 ft board works.
The plumb cuts at the ridge and the tail are vertical once the rafter is in place: on a miter saw that's 26.57° from square. The seat cut of the birdsmouth is level, at a right angle to the plumb cut: 63.43° from square (it meets the rafter's edge at 26.57°).
| Pitch | Roof angle | Slope factor |
|---|---|---|
| 3/12 | 14.04° | 1.0308 |
| 4/12 | 18.43° | 1.0541 |
| 5/12 | 22.62° | 1.0833 |
| 6/12 | 26.57° | 1.1180 |
| 7/12 | 30.26° | 1.1577 |
| 8/12 | 33.69° | 1.2019 |
| 9/12 | 36.87° | 1.2500 |
| 10/12 | 39.81° | 1.3017 |
| 12/12 | 45.00° | 1.4142 |
Before you cut
- Size comes from span tables. This gives length, not the lumber size. Rafter size and spacing depend on the span, the load and the wood species and grade: use the span tables in your building code (IRC Chapter 8) or a design by an engineer.
- Birdsmouth depth: the seat cut shouldn't remove more than about a third of the rafter's depth; check your local code.
- Cut one pattern rafter, test it at both ends of the building, then use it to mark the rest.