Skip to content
LoveToCalc

Roof pitch calculator

Type the pitch the way you have it, and read it in the other ways, along with the rafter length for your building.

Your numbers

Pitch given as

The angle from horizontal. 45° is as much up as across.

Between the two eaves walls, for a symmetric gable roof. An example value – type your own. Leave 0 if you only want the pitch.

How far the roof reaches past the wall, measured horizontally. Example value 0.

Result

Pitch in degrees

30

Put a second set of numbers beside this one and see the difference.

Pitch in percent
57.7
Ratio 1 : x
1.73
Rise per 12 of run
6.93
Roof surface compared with the ground under it (factor)
1.155
Ridge height above the eaves, m
2.31
Rafter length, m
4.62

The pitch is 30°, 57.7 %, 1 : 1.73, or 6.93 in 12. A building 8 m wide with 0 m overhang has a rafter of 4.62 m and a ridge 2.31 m above the eaves.

Worked as a right triangle: rise over run gives the pitch, and the rafter is the hypotenuse over half the width plus the overhang. The roof is taken as a symmetric gable with the same pitch on both sides. The rafter length is straight along the slope, with no allowance for joints, bearing, a ridge board or how the end is cut. Which pitch a roofing material may be laid at is for its maker and the building rules where you are – not for this page.

What this answers

A roof pitch is written in three ways: as an angle in degrees, as a percentage, and as a ratio such as 1 : 2 or “6 in 12”. They are one number — rise divided by run — in different clothes. This page converts between them, and if you give the width of the building it also works out the ridge height and the length of a rafter.

The three notations

The conversion goes through the tangent: percent = 100 · tan(angle). The tangent is rise over run in a right triangle.

The rafter

For a symmetric gable roof the rafter is the long side of a right triangle whose short sides are the rise and half the building’s width (plus the overhang, if the roof reaches past the wall):

Rafter = (width / 2 + overhang) / cos(angle)

Ridge height = (width / 2) · tan(angle)

The same factor, 1 / cos(angle), is how much larger the roof surface is than the ground under it — see roof area from pitch.

Worked example

A building 8 m wide with a pitch of 30°, and no overhang:

What is not included

Common questions

Why is 100% not 90°? Percent is rise over run, not rise over the slanted length. A rise equal to the run is 45°; a vertical wall would be an infinite percentage.

What does the 6 in “6/12” mean? Six units of rise for every twelve units of run, in any unit. It is the same as 1 : 2, 50% or 26.6°.

Last reviewed October 20, 2026 ·How pages are reviewed

The formula behind this

All everyday calculators

Put this calculator on your site

Copy the code into your page where the calculator should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.