Roof Pitch Calculator
Work out a roof's pitch from a rise and run, an angle, a grade, two wall heights, or your phone. Every formula and the test cases behind it are on this page.
By Marko Visic, BSc Physics · Updated November 25, 2026
Enter your measurements and press Calculate. The rise and run start filled in, so your first result is one tap away.
Roof pitch is the rise per 12 in of run, written like 6:12[1]. This tool returns that pitch, the angle in degrees, the percent grade, the pitch multiplier and hip/valley factor, and which roof coverings the IRC allows at that slope.
How to calculate roof pitch

Drawing: CalculateMyRoof · CC BY 4.0 · How to reuse
Pitch compares how far a roof rises to how far it runs horizontally. It is written as the rise per 12 in of run, so a 6:12 roof rises 6 for every 12 of run.[1] Three formulas turn a rise and run into the numbers you need:
- pitch = rise ÷ run × 12
- grade % = rise ÷ run × 100
- angle = arctan(rise ÷ run)
Enter the angle or the grade instead and the tool works backward to the :12 pitch, rounded to the nearest 1/8. To measure the rise and run on your own roof first, follow the step-by-step guide to measuring roof pitch.
Roof pitch to degrees and back
Every whole pitch from 1:12 to 12:12, with its angle, grade, pitch multiplier, and hip/valley factor, all from the same engine the tool uses. The full 1:12 to 24:12 chart, plus a degrees-to-pitch table, is on the roof pitch chart.
| Pitch | Angle = atan(rise ÷ 12) | Grade % = rise ÷ 12 × 100 | Mult. = √(rise² + 12²) ÷ 12 | Hip/valley = √(rise² + 2 × 12²) ÷ 12 |
|---|---|---|---|---|
| 1:12 | 4.76° | 8.3% | 1.0035 | 1.4167 |
| 2:12 | 9.46° | 16.7% | 1.0138 | 1.4240 |
| 3:12 | 14.04° | 25.0% | 1.0308 | 1.4361 |
| 4:12 | 18.43° | 33.3% | 1.0541 | 1.4530 |
| 5:12 | 22.62° | 41.7% | 1.0833 | 1.4743 |
| 6:12 | 26.57° | 50.0% | 1.1180 | 1.5000 |
| 7:12 | 30.26° | 58.3% | 1.1577 | 1.5298 |
| 8:12 | 33.69° | 66.7% | 1.2019 | 1.5635 |
| 9:12 | 36.87° | 75.0% | 1.2500 | 1.6008 |
| 10:12 | 39.81° | 83.3% | 1.3017 | 1.6415 |
| 11:12 | 42.51° | 91.7% | 1.3566 | 1.6853 |
| 12:12 | 45.00° | 100.0% | 1.4142 | 1.7321 |
Worked example
Say you measure a 10° slope with the phone mode. The tool runs tan(10°) × 12 = 2.1159, so the pitch is 2.12:12 (nearest 1/8: 2 1/8). The grade is 17.6% (tan(10°) × 100 = 17.6), the multiplier 1.0154, and the hip/valley factor 1.4252.
At 2.12:12 (tan(10°) × 12 = 2.12), the IRC allows asphalt shingles (double underlayment), mineral-surfaced roll roofing, built-up, coal-tar built-up, metal panels with lap sealant, standing-seam metal, modified bitumen, single-ply, spray polyurethane foam, and liquid-applied; it does not allow clay and concrete tile, metal roof shingles, slate, wood shingles, wood shakes, and lapped metal panels without sealant. See the coverings table for each one's section.
Shed and lean-to roofs
A shed or lean-to roof slopes one way, from a high wall to a low wall. Enter both wall heights and the span between them in the Shed mode, and the pitch is the height difference over the span. A low wall of 8 ft and a high wall of 10 ft across a 12 ft span gives a 2:12 pitch, a 9.46° slope (atan(2 ÷ 12) = 9.46°). Overhangs add to the sloped length but not to the pitch.
Measure pitch with your phone
The Phone mode reads your device's motion sensor in the browser, so there is no app to install. Lay the phone flat on the roof surface or along a rafter and it reports the tilt from level, which it converts to a pitch. The reading depends on the surface and your phone's sensor, so treat it as a quick check and confirm it with a level. Motion sensors only report on a secure (https) connection, and some devices do not report tilt at all; where that happens the tool says so and points you back to the other modes.
Roof coverings your pitch allows
The 2024 IRC sets a minimum slope for each roof covering; below it, the covering is not approved. The tool flags the ones your pitch meets. Here is the full set, each row with its own code section.
| Covering | IRC minimum [2] |
|---|---|
| Asphalt shingles2024 IRC R905.2.2 · double underlayment 2:12 to 4:12 | 2:12 |
| Clay & concrete tile2024 IRC R905.3.2 · double underlayment 2 1/2:12 to 4:12 | 2 1/2:12 |
| Metal roof shingles2024 IRC R905.4.2 | 3:12 |
| Mineral-surfaced roll roofing2024 IRC R905.5.2 | 1:12 |
| Slate2024 IRC R905.6.2 | 4:12 |
| Wood shingles2024 IRC R905.7.2 | 3:12 |
| Wood shakes2024 IRC R905.8.2 | 3:12 |
| Built-up2024 IRC R905.9.1 | 1/4:12 |
| Built-up, coal-tar2024 IRC R905.9.1 | 1/8:12 |
| Metal panels, lapped (no sealant)2024 IRC R905.10.2 | 3:12 |
| Metal panels, lap sealant2024 IRC R905.10.2 | 1/2:12 |
| Standing-seam metal2024 IRC R905.10.2 | 1/4:12 |
| Modified bitumen2024 IRC R905.11.1 | 1/4:12 |
| Single-ply (EPDM, TPO)2024 IRC R905.12.1 | 1/4:12 |
| Spray polyurethane foam2024 IRC R905.13.1 | 1/4:12 |
| Liquid-applied2024 IRC R905.14.1 | 1/4:12 |
The code requires installation to the manufacturer's instructions (2024 IRC R905.1), and makers publish their own minimum slopes. IKO's Cambridge data sheet lists 2:12.[2][5] Your locally adopted code edition governs.
Pitch multiplier: from footprint to roof area
A sloped roof covers more surface than the flat footprint under it. The pitch multiplier is that ratio, so footprint area times the multiplier gives the roof area.
A 6:12 roof's multiplier is 1.1180 (√(6² + 12²) ÷ 12 = 1.1180), so a 1,000 sq ft footprint is 1,118 sq ft of roof (1,000 × 1.1180 = 1,118). Carry that multiplier into the roof area calculator to turn a footprint into squares.
Low-slope or steep? (OSHA)
For work on a construction site, OSHA sorts roofs by slope: a low-slope roof is 4 in 12 or less and a steep roof is more than 4 in 12.[3] These classes decide which fall protection workers need on a construction site; they are not rules for homeowners. For residential construction, OSHA's rule reads:[4]
Each employee engaged in residential construction activities 6 feet (1.8 m) or more above lower levels shall be protected by guardrail systems, safety net system, or personal fall arrest system unless another provision in paragraph (b) of this section provides for an alternative fall protection measure.
Use cases
- Checking a roofer's quote. Confirm the pitch a contractor wrote down, and that the covering they quoted is allowed at it.
- Picking a covering for a low porch roof. Read which coverings the code allows before you buy, instead of finding out after.
- Framing a shed or lean-to. Turn two wall heights and a span into a pitch and a sloped length for the rafters.
- Ordering rafters. Get the rafter line length along the slope, then cut it with the rafter length calculator.
- Matching an addition to the house. Measure the existing pitch with your phone so the new roof lines up.
How to read your results
The pitch is the headline, shown to two decimals and to the nearest 1/8. The angle and grade are the same slope in degrees and percent. The pitch multiplier scales a footprint up to roof area, and the hip/valley factor does the same for a hip or valley rafter. When a pitch sits within a hair of a code minimum, the tool says to measure again before ordering.
FAQ
How do I calculate roof pitch?
Divide the rise by the run and multiply by 12. A roof that rises 6 over a run of 12 is a 6:12 pitch. From an angle instead, the pitch is tan(angle) × 12.
What is a 4/12 roof pitch in degrees?
A 4/12 pitch is 18.43° (atan(4 ÷ 12) = 18.43°), a 33.3% grade (4 ÷ 12 × 100 = 33.3).
What roof pitch is 22.5 degrees?
A 22.5° slope is 4.97:12 (tan(22.5°) × 12 = 4.97), which rounds to 5:12.
Is a 10 degree roof pitch OK?
A 10° roof is 2.12:12 (tan(10°) × 12 = 2.12). At that pitch, the IRC allows asphalt shingles (double underlayment), mineral-surfaced roll roofing, built-up, coal-tar built-up, metal panels with lap sealant, standing-seam metal, modified bitumen, single-ply, spray polyurethane foam, and liquid-applied; it does not allow clay and concrete tile, metal roof shingles, slate, wood shingles, wood shakes, and lapped metal panels without sealant.[2] Whether it is right for your roof depends on the covering and your local code.
Is roof pitch the same as slope?
On this site, pitch is the rise per 12 in of run (the :12 ratio)[1] and grade is the slope as a percent. The calculator shows both from the same inputs, so you can use whichever a job asks for.
What is a roof pitch multiplier?
It is the factor that turns a flat footprint area into the sloped roof area, equal to √(1 + (rise ÷ run)²). A 6:12 roof multiplier is 1.1180 (√(6² + 12²) ÷ 12 = 1.1180).
What is the minimum pitch for shingles and for metal?
Asphalt shingles need 2:12[2], and from 2:12 to 4:12[2] they need double underlayment. Metal depends on the panel: lapped panels without sealant need 3:12, and standing-seam panels go down to 1/4:12.[2]
Methodology & sources
The methodology page sets out how every figure on the site is produced and checked. For this calculator:
How it works
The engine computes, for a rise and run:
- pitch = rise ÷ run × 12
- angle = arctan(rise ÷ run)
- grade % = rise ÷ run × 100
- multiplier = √(1 + (rise ÷ run)²)
- hip/valley = √(2 + (rise ÷ run)²)
Phone mode converts two tilt axes to a surface tilt with arccos(cos β × cos γ), then treats that as the angle.
Assumptions
The run defaults to 12 in[1]. Hip and valley lengths use a unit run of 16.97 in.[1] Rafter line lengths are along the slope only, before any seat, plumb, or ridge cuts. Code minimums are from the 2024 IRC; your adopted edition governs.
Verification
These cases are checked on every build; the site does not ship unless each one matches.
| Input | Expected output |
|---|---|
| 6:12 | 26.57° · 50.0% · multiplier 1.1180 · hip/valley 1.5000 |
| 4:12 | 18.43° · 33.3% · multiplier 1.0541 · hip/valley 1.4530 |
| 12:12 | 45.00° · 100.0% · multiplier 1.4142 · hip/valley 1.7321 |
| 3:12 | 14.04° · 25.0% · multiplier 1.0308 · hip/valley 1.4361 |
| 1:12 | 4.76° · 8.3% · multiplier 1.0035 · hip/valley 1.4167 |
| 30° | 6.93:12 (6 7/8) |
| 18.43° | 4.00:12 (4)shown 4.00:12; treated as the 4:12 limit, so measure again before ordering |
| 22.5° | 4.97:12 (5) |
| 10° | 2.12:12 (2 1/8) |
| 25% | 3.00:12 (3) |
| phone β 26.57°, γ 0° | tilt 26.57° |
| phone β 20°, γ 20° | tilt 27.99° |
| shed: low 8 ft, high 10 ft, span 12 ft, no overhang | 2.00:12 (2) · 9.46° · 16.7% · multiplier 1.0138 · slope 12.17 ft |
Limitations
This tool gives the geometry of a slope and the code minimums for coverings. It is not a structural check and not a substitute for a licensed design professional or your local building department. Phone readings carry no accuracy guarantee.
Sources
- [1] U.S. Navy, Naval Education and Training Professional Development and Technology Center. Builder Basic, NAVEDTRA 14043A (October 2010), Chapter 10: Rough Carpentry. p. 10-51, p. 10-74. Retrieved Nov 20, 2026. media.defense.gov
- [2] International Code Council. 2024 International Residential Code, Chapter 9: Roof Assemblies (Oct 2026 version). Sections R905.1.1, R905.2.2, R905.3.2, R905.4.2, R905.5.2, R905.6.2, R905.7.2, R905.8.2, R905.9.1, R905.10.2, R905.11.1, R905.12.1, R905.13.1, R905.14.1. Retrieved Oct 28, 2026. codes.iccsafe.org
- [3] U.S. Occupational Safety and Health Administration (eCFR). 29 CFR 1926.500, Scope, application, and definitions. 1926.500(b). Retrieved Oct 28, 2026. ecfr.gov
- [4] U.S. Occupational Safety and Health Administration (eCFR). 29 CFR 1926.501, Duty to have fall protection. 1926.501(b)(13). Retrieved Oct 14, 2026. ecfr.gov
- [5] IKO. Cambridge shingle technical data sheet (11/2023). Retrieved Oct 9, 2026. iko.com
Change log
Updated November 25, 2026: first published.
By Marko Visic, BSc Physics. Updated November 25, 2026.
Related