Roof pitch calculator

Find a roof's pitch from its rise and run, or turn an angle into a pitch and back. See the pitch in 12, the angle, the slope as a percentage and the rafter factor as you type, with the sum shown.

Exact trigonometry, not a rounded lookup table, and it flags pitches too flat for asphalt shingles.

What you know

How far the roof climbs, and how far it goes level to do it. Plain numbers are inches; mark feet like 4' 6". With a level 12 inches long, the run is 12.
Free for your own website, with no account and no ads.

Put the roof pitch calculator on your website

Paste this code into an HTML or embed block on any page. Your visitors use the calculator right there, the same as here: free, no sign-up, no ads, and nothing they type is sent anywhere.

Preview it

It fits any width from a phone up to 640 px and grows to the calculator's height. The line under it links to this page, so your visitors can see where it comes from. Every calculator you can embed

Free calculator by Billsmith

Pitch6/12
Angle26.57°
See the working

Roof pitch, worked out

What pitch means

Pitch is how many inches a roof rises for every 12 inches it runs level. A 6/12 roof climbs 6 inches across each foot. The same slope can be said as an angle (26.57 degrees) or a percentage (50%), and this calculator gives all three.

The formulas

Pitch = rise ÷ run × 12. A roof that rises 4 feet over 8 feet of run is 4 ÷ 8 × 12 = 6/12.

Angle = arctan(rise ÷ run). For 6/12 that is arctan(0.5) = 26.57°. Back the other way, pitch = tan(angle) × 12.

Rafter factor = √(1 + (rise ÷ run)²). Run × factor = rafter length.

Common pitches

Common roof pitches with their angle, slope percentage and rafter length factor
PitchAngleSlopeFactor
1/124.76°8.33%1.0035
2/129.46°16.67%1.0138
3/1214.04°25%1.0308
4/1218.43°33.33%1.0541
5/1222.62°41.67%1.0833
6/1226.57°50%1.1180
7/1230.26°58.33%1.1577
8/1233.69°66.67%1.2019
9/1236.87°75%1.2500
10/1239.81°83.33%1.3017
11/1242.51°91.67%1.3566
12/1245.00°100%1.4142

Measuring it on the roof

Hold a level flat against the roof or a rafter and mark 12 inches along it. Measure straight down from that mark to the roof: that is the rise in 12, and the pitch. From the attic, measure the rise and run of a rafter instead and type both.

Pitch and shingles

The International Residential Code (R905.2.2) allows asphalt shingles only on 2/12 or steeper, and from 2/12 up to 4/12 only over double underlayment. Your local code and the shingle maker's instructions decide on your job.

From pitch to materials

The rafter factor is also how much more roof there is than footprint: a 6/12 roof has 1.118 times the area of the ground it covers. The roofing calculator uses it to count squares and bundles, and puts them on an estimate.

Questions

How do you calculate roof pitch?

Divide the rise by the run and multiply by 12. A roof that rises 4 feet over 8 feet of level run is 4 ÷ 8 × 12 = 6, a 6/12 pitch: it rises 6 inches for every 12 inches across.

What angle is a 6/12 roof pitch?

26.57 degrees: the arctangent of 6 ÷ 12. A 4/12 roof is 18.43 degrees, an 8/12 roof is 33.69 degrees and a 12/12 roof is 45 degrees.

How do I turn a roof angle into a pitch?

Take the tangent of the angle and multiply by 12. 30 degrees is tan(30°) × 12 = 0.5774 × 12 = 6.93, just under a 7/12 pitch.

What is a rafter length factor?

How much longer the roof is along the slope than across the level. It is √(1 + (rise ÷ run)²): 1.1180 for a 6/12 roof, so a rafter over 10 feet of level run is 11.18 feet long before any overhang.

What is the lowest pitch for asphalt shingles?

2/12 under the International Residential Code (R905.2.2), and from 2/12 up to 4/12 they need double underlayment. Your local code and the shingle maker's instructions decide on your job.