Slope Calculator

Slope = rise ÷ run. A 1 ft rise over 12 ft run = 8.33% grade, 4.76° angle, 1:12.00 ratio. ADA ramps max 1:12; IRC stairs max 1:8; roof pitch 6:12 = 26.57°. Enter any rise/run → all formats instantly. Drainage: 1–2% min (⅛″–¼″/ft). ADA ramps: 1:12 max (8.33%). Stairs: 1:8 max (12.5%). Measure horizontal run, not slope distance.

Units

Slope result

8.33% grade, 4.76° angle, 1:12.00 ratio

Example values. Enter your measurements above to see your result.

Slope (rise : run)
1 : 12.00
Grade (percentage)
8.33%
Angle
4.76° (4° 45' 49")
Ratio (rise per 1 run)
0.0833 : 1
Grade category
Gentle
Rise needed for 1:12 over this run
1.00 ft
Run needed for 1:12 with this rise
12.00 ft

Grade: gentle (8.33%)

Angle: 4.76° = 4° 45' 49"

ADA accessible ramp max: 1:12 (8.33%, 4.76°)

IRC max stair slope: 1:8 (12.5%)

45° = 100% grade = 1:1

63.4° = 200% grade = 2:1

Standard roof pitch 2:12 = 16.7% (9.46°)

Standard roof pitch 6:12 = 50% (26.57°)

Standard roof pitch 12:12 = 100% (45°)

Slope = rise ÷ run. Grade % = (rise ÷ run) × 100. Angle = arctan(rise ÷ run).

Always measure horizontal run, not slope distance. On a 20% grade, 100 ft tape reads 102 ft along slope.

For drainage: 1–2% minimum (1/8"–1/4" per ft). For ADA ramps: 1:12 max (8.33%).

Checked by the Yardstick Math team · How we check

Need to calculate fill or cut volume for that slope? Use the dirt calculator.

Worked examples

ADA ramp check — 1 ft rise over 12 ft run

  1. Ratio = 1 ÷ 12 = 0.0833
  2. Grade = 0.0833 × 100 = 8.33%
  3. Angle = arctan(0.0833) = 4.76°
  4. Ratio 1:X = 12 ÷ 1 = 12 → 1:12

Result: 8.33% grade, 4.76° angle, 1:12 ratio. PASS: meets ADA 1:12 max.

Checked by the automated test “slope — 1 ft rise, 12 ft run → 8.33%, 4.76°, 1:12 ratio, gentle grade”.

Roof pitch 6:12 to grade and angle

  1. Ratio = 6 ÷ 12 = 0.5
  2. Grade = 0.5 × 100 = 50%
  3. Angle = arctan(0.5) = 26.565° ≈ 26° 33' 54"

Result: 50% grade, 26.57° angle, 1:2 ratio (or 2:12 pitch).

Checked by the automated test “slope — 6 ft rise, 12 ft run → 50%, 26.57°, 1:2 ratio, steep grade”.

Drainage slope — 2% over 50 ft run

  1. Target grade = 2% = 0.02 ratio
  2. Required rise = 0.02 × 50 = 1 ft
  3. Angle = arctan(0.02) = 1.146°

Result: 1 ft rise over 50 ft run = 2% grade, 1.15° angle. Meets minimum drainage slope.

Checked by the automated test “slope — 1 ft rise, 50 ft run → 2%, 1.146°, gentle grade”.

Metric — 30 cm rise over 5 m run (drainage)

  1. Rise = 30 cm, run = 5 m = 500 cm
  2. Ratio = 30 ÷ 500 = 0.06
  3. Grade = 0.06 × 100 = 6 %
  4. Angle = arctan(0.06) = 3.43°
  5. Ratio 1:X = 500 ÷ 30 = 16.7 → 1:16.7

Result: 6 % grade, 3.43° angle, 1:16.7 ratio. Exceeds 2 % minimum drainage slope.

Checked by the automated test “slope — 30 cm rise, 5 m run → 6%, 3.43°, 1:16.7 ratio, moderate grade”.

Patio drainage — 2% fall over the 16 ft run of a 12 × 16 ft patio

  1. Required rise = 0.02 × 16 = 0.32 ft (3.84 in)
  2. Ratio = 0.32 ÷ 16 = 0.02
  3. Grade = 0.02 × 100 = 2%
  4. Angle = arctan(0.02) = 1.146°
  5. Ratio 1:X = 16 ÷ 0.32 = 50 → 1:50

Result: Drop 0.32 ft (3.84 in) over the 16 ft run = 2% grade, 1.146° angle, 1:50 ratio, gentle grade.

Checked by the automated test “slope — 0.32 ft rise, 16 ft run → 2%, 1.146°, 1:50 ratio, gentle grade”.

Driveway grade check — 4 ft rise over a 50 ft run

  1. Ratio = 4 ÷ 50 = 0.08
  2. Grade = 0.08 × 100 = 8%
  3. Angle = arctan(0.08) = 4.57°
  4. Ratio 1:X = 50 ÷ 4 = 12.5 → 1:12.5

Result: 8% grade, 4.57° angle, 1:12.5 ratio, gentle grade — below the IRC 1:8 (12.5%) stair max.

Checked by the automated test “slope — 4 ft rise, 50 ft run → 8%, 4.57°, 1:12.5 ratio, gentle grade”.

How it works

Slope ratio (decimal) = rise ÷ run

Grade percentage = (rise ÷ run) × 100

Angle (degrees) = arctan(rise ÷ run) × (180/π)

Ratio 1:X = run ÷ rise (run per 1 unit rise)

Ratio X:1 = rise ÷ run (rise per 1 unit run)

Assumptions

  • Rise and run are measured in the same units (feet or meters). The calculator accepts both.
  • Run is horizontal distance, NOT slope distance. On a 20% grade, a 100-ft tape reads 102 ft along the slope — the horizontal run is 100 ft.
  • Angle is calculated via arctan(rise/run) and converted to degrees. DMS (degrees/minutes/seconds) uses standard conversion.
  • Grade categories: level <1%, gentle 1–5%, moderate 5–10%, steep 10–15%, very steep 15–30%, extreme ≥30% (FHWA / common practice).

Reference table

Common slopes in construction (rise:run → grade %, angle, ratio 1:X)
DescriptionRise:RunGrade %Angle
ADA ramp maximum1:128.33%4.76°
IRC stair maximum1:812.5%7.13°
Minimum drainage (⅛″/ft)1:961.04%0.60°
Standard drainage (¼″/ft)1:482.08%1.19°
Roof 2:12 pitch2:1216.67%9.46°
Roof 4:12 pitch4:1233.33%18.43°
Roof 6:12 pitch6:1250.0%26.57°
Roof 8:12 pitch8:1266.67%33.69°
Roof 12:12 pitch (45°)12:12100.0%45.00°
1:1 (45°)1:1100.0%45.00°
2:12:1200.0%63.43°
Steep slope (landslide risk)3:1300.0%71.57°

Grade % = (rise/run)×100. Angle = arctan(rise/run). Ratio 1:X = run/rise. ADA = Americans with Disabilities Act; IRC = International Residential Code.

Slope, Grade & Angle — Instant Conversion

Slope = rise ÷ run. Enter any rise and run → grade %, angle, and ratio instantly.

Input Formula Example (1 ft rise, 12 ft run)
Ratio (decimal) rise ÷ run 1 ÷ 12 = 0.0833
Grade % (rise ÷ run) × 100 8.33%
Angle arctan(rise ÷ run) 4.76° (4° 45′ 36″)
Ratio 1:X run ÷ rise 1:12
Ratio X:1 rise ÷ run 1:12 (same as 0.0833:1)

Quick Reference — Common Construction Slopes

Description Rise:Run Grade % Angle Ratio 1:X
ADA ramp maximum 1:12 8.33% 4.76° 1:12
IRC stair maximum 1:8 12.5% 7.13° 1:8
Minimum drainage (⅛″/ft) 1:96 1.04% 0.60° 1:96
Standard drainage (¼″/ft) 1:48 2.08% 1.19° 1:48
Roof 2:12 pitch 2:12 16.67% 9.46° 1:6
Roof 4:12 pitch 4:12 33.33% 18.43° 1:3
Roof 6:12 pitch 6:12 50.0% 26.57° 1:2
Roof 8:12 pitch 8:12 66.67% 33.69° 1:1.5
Roof 12:12 pitch (45°) 12:12 100.0% 45.00° 1:1
1:1 (45°) 1:1 100.0% 45.00° 1:1
2:1 2:1 200.0% 63.43° 1:0.5
Steep slope (landslide risk) 3:1 300.0% 71.57° 1:0.33

Grade % = (rise/run)×100. Angle = arctan(rise/run). Ratio 1:X = run/rise.


Worked Examples

Example 1 — ADA Ramp Compliance Check

Situation: You have a 24″ (2 ft) rise and 22 ft of available run.

  1. Ratio = 2 ÷ 22 = 0.0909
  2. Grade = 0.0909 × 100 = 9.09%
  3. Angle = arctan(0.0909) = 5.20°
  4. Ratio 1:X = 22 ÷ 2 = 1:11 Result: 9.09% grade, 5.20° angle, 1:11 ratio. FAIL — exceeds ADA 1:12 (8.33%) max. Need 24 ft run for 2 ft rise.

Example 2 — Roof Pitch to Angle

Situation: Plans show 8:12 pitch. What’s the angle?

  1. Ratio = 8 ÷ 12 = 0.6667
  2. Grade = 0.6667 × 100 = 66.67%
  3. Angle = arctan(0.6667) = 33.69° (33° 41′ 24″) Result: 8:12 pitch = 66.67% grade = 33.69° angle.

Example 3 — Drainage Slope Over Distance

Situation: Need 2% slope across a 60-ft patio.

  1. Target ratio = 2% = 0.02
  2. Required rise = 0.02 × 60 = 1.2 ft (14.4″)
  3. Angle = arctan(0.02) = 1.15° Result: Drop 1.2 ft over 60 ft = 2% grade, 1.15° angle.

Common Questions

How do I calculate slope from rise and run?

Divide rise by run for the decimal ratio. Multiply by 100 for grade %. Use arctan(rise/run) for degrees. Example: 3 ft rise / 12 ft run = 0.25 = 25% = 14.04°.

How do I calculate grade percentage?

Grade % = (rise ÷ run) × 100. Units must match. Example: 6″ rise over 12 ft run → 0.5 ft ÷ 12 ft = 0.04167 × 100 = 4.17%.

How do I convert roof pitch to degrees?

Roof pitch is rise:12. Angle = arctan(rise/12) × (180/π). 4:12 = 18.43°, 6:12 = 26.57°, 8:12 = 33.69°, 12:12 = 45°.

What is the maximum ADA ramp slope?

1:12 (8.33% grade, 4.76°). For every 1″ rise, need 12″ run. 24″ rise → 24 ft run. Cross-slope ≤ 1:48 (2.08%).

What is the maximum stair slope per building code?

IRC R311.7: max riser 7¾″, min tread 10″ → slope ≈ 77.5% grade = 37.8°. The 1:8 (12.5%) rule applies to overall stair run. Check local amendments.


Before You Build


Sources


Need to calculate fill or cut volume for that slope? Use the dirt calculator.

Common mistakes

Frequently asked questions

How do I calculate slope from rise and run?

Divide rise by run to get the decimal ratio. Multiply by 100 for grade percentage. Use arctan(rise/run) for angle in degrees. Example: 3 ft rise / 12 ft run = 0.25 ratio = 25% grade = 14.04° angle.

How do I calculate grade percentage?

Grade % = (rise ÷ run) × 100. Rise and run must be in the same units. Example: 6″ rise over 12 ft run → 0.5 ft ÷ 12 ft = 0.04167 × 100 = 4.17% grade.

How do I convert roof pitch to degrees?

Roof pitch is rise:12 (e.g., 6:12). Angle = arctan(rise/12) × (180/π). 4:12 = 18.43°, 6:12 = 26.57°, 8:12 = 33.69°, 12:12 = 45°.

What is the maximum ADA ramp slope?

1:12 (8.33% grade, 4.76° angle). For every 1″ of rise, you need 12″ of run. A 24″ rise requires 24 ft of ramp run. Cross-slope must not exceed 1:48 (2.08%).

What is the maximum stair slope per building code?

IRC R311.7: maximum riser 7¾″, minimum tread 10″ → slope ≈ 7.75/10 = 0.775 = 77.5% grade = 37.8°. The 1:8 (12.5%) rule of thumb applies to the overall stair run, not individual steps. Check local amendments.

Sources

Formula, examples and sources checked on by the Yardstick Math team. How we check our formulas.

  1. Handbook 44, Appendix B.8 – Factors for Units of Measurement — NIST, accessed
  2. Americans with Disabilities Act (ADA) Standards for Accessible Design, §405 Ramps — U.S. Department of Justice, accessed
  3. International Residential Code (IRC) R311.7 – Stairways — International Code Council, accessed
  4. Roadway Design – Grades and Cross Slopes — FHWA, accessed
  5. Roof Slope / Pitch Conversion — NRCA (National Roofing Contractors Association), accessed