My Volume Calculator
What do you want to work out?

Rafter Calculator

Enter the building span, the roof pitch as rise per twelve inches of run or as an angle, the overhang and the ridge board thickness. The calculator returns the rise, the rafter length to the wall, the overhang along the slope, the ridge deduction and the cut length to the nearest sixteenth of an inch, plus the cut angles and a rafter count.

See also: find the area of a roof plane

Checked Rules used

How the rafter calculator works

The fields hold the worked example. Change any value and the result updates at once.

Outside to outside of the wall plates. The run of each rafter is half of it.

For example 6 for a 6/12 roof, or the angle in degrees if you chose degrees.

How far the rafter tail sticks out past the wall, measured level. Blank means 12 in (30 cm).

Common rafters only. Half of it is taken off each rafter at the ridge. Blank means none.

Choose a spacing to also count the rafters for the building length.

The length the rafters run along, for the count.

Result

Fill in the fields above to see the result and every step here.

Convert the roof area to squares and bundles →

Worked example: a gable roof

A gable roof with a 24 foot span, a 6 in twelve pitch and a 12 inch overhang has a rise of 72 inches and a rafter length to the wall of 161 inches along the slope. The overhang adds 13.4375 inches along the slope, and a ridge board 1.5 inches thick takes off 0.8125 inches, which gives a cut length of 173.5625 inches.

The pitch multiplier table

The slope factor is the length along the slope for each unit of run. A 6/12 roof has a factor of 1.118034, so a rafter with a 12 foot run is about 13.42 feet long before the overhang. The table gives the factor for whole-number pitches; the calculator uses the formula so it also works for in-between pitches and for degrees.

Slope factor by pitch (rise per 12 in of run)
PitchSlope factorPitchSlope factorPitchSlope factor
1/121.00359/121.250017/121.7341
2/121.013810/121.301718/121.8028
3/121.030811/121.356619/121.8727
4/121.054112/121.414220/121.9437
5/121.083313/121.474321/122.0156
6/121.118014/121.536622/122.0883
7/121.157715/121.600823/122.1619
8/121.201916/121.666724/122.2361

How the rafter length is worked out

A common rafter runs from the wall up to the ridge across half the span. Its length along the slope is that run times the slope factor, sqrt(1 + (rise/12)^2). The overhang you enter is measured level, so it is multiplied by the same factor to get its length along the slope. If there is a ridge board, half of its thickness, also measured along the slope, comes off at the top.

The cut length is the length to the wall plus the overhang along the slope, less the ridge deduction. Lengths are shown to the nearest 1/16 inch and in millimeters (0.0254 meters per inch). The roof angle and the plumb cut angle, measured from the edge of the rafter, are shown in degrees. With a spacing and a building length, the calculator also counts the rafters for both sides.

The steps of the worked example appear here.

What this page does not cover

This page gives the geometry of a common rafter on a symmetric gable roof, and nothing more. It does not size lumber, and it does not check span, deflection, snow or wind load. Birdsmouth cuts, hip rafters and valley rafters are not covered.

Check the cut lengths against your plans before you cut lumber, and use your local code or an engineer for rafter sizes and spans.

Method and sources

A common rafter runs from the wall to the ridge across half the span. Its length along the slope is the run times the slope factor, which is 1.118 for a pitch of six in twelve, taken from the formula sqrt(1 + (rise/12)^2). The overhang is converted to a length along the slope the same way, and half the ridge board thickness, also measured along the slope, is deducted at the ridge. Lengths are shown in inches and millimeters, using 0.0254 meters per inch.

What this calculator does not cover

  • Lengths of a common rafter on a symmetric gable roof. It does not size lumber, check span, deflection, snow or wind load.
  • Birdsmouth cuts, hip rafters, valley rafters and span tables are not covered.
  • Cut lengths are geometric; check them against your plans before you cut lumber.

Figures and calculation checked on Oct 11, 2026.

How we calculate · Official sources

Rafter calculator FAQ

What is a rafter length calculator?

It finds the length to cut a common rafter from the span and the pitch. Half the span is the run, and the rafter length is the run times the slope factor, plus the overhang along the slope and minus the ridge deduction. For a span of 24 feet at a pitch of 6 in twelve, the rafter to the wall is 161 inches.

How do you work out rafter length?

Turn half the span into inches, multiply by the slope factor for your pitch, add the overhang measured along the slope and subtract the ridge deduction. With no ridge board, the same roof gives a cut length of 174.4375 inches.

Results are estimates for planning. Check quantities with your supplier, and local building codes or a qualified professional for anything structural.