Roof pitch calculator: angle, roof squares and rafter length

Enter a pitch any way you have it. Get degrees, percent, the slope multiplier, roof squares and rafter length, with the math shown.

1. Pitch

Units
Rise
Run
Span
Outside wall to outside wall. Assumes a symmetric gable.
A fraction such as 1/4 or 1/3, or a decimal such as 0.25.

Enter a pitch to see results.

Show your work

2. Roof area

Footprint
Roof shape
Length (along the ridge)
Width (across the ridge, the building span)
Eave overhang, measured horizontally
Rake overhang, measured horizontally

Enter the roof size to see results.

Show your work

3. Rafter length

Common rafter on a symmetric gable.

Span (outside of wall plate to outside of wall plate)
Ridge thickness
1-1/2 in for a 2x ridge board. Enter 0 if rafters meet with no ridge board.
Overhang, horizontal projection past the wall

Enter the span to see results.

Show your work

This calculator does geometry only. It does not size rafters, check spans or loads, or replace a roofer's measurement or a building inspection. Roof area assumes every roof plane has the same pitch, so measure dormers, valleys and other pitches separately. Minimum slopes are from the 2024 International Residential Code (IRC), Section R905, and are for information only. Your local code edition and amendments, and the roofing manufacturer's installation instructions, take precedence. Check with your local building department before you build or re-roof.

How it works

Enter the pitch as rise and run, x:12, degrees, percent, rise and span, or a traditional fraction like 1/4. The calculator turns it into one slope ratio and uses it for the roof area and the rafter. Each section updates as you type and shows its math with your numbers in "Show your work".

How we calculate it

These are the lines in the "Show your work" panels, in the same order. s is the slope ratio, rise ÷ run, with both in the same unit.

Pitch

Roof area

Rafter length

Feet and inches are rounded once, on the total, to the nearest 1/16 in. The math uses unrounded values, so the last digit may differ from multiplying the rounded numbers shown. Minimum slopes for the material you pick come from the 2024 IRC, Section R905. Sources: right-triangle trigonometry; traditional pitch from InterNACHI, "Measuring Roof Slope and Pitch"; roofing square from ASTM D1079; minimum slopes from the 2024 IRC, Chapter 9.

Roof pitch chart

PitchDegreesPercentMultiplierTraditional
1:124.76°8.3 %1.00351/24
2:129.46°16.7 %1.01381/12
3:1214.04°25.0 %1.03081/8
4:1218.43°33.3 %1.05411/6
5:1222.62°41.7 %1.08335/24
6:1226.57°50.0 %1.11801/4
7:1230.26°58.3 %1.15777/24
8:1233.69°66.7 %1.20191/3
9:1236.87°75.0 %1.25003/8
10:1239.81°83.3 %1.30175/12
11:1242.51°91.7 %1.356611/24
12:1245.00°100.0 %1.41421/2
13:1247.29°108.3 %1.474313/24
14:1249.40°116.7 %1.53667/12
15:1251.34°125.0 %1.60085/8
16:1253.13°133.3 %1.66672/3
17:1254.78°141.7 %1.734117/24
18:1256.31°150.0 %1.80283/4
19:1257.72°158.3 %1.872719/24
20:1259.04°166.7 %1.94375/6
21:1260.26°175.0 %2.01567/8
22:1261.39°183.3 %2.088311/12
23:1262.45°191.7 %2.161923/24
24:1263.43°200.0 %2.23611

Generated from the same formulas as the calculator. The row for your pitch is highlighted.

How to measure roof pitch

In the attic, hold a 12 in level against a rafter and measure the drop from the end of the level to the rafter. That number is x in x:12. Or lay a phone inclinometer on the roof surface and enter the reading in degrees.

Questions

How do I find my roof pitch from the ground or the attic?

In the attic, hold a 12 in level against the underside of a rafter, with one end touching it. Measure straight down from the other end of the level to the rafter. That drop in inches is the x in x:12. On the roof, lay a phone inclinometer on the surface and enter the reading in degrees. Counting siding courses on the gable end is only a rough check.

Is 3/12 too low for shingles?

Not under the code. The 2024 IRC (R905.2.2) allows asphalt shingles down to 2:12. From 2:12 up to, but not including, 4:12, it requires double underlayment (R905.1.1). NRCA recommends 3:12 as a practical minimum, as quoted in JLC. The shingle maker's installation instructions and your local code also apply. Pick a material in the calculator to see its minimum.

What is the difference between pitch and slope? Is 1/4 pitch the same as 6:12?

Yes, on a symmetric gable. Slope is rise ÷ run, written like 6:12. Traditional pitch is rise ÷ span. The span is twice the run, so 6 in of rise per 12 in of run is 6 ÷ 24 = 1/4 pitch (InterNACHI). Choose "Traditional pitch" in the calculator to convert either way.

How many squares is my roof, and does my quote look right?

A square is 100 ft² of roof surface. Take the footprint including overhangs, multiply by the slope multiplier, and divide by 100. Then add waste, often 10-15 %. A 50 × 30 ft hip-roof ranch at 6:12 with 1 ft overhangs is 52 × 32 × 1.1180 = 1,860 ft². That is 18.6 squares, or about 20.5 with 10 % waste. If a quote is far above your number, ask what it includes, such as sheds, porches or a higher waste factor.

How long is a rafter for a 24 ft span at 6:12?

With a 1-1/2 in ridge board and a 1 ft 4 in overhang, the run is (288 − 1.5) ÷ 2 = 143.25 in. The line length is 143.25 × 1.118034 = 160.158 in, or 13' 4-3/16". The tail is 16 × 1.118034 = 17.889 in, or 1' 5-7/8", so the total is 14' 10-1/16" before cuts. Birdsmouth and ridge plumb-cut allowances are not included. The calculator does not size rafters or check spans.