framercalc

Rafter calculator

Common rafter length, rise and plumb cut angle from the span and the pitch, with the overhang and ridge board.

Rafters

Common rafter length, rise and cut angle from the building's span and the roof pitch, with the overhang.

How it is worked out

Run = half the span less half the ridge board. Rafter length along its line = run × √(1 + (pitch ÷ 12)²), and the overhang adds its own run times the same factor. Rise = run × pitch ÷ 12. The plumb cut is the pitch angle, atan(pitch ÷ 12), which is the figure on the common scale of a speed square. Lengths are along the rafter's measuring line; cut the birdsmouth so the seat sits fully on the wall plate.

How to use it

Enter the building span from the outside of one wall plate to the outside of the other, the roof pitch as inches of rise per 12 in of run, the level run of the overhang and the thickness of the ridge board. The calculator gives the rafter's length along its measuring line, with and without the overhang, the rise to the ridge and the plumb cut angle.

Pitch chart

PitchAngleRafter length per foot of runRise per foot of run (in)
2/129.46°12.17 in (1.0138 ×)2
3/1214.04°12.37 in (1.0308 ×)3
4/1218.43°12.65 in (1.0541 ×)4
5/1222.62°13.00 in (1.0833 ×)5
6/1226.57°13.42 in (1.1180 ×)6
7/1230.26°13.89 in (1.1577 ×)7
8/1233.69°14.42 in (1.2019 ×)8
9/1236.87°15.00 in (1.2500 ×)9
10/1239.81°15.62 in (1.3017 ×)10
12/1245.00°16.97 in (1.4142 ×)12
14/1249.40°18.44 in (1.5366 ×)14
16/1253.13°20.00 in (1.6667 ×)16

Multiply the length per foot of run by the run in feet to get the rafter length. The angle is the plumb cut; the seat cut of the birdsmouth is square to it.

Sizing the rafter

The length tells you what to cut, not what size of lumber to use. Rafter size and spacing come from the span tables (IRC R802.4) for your snow load, roof covering and wood species, or from an engineer.

Code figures here are from the 2021 International Residential Code (IRC), which most US states and towns adopt, sometimes with changes. Check your local code and permit before you build, and use the span tables and an engineer for anything that carries a roof or floor load.