A common rafter is the hypotenuse of a right triangle: the horizontal run from the outside of the wall to the center of the ridge, and the rise from the wall plate to the ridge. Multiply the run by the slope factor, the square root of 1 plus the pitch squared over 144, and you have the rafter length along its line. Take half the ridge board thickness off the run first, and add the overhang tail at the same slope.
The calculator does those steps from either the pitch in inches per foot or the total rise, and adds the parts carpenters need when they cut: the stock length to buy, the birdsmouth heel cut and height above plate, how deep the seat cut goes compared with the rafter depth, and the hip or valley factor for a regular hip roof where both roof planes share the same pitch.
Rafter length formulas
- Slope factor = square root (1 + (pitch / 12) squared)
- Common rafter length = (run - ridge thickness / 2) x slope factor
- Tail length = horizontal overhang x slope factor
- Total rafter length = common rafter length + tail length
- Total rise = run x pitch / 12
- Birdsmouth heel cut = seat length x pitch / 12
- Hip or valley factor = square root (pitch squared + 288) / 12