
How to Calculate Roof Pitch: A Trigonometry Guide for Roofers
Calculate roof pitch angles using trigonometry. Learn rise/run ratios, rafter length formulas, and building code requirements for roofing projects.
Run, ramp length, angle and slope percent from the rise, checked against the ADA 1:12 limit with the landings a long ramp needs.
Height from the lower surface to the upper surface
Fill this in to check the slope of an existing or space-limited ramp
Tip
Measure the rise with a level and tape from where the ramp will start, not from the bottom step: ground that falls away from the building adds rise.
Run (horizontal)
-
Ramp surface length
-
Angle
-
Slope
-
Ratio (rise : run)
-
Straight footprint incl. landings
-
ADA slope check
-
Runs and landings (30 in max rise per run)
-
A ramp is a right triangle lying on its side: the rise is the vertical leg, the run is the horizontal leg, and the walking surface is the hypotenuse. Slope is rise ÷ run, and the three ways of writing it (ratio, percent and degrees) are conversions of that one number.
run = rise × ratio (rise × 12 for a 1:12 ramp)
ramp length = √(rise² + run²)
angle = arctan(rise ÷ run)
slope % = rise ÷ run × 100
| Ratio | Angle | Percent | Run per 1 in of rise | Where it applies |
|---|---|---|---|---|
| 1:8 | 7.13° | 12.50% | 8 in | Existing buildings only, rise up to 3 in |
| 1:10 | 5.71° | 10.00% | 10 in | Existing buildings only, rise up to 6 in |
| 1:12 | 4.76° | 8.33% | 12 in | ADA maximum for new ramps |
| 1:16 | 3.58° | 6.25% | 16 in | Comfortable for manual wheelchairs |
| 1:20 | 2.86° | 5.00% | 20 in | Anything gentler is a walkway, not a ramp |
| Rise | Run | Ramp surface (ft) | Runs needed | Straight footprint with landings |
|---|---|---|---|---|
| 6 in | 6 ft | 6.02 | 1 | 16 ft |
| 12 in | 12 ft | 12.04 | 1 | 22 ft |
| 18 in | 18 ft | 18.06 | 1 | 28 ft |
| 24 in | 24 ft | 24.08 | 1 | 34 ft |
| 30 in | 30 ft | 30.10 | 1 | 40 ft |
| 36 in | 36 ft | 36.12 | 2 | 51 ft |
| 48 in | 48 ft | 48.17 | 2 | 63 ft |
| 60 in | 60 ft | 60.21 | 2 | 75 ft |
Footprint = run + a 60 in landing at the bottom, the top, and between runs. Switchback and L-shaped ramps need 60 × 60 in turning landings instead.
These figures come from section 405 of the 2010 ADA Standards for Accessible Design. The ADA applies to public and commercial facilities; for a private home your local residential code governs, and many jurisdictions adopt the same numbers. Confirm with your building department before you build.
The same triangle math drives the roof pitch calculator and the stair stringer calculator. To solve any other right triangle from two known values, use the right triangle calculator.
At the ADA maximum slope of 1:12 you need 12 inches of run for every inch of rise. A 24 in rise (about three steps) needs 288 in, or 24 ft, of sloped run. Add a 60 in landing at the top and bottom and the straight-line footprint is 34 ft.
A 1:12 slope is arctan(1/12) = 4.76° and 1 ÷ 12 = 8.33%. Ratio, angle and percent all describe the same steepness: percent is rise ÷ run × 100, and the angle is the inverse tangent of rise ÷ run.
Under the 2010 ADA Standards (section 405) a single ramp run may rise no more than 30 in, which is 30 ft of run at 1:12. Taller ramps are split into runs with a level landing between them. Landings are also required at the top and bottom of every run and wherever the ramp changes direction, where they must be at least 60 × 60 in.
Not quite. The run is the horizontal distance; the ramp surface is the hypotenuse, √(rise² + run²). At 1:12 the difference is small (a 288 in run has a 289 in surface), but it grows quickly on steeper ramps such as loading or shed ramps, so order decking from the sloped length.
Not for new ADA-covered construction. The ADA Standards allow 1:10 for a rise of up to 6 in and 1:8 for a rise of up to 3 in only in existing buildings where space is limited. Private homes are not covered by the ADA, but 1:12 is still the practical limit for an unassisted manual wheelchair user, and 1:16 to 1:20 is noticeably easier.
ADA requires handrails on both sides of any ramp run with a rise greater than 6 in. They must be 34 to 38 in above the ramp surface and extend 12 in horizontally beyond the top and bottom of the run. Always confirm with your local building department, which may have stricter rules.
Deepen your understanding of triangles and trigonometry with our guides and tutorials:

Calculate roof pitch angles using trigonometry. Learn rise/run ratios, rafter length formulas, and building code requirements for roofing projects.

Understand ladder safety mathematics. Learn why the 4-to-1 ratio creates the optimal 75-76° angle and prevents accidents through proper trigonometry.

Master the 3-4-5 method and learn when square, plumb, and straight matter most. Essential geometry for construction, carpentry, and DIY projects.

Square your foundation perfectly using the 3-4-5 method and diagonal measurements. Step-by-step guide for garages, decks, sheds, and buildings.

Master trigonometry word problems with this step-by-step framework. Learn to identify patterns and solve lighthouse, angle, and distance problems confidently.

Discover why triangles are the strongest shape in engineering and construction. Learn how this geometric principle powers cranes, bridges, and iconic structures.
Formulas and results last reviewed . How we check accuracy · Corrections log · Report an error