Roof Pitch Calculator

Convert rise and run into roof pitch and angle, and work out rafter length.

Example with the default inputs

Roof pitch 6/12 (26.6° · slope 50%)

Pitch6 in 12
Angle26.6°
Pitch factor1.118
Ridge height above walls7.5 ft
Rafter length (no overhang)16.77 ft

Inputs explained

Rise
Vertical rise over the run. Hold a level 12 in long against the roof and measure straight up to the roof surface.
Run
Horizontal distance for that rise. Use 12 in to read the pitch directly.
Building width (optional)
Wall-to-wall width of the building, to work out rafter length and ridge height for a gable roof.

Results explained

Pitch
Rise per 12 inches of run.
Angle
arctan(rise ÷ run), in degrees.
Rafter length
Half the span × the pitch factor, not counting overhang.

What roof pitch means

Pitch is how many inches the roof rises for every 12 inches it runs horizontally. A 6/12 roof rises 6 in per foot, an angle of about 26.6°.

How to measure it

Hold a 2-ft level horizontally with one end touching the roof, mark 12 in along it, and measure straight up from that mark to the roof. You can also measure on a rafter in the attic.

Common pitches

Learn more

More renovation

Remodel costs

Kitchen & bath

Flooring & walls

Roofing & exterior

Yard & garden