Rafter Length Calculator

Common rafter length along the slope from the run, pitch and overhang.

ft
/12
in
in
Load ticket
 
  •  
  •  
  •  
  •  
  •  

Run is the horizontal distance from the outside of the wall plate to the centre of the ridge. Add the overhang as a horizontal distance too. A 2x ridge board is 1.5 in thick.

Drawing updates as you type. Not to scale.

From run and pitch to rafter length

A common rafter is the long side of a right triangle. The run is the base, the rise is the height, and the rafter is the slope between them. Rise is the run times the pitch over 12, and the rafter length is the run times the pitch factor, the square root of 1 plus the pitch over 12, squared. A 12 ft run at 6/12 gives 13.42 ft.

The overhang adds to the horizontal run before you multiply. The ridge board takes a little off: it is thick, so each rafter stops half a thickness short of the centre line. The tool subtracts half the ridge thickness from the run, which shortens the rafter along the slope by that amount times the pitch factor.

The plumb cut angle at the ridge is the angle of the pitch, shown in degrees. Cut one rafter first and test it before cutting the rest.

Rafter length per foot of run

PitchPitch factorRafter per 12 in of run
4/121.05412.65 in
6/121.11813.42 in
8/121.20214.42 in
10/121.30215.62 in
12/121.41416.97 in

Plain geometry, no material numbers. Every number is listed on How we calculate.

Worked examples

  1. 12 ft run at 6/12, no overhang, no ridge deduction: 13.42 ft Open this job
  2. Same roof with a 12 in overhang and a 1.5 in ridge board: 14.46 ft Open this job
  3. 8 ft run at 9/12, a 6-8-10 triangle: 10.00 ft Open this job
  4. Rise of the 12 ft run at 6/12: 6.00 ft Open this job
  5. Plumb cut angle at 12/12: 45.00 degrees Open this job
This finds the length of a common rafter only. It does not size rafters or check spans, spacing or loads. Those come from your plans, your local building code and, where the code asks for one, an engineer.