Slope calculator: percent grade, degrees, ratio and rise over run (ramp, roof pitch, drain)
Rise + run → grade in %, degrees, 1:n ratio, mm/m and roof pitch x/12; or the ramp length and rise for a given slope.
- Instant
- Free
- Private (processed locally)
- No sign-up
Calculate a slope as a percent, in degrees or as a ratio
Driveways, wheelchair ramps, drain pipes, roofs, building lots and hiking trails all have a slope, but each trade writes it differently. Excavators use a percent grade, roofers use pitch in x/12, plumbers use inches per foot, railway engineers use per mille and the ADA uses a 1:12 ratio. This calculator gives every form at once from rise and run, or converts a slope you already know.
-
Pick the calculation
Slope from rise and run, convert a slope, find the rise for a given slope, or find the run needed to climb a height (ramp length).
-
Enter the measurements
Rise and distance in the same unit (ft, in, m, cm or mm). Enter a slope as a percent, degrees, a 1:n ratio, mm/m or roof pitch x/12.
-
Say how the distance was measured
Horizontally (on a plan) or along the slope (with a tape on the ground). The tool corrects for it.
-
Read and compare
Grade, angle, ratio, mm/m, pitch, lengths, a scale drawing and how your slope compares with common benchmarks.
Slope formulas
- Grade (%) = rise ÷ run × 100. 2.5 ft over 30 ft = 8.33%.
- Angle = arctan(rise ÷ run). 8.33% = arctan(0.0833) = 4.76°.
- Ratio 1:n: n = run ÷ rise. 8.33% = 1:12, one unit up for 12 across.
- Roof pitch = rise per 12 units of run = grade × 0.12. 33.33% = 4/12.
- Inches per foot = pitch ÷ 12. ¼ inch per foot = 2.08%.
- Sloped length = √(rise² + run²), the Pythagorean theorem. With a distance measured along the slope, run = √(length² − rise²).
A percent grade is not an angle: 100% = 45°, and doubling the percent does not double the angle (10% = 5.71°, 20% = 11.31°, 40% = 21.8°). To convert degrees to radians or gradians, use the angle converter.
Slope conversion chart: percent, degrees, ratio and pitch
| Grade % | Angle | Ratio | mm per m | Pitch x/12 |
|---|---|---|---|---|
| 1% | 0.57° | 1:100 | 10 mm/m | 0.12/12 |
| 2% | 1.15° | 1:50 | 20 mm/m | 0.24/12 |
| 5% | 2.86° | 1:20 | 50 mm/m | 0.6/12 |
| 8.33% | 4.76° | 1:12 | 83.33 mm/m | 1/12 |
| 10% | 5.71° | 1:10 | 100 mm/m | 1.2/12 |
| 15% | 8.53° | 1:6.67 | 150 mm/m | 1.8/12 |
| 20% | 11.31° | 1:5 | 200 mm/m | 2.4/12 |
| 25% | 14.04° | 1:4 | 250 mm/m | 3/12 |
| 33.33% | 18.43° | 1:3 | 333.3 mm/m | 4/12 |
| 50% | 26.57° | 1:2 | 500 mm/m | 6/12 |
| 57.74% | 30° | 1:1.73 | 577.4 mm/m | 6.93/12 |
| 70% | 34.99° | 1:1.43 | 700 mm/m | 8.4/12 |
| 100% | 45° | 1:1 | 1,000 mm/m | 12/12 |
Values match what the calculator shows. 8.33% is the ADA 1:12 slope; 57.74% is exactly 30°.
Worked examples
- Wheelchair ramp: a 30 inch rise at 1:12 needs 30 ft of run and about 30.1 ft of ramp surface (30.104 ft).
- Yard grading: 3 m of drop over 40 m is 7.5%, or 4.29°; the length on the ground is 40.11 m.
- Drain line: 20 ft of pipe at ¼ inch per foot drops 5 inches; at ⅛ inch per foot, 2.5 inches.
- Measured with a tape: 25 m measured along a bank that rises 2 m is 24.92 m horizontally, an 8.03% slope (4.59°).
- Roof: a 6/12 pitch is 50% or 26.57°; with a 15 ft horizontal run, the rafter is 16.77 ft long (factor 1.118).
- Street: Baldwin Street in Dunedin, New Zealand, one of the steepest streets in the world, reaches about 35%, which is only 19.29°.
Typical slopes by use
| Use | Usual slope | Reference |
|---|---|---|
| Drain pipe 2½″ or smaller | ¼″ per foot (2.08%) minimum | IPC table 704.1 |
| Drain pipe 3″ to 6″ | ⅛″ per foot (1.04%) minimum | IPC table 704.1 |
| Patio, deck slab, walkway drainage | 1 to 2%, about ⅛ to ¼″ per foot | common practice, away from the house |
| Wheelchair ramp | 1:12 (8.33%) max, 30″ rise per run | ADA Standards, section 405 |
| Accessible route without a ramp | 1:20 (5%) max | ADA Standards, section 403.3 |
| Comfortable stair (7″ rise, 11″ tread) | 63.64%, or 32.47° | common residential layout |
| Paris-Lyon high-speed rail line | 35‰ (3.5%) | steepest grades of the LGV Sud-Est |
Guide values: always check the code that applies where you build (IPC, IRC, local amendments, manufacturer instructions).
For stairs, the slope alone is not enough: the stair calculator works out the number of risers, the tread depth and the headroom from the floor-to-floor height.
Roof pitch chart: x/12, percent and degrees
| Roof pitch | Grade | Degrees | Rafter factor |
|---|---|---|---|
| 1/12 | 8.33% | 4.76° | 1.003 |
| 2/12 | 16.67% | 9.46° | 1.014 |
| 3/12 | 25% | 14.04° | 1.031 |
| 4/12 | 33.33% | 18.43° | 1.054 |
| 5/12 | 41.67% | 22.62° | 1.083 |
| 6/12 | 50% | 26.57° | 1.118 |
| 7/12 | 58.33% | 30.26° | 1.158 |
| 8/12 | 66.67% | 33.69° | 1.202 |
| 9/12 | 75% | 36.87° | 1.25 |
| 10/12 | 83.33% | 39.81° | 1.302 |
| 12/12 | 100% | 45° | 1.414 |
The rafter factor multiplies the horizontal run to give the rafter length: at 6/12 (26.57°), 15 ft of run needs 16.77 ft of rafter. Minimum pitch depends on the roofing: asphalt shingles usually need at least 2/12 with extra underlayment under 4/12 (IRC R905.2), and low-slope membranes are used below that.
Common mistakes
- Mixing up percent and degrees: a “10% grade” sign means 5.71°, not 10°. At 45° the grade is already 100%.
- Flipping the ratio: 1:12 means 1 up for 12 across. Embankments are often written the other way, “3:1” (3 horizontal for 1 vertical), which is 33.33% or 18.43°.
- Measuring along the slope without correcting: the error is small below 10% (0.5% at 10%) but reaches 11.8% at 50%. Choose “along the slope” in the tool.
- Mixing units: a rise in inches and a run in feet gives a result 12 times too large. The calculator uses one unit for both.
You can check the sloped length with the Pythagorean theorem calculator: rise and run are the two legs of the right triangle.
Frequently asked questions
How do I convert percent grade to degrees?
The angle is arctan(grade ÷ 100). A 10% grade is 5.71°, 50% is 26.57° and 100% is 45°. The other way, grade (%) = tan(angle) × 100, so 30° is 57.74%. The relationship is not linear, so there is no single multiplier.
How do I calculate slope from rise and run?
Divide the rise by the horizontal run and multiply by 100, with both in the same unit. A yard that drops 2.5 ft over 30 ft has a grade of 2.5 ÷ 30 × 100 = 8.33%, which is a 1:12 slope or 4.76°.
What slope does a drain pipe need?
US plumbing codes (IPC table 704.1) require at least ¼ inch per foot (2.08%) for drain pipes 2½ inches or smaller and ⅛ inch per foot (1.04%) for 3 to 6 inch pipes. Over a 20 ft run at ¼ inch per foot, the pipe must drop 5 inches.
What is the maximum slope for a wheelchair ramp?
The ADA Standards (section 405) limit ramps to 1:12, an 8.33% grade, with a maximum rise of 30 inches per run. A 30 inch rise therefore needs at least 30 ft of horizontal ramp, about 30.1 ft along the surface. A gentler 1:20 (5%) is easier for most users.
Is a 100% grade vertical?
No. A 100% grade means the rise equals the run: 1 ft up for every foot across, which is 45°. A vertical wall would have an infinite grade. Grades above 100% are possible: 173.21% is 60°.