Roof Pitch Calculator: Slope and Rafter

A 6/12 roof pitch rises 6 units for every 12 units of horizontal run, or 50%.

Measurements and materials

Roof triangle

Results

Select Calculate to see results for your measurements.

Use your results

How it works

How to measure

Use the horizontal distance from the wall bearing line to the ridge line for one roof plane. On a symmetrical gable this is half the span between matching bearing lines. Measure the vertical difference between those same points for rise. If you already know the slope, choose x/12, degrees or percent and supply the horizontal run to get a length.

Formula

Let r = rise ÷ horizontal run. Pitch is 12r in 12, slope percentage is 100r, and angle is arctan(r) converted to degrees. Rafter length is √(run² + rise²). To start from degrees, use the tangent of the angle.

Worked example

A 12 ft horizontal run and 5 ft rise.

Pitch is 5/12, about 22.62° or 41.67%, and the diagonal is 13 ft.

What changes the result

Two roofs with the same pitch can have different length rafters. Measure each side of an off-centre ridge independently. A longer run increases both rise and rafter length for the same slope.

Assumptions and sources

The calculator starts with a 6/12 example.

The diagonal runs between the measured points. Rafter tails, ridge adjustments, seat cuts and structural design require separate measurements.

Use this estimate for planning. For engineering or code-compliance questions, consult a qualified professional.

Method version 1.0

Related calculators

Embed this calculator

Estimates for common sizes