dailyfigs

Roof pitch calculator

A rise of 6 in over a run of 12 in is a 6/12 pitch: 26.6°, or a 50.0% slope.

Works in feet and inches or metres and centimetres, for projects in the United States and Canada. Unit conversions are exact; other constants are named with their source. Checked 6 December 2026. Sources

Units
What do you know?

How far the roof goes up over the run.

How far it goes across. Measuring over 12 inches gives the pitch directly.

The angle between the roof and a flat line.

Wall to wall, for the rafter length and the ridge height. Leave it blank to skip.

Your roof pitch

6/12, 26.6°

Pitch
6/12
Angle
26.6°
Percent slope
50.0%
Pitch factor
1.1180
Rafter length
13.42 ft
Ridge height
6.00 ft
Asphalt shingles, IRC 2021
Allowed
Roof pitch6/12

The IRC applies where your state or city has adopted it, sometimes with changes. The maker of your roofing can ask for more.

How this is worked out

  1. Slope: 6 ÷ 12 = 0.5000. Rise and run only need the same unit.
  2. Pitch: 0.5000 × 12 = 6 in 12, written 6/12.
  3. Angle: arctan(0.5000) = 26.6°.
  4. Percent slope: 0.5000 × 100 = 50.0%.
  5. Pitch factor: √(1 + 0.5000²) = 1.1180. Multiply a flat length or area by it to get the length or area along the slope.
  6. Run of each rafter: 24 ft ÷ 2 = 12 ft.
  7. Rafter length, wall to ridge: 12 × 1.1180 = 13.42 ft, before any overhang.
  8. Ridge height above the top of the walls: 12 × 0.5000 = 6.00 ft.
  9. IRC 2021 at 6/12: every covering in the table below is allowed.

Lowest pitch for each roof covering

The 2021 International Residential Code sets the lowest slope each covering may be laid on. Below the figure, the covering is not allowed; asphalt shingles and clay or concrete tile also need a double layer of underlayment until the roof reaches 4/12.

Minimum roof slope, IRC 2021
CoveringLowest pitchSection
Metal roof panels, standing seam¼/12R905.10.2
Metal roof panels, lapped, with lap sealant½/12R905.10.2
Mineral-surfaced roll roofing1/12R905.5.2
Asphalt shingles2/12; double underlayment up to 4/12R905.2.2
Clay and concrete tile2½/12; double underlayment up to 4/12R905.3.2
Metal roof shingles3/12R905.4.2
Wood shingles3/12R905.7.2
Wood shakes3/12R905.8.2
Metal roof panels, lapped, no lap sealant3/12R905.10.2
Slate shingles4/12R905.6.2

The IRC applies only where a state or city has adopted it, sometimes with changes. The maker’s instructions for your roofing can ask for a steeper roof, and your building department has the final word.

Roof angle to pitch

Pitch is the rise for every 12 of run, so it is tan(angle) × 12. The percent slope is tan(angle) × 100.

Angle, pitch and percent slope
AnglePitchPercent slope
5°1.05/128.7%
10°2.12/1217.6%
15°3.22/1226.8%
20°4.37/1236.4%
25°5.60/1246.6%
30°6.93/1257.7%
35°8.40/1270.0%
40°10.07/1283.9%
45°12/12100.0%

Measuring the pitch

  1. Hold a level flat against the underside of a rafter, or lay it on the roof.
  2. Mark 12 inches along the level from where it touches.
  3. Measure straight up from the mark to the rafter or the roof. That height in inches is the pitch: 5 inches is a 5/12 roof.

Questions

What is a 4/12 roof pitch in degrees?

18.4°. The roof rises 4 inches for every 12 inches across, a 33.3% slope.

What is the minimum pitch for asphalt shingles?

2/12 under the 2021 International Residential Code (R905.2.2). From 2/12 up to 4/12, the code asks for a double layer of underlayment.

How do I convert a roof angle to pitch?

Multiply tan(angle) by 12. A 30° roof is tan(30°) × 12 = 6.93, about a 7/12 pitch.

What is a 12/12 roof pitch?

A roof that rises as much as it runs: 12 inches up for every 12 inches across. It slopes at 45°, a 100% slope.

Sources

Checked on 6 December 2026. If a figure here differs from the official page, the official page is right; please tell us.