Calculators · Roof Pitch Calculator

Roofing

Roof Pitch Calculator

Enter rise and run, an angle or a slope percentage to get the pitch in x/12, the angle, the pitch factor and the rafter length.

The vertical height.

The horizontal distance, not measured along the slope.

Measured horizontally. Added to the run for the rafter length.

Pick a roof covering to compare your pitch with the code minimum.

How to calculate roof pitch

Roof pitch compares how much a roof rises with how far it runs. The rise is the vertical height. The run is the horizontal distance, measured level, from the outside of the wall to the point directly under the ridge. In the United States the pitch is quoted for a run of 12 inches, so a roof that rises 6 inches over 12 inches is a 6/12 roof. All the other measures come from the same ratio, which is the tangent of the roof angle:

What you getFormula
Pitch (x/12)rise ÷ run × 12
Anglearctangent of (rise ÷ run)
Slope in percentrise ÷ run × 100
Pitch factor√(1 + (rise ÷ run)²)
Rafter length(run + overhang) × pitch factor

The pitch factor is the number you multiply a horizontal length by to get the length along the slope. It also multiplies a floor-plan area to give the roof area. To turn your footprint into roof area, roofing squares and shingle bundles, use the roofing calculator. This page only handles the pitch itself and the rafter.

Example: a 28 ft wide house with the ridge 7 ft above the wall

The house is 28 ft wide. The ridge sits 7 ft above the top of the walls. The roof has a 1 ft overhang. In the calculator, use the tab "Total rise and span".

StepOperationResult
Run28 ÷ 214 ft
Pitch7 ÷ 14 × 126/12
Anglearctangent of (7 ÷ 14)26.57°
Slope7 ÷ 14 × 10050%
Pitch factor√(1 + 0.5²)1.1180
Rafter, no overhang14 × 1.118015.652 ft (15 ft 7 13/16 in)
Overhang along the slope1 × 1.11801.118 ft (1 ft 1 7/16 in)
Rafter with overhang(14 + 1) × 1.118016.771 ft (16 ft 9 1/4 in)

Roof pitch chart from 1/12 to 12/12

PitchAngleSlopePitch factorRafter for 12 ft of run
1/124.76°8.3%1.003512.04 ft
2/129.46°16.7%1.013812.17 ft
3/1214.04°25.0%1.030812.37 ft
4/1218.43°33.3%1.054112.65 ft
5/1222.62°41.7%1.083313.00 ft
6/1226.57°50.0%1.118013.42 ft
7/1230.26°58.3%1.157713.89 ft
8/1233.69°66.7%1.201914.42 ft
9/1236.87°75.0%1.250015.00 ft
10/1239.81°83.3%1.301715.62 ft
11/1242.51°91.7%1.356616.28 ft
12/1245.00°100.0%1.414216.97 ft

The last column is the theoretical rafter length for a horizontal run of 12 ft. For another run, multiply the pitch factor by that run.

Degrees to roof pitch

If you only know the angle, for example from a digital level, this table gives the matching pitch. The calculator handles any other angle in the "Angle" tab.

AnglePitchSlopePitch factor
5°1.05/128.7%1.0038
10°2.12/1217.6%1.0154
15°3.22/1226.8%1.0353
20°4.37/1236.4%1.0642
25°5.60/1246.6%1.1034
30°6.93/1257.7%1.1547
35°8.40/1270.0%1.2208
40°10.07/1283.9%1.3054
45°12.00/12100.0%1.4142

How to measure roof pitch

The easiest way is from the attic, with a level and a tape. Hold the level horizontal against the underside of a rafter. Mark 12 inches along the level, measure straight up or down from that mark to the rafter, and that distance in inches is the first number of the pitch. If it measures 6 inches, the roof is 6/12.

If you have the plans, the rise and the span are usually on the elevation drawing. Use the tab "Total rise and span" for that. If you only have an angle from a digital level, use the tab "Angle". Work from the attic or the eave rather than walking on the roof.

Minimum roof pitch by roof covering

Every roof covering has a lowest pitch it can be installed on. These are the minimum slopes in Chapter 9 of the International Residential Code (IRC), which we read in the 2024 edition and the 2021 edition in October 2026. The values are the same in both. The percentages are calculated here from the pitch.

Roof coveringMinimum pitchSlope
Mineral-surfaced roll roofing1/128.3%
Asphalt shingles2/1216.7%
Clay and concrete tile2 1/2 in 1220.8%
Metal roof shingles3/1225.0%
Wood shingles and shakes3/1225.0%
Slate shingles4/1233.3%
Metal panels, lapped seams, no sealant3/1225.0%
Metal panels, lapped seams with sealant1/2 in 124.2%
Standing-seam metal roof1/4 in 122.1%
Modified bitumen, single-ply and built-up (not coal-tar)1/4 in 122.1%

For asphalt shingles, the same section requires a double layer of underlayment between 2/12 and 4/12. For clay and concrete tile it requires it between 2 1/2 in 12 and 4/12. Coal-tar built-up roofs have their own, lower minimum that is not in the table. A manufacturer can ask for more pitch than the code does, and your town or state may use a different edition, so confirm both before you buy. Use the menu in the calculator to compare your own pitch with these values.

How the rafter length is calculated

The rafter, the rise and the horizontal run form a right triangle, so the rafter is the hypotenuse, which is the square root of run² + rise². That is the same as the run times the pitch factor. With a 12 ft run at 6/12 the rise is 6 ft, and √(12² + 6²) = 13.416 ft. The overhang counts as extra run, measured horizontally from the wall, which is why the calculator multiplies (run + overhang) by the factor.

The number is a theoretical length along the slope. A real rafter also gives up half the thickness of the ridge board at the top and has a birdsmouth cut where it sits on the wall, and the tail can be cut plumb or square. None of that is in the result, so mark and cut from the layout on site, not from this figure alone.

Frequently asked questions

What is roof pitch?

Roof pitch is how steep a roof is. In the United States it is written as the rise in inches for every 12 inches of horizontal run, such as 6/12 or 6:12. A 6/12 roof rises 6 inches for every 12 inches it runs, which is an angle of 26.57 degrees and a slope of 50%.

How do I calculate roof pitch?

Divide the rise by the run and multiply by 12. A roof that rises 7 ft over a run of 14 ft has a pitch of 7 ÷ 14 × 12 = 6, so it is a 6/12 roof. To get the angle, take the arctangent of rise ÷ run, which is 26.57 degrees in this example.

How steep is a 12/12 roof pitch?

A 12/12 roof rises 12 inches for every 12 inches of run, so the angle is 45 degrees and the slope is 100%. Its pitch factor is 1.4142, which means the sloped surface is 41.42% longer than the horizontal distance under it.

Is a 1/12 roof pitch OK?

It depends on the roof covering. A 1/12 pitch is 8.3% or 4.76 degrees. In the IRC (2021 and 2024 editions) asphalt shingles are limited to roof slopes of 2/12 or more, so 1/12 is below that minimum. The same code sets 1/4 in 12 as the minimum design slope for modified bitumen, single-ply and standing-seam metal roofs, and says mineral-surfaced roll roofing cannot go below 1/12. Your local code and the manufacturer instructions have the final word.

How do I convert degrees to a roof pitch?

Take the tangent of the angle and multiply by 12. For 30 degrees, tan 30° = 0.5774, and 0.5774 × 12 = 6.93, so it is about a 7/12 pitch. Choose the angle tab in the calculator and it does this for you. A 5 degree roof is only about 1.05/12.

How do I find the length of a rafter?

Multiply the run by the pitch factor, which is the square root of 1 plus (rise ÷ run) squared. With a run of 12 ft at 6/12, the rafter is 12 × 1.1180 = 13.416 ft, or about 13 ft 5 in. If there is an overhang, add it to the run first. The result is a theoretical length and does not include the ridge board, the birdsmouth cut or any plumb cut.

Can this calculator measure my roof pitch from a photo or an app?

No. It does not read photos, addresses or satellite images. You type the measurements and the math runs in your browser, so nothing you enter is sent anywhere. To measure the pitch yourself, hold a level horizontal against the underside of a rafter in the attic, mark 12 inches along the level, and measure straight up or down from that mark to the rafter. That distance in inches is the first number of the pitch, so 6 inches means a 6/12 roof. If you have the plans, use the total rise and the building span from the elevation drawing, or type the angle from a digital level.

We use our own technical cookies and, if you allow it, Google Analytics cookies to see which calculators are used most. Press “Accept” to allow analytics, “Reject” to refuse them or “Configure” to choose. If you don’t accept, we still measure visits without cookies and with approximate figures. You can change your mind at any time from the footer. More details in the cookie policy.