200+ free tools. No sign-up. No hidden fees.Explore the toolkit ↗
Find a tool ↗

Home›Slope Calculator

Slope Calculator

Work out any slope from any two measurements — rise, run, angle or grade — and see it in percent, ratio and degrees at once, with the length of the slope and the rules that matter: drainage minimums, ADA ramp limits and the IRC grading rule.

Calculate your slope

Units:

The rise is the vertical change and the run is the horizontal distance — never the length of the slope itself. Enter the two you know; the other two are worked out for you. The common minimums: a walkway should fall at least 1% (1:100) so water drains, a driveway at least 2%, and the ground beside a house 6 in over the first 10 ft (5%, IRC R401.3).

Your results

–
grade (%)
–
ratio (1 in X)
–
angle (°)
–
slope length (ft)

How the slope formulas work

A slope can be written four ways — as a percent grade, as a ratio, as an angle, or as inches of rise per foot — and they are all the same triangle. Once you have the rise and the run, everything else follows.

Grade: grade (%) = rise ÷ run × 100

Ratio: 1 : (run ÷ rise) — the ADA maximum ramp slope is written 1:12

Angle: angle = arctan(rise ÷ run)

Slope length: √(rise² + run²) — the hypotenuse, always longer than the run

Rise per foot: rise ÷ run (in/ft) · Rise from grade: grade ÷ 100 × run

This is the PonderLoop / CalcMyProject / BasedFrame method, and it reproduces their published examples: a 30 in rise over a 30 ft run is 8.33% (1:12, 4.76°) with a slope length of 30 ft 1¼ in (PonderLoop); an 18 in rise over 12 ft is 12.5%, 7.13°, 1:8, 1.5 in/ft, 12.09 ft long (CalcMyProject). The run is always the horizontal distance — using the slope length as the run is the most common mistake, and it makes the grade come out too shallow.

Worked example

A wheelchair ramp with a 30 in rise over a 30 ft run — the ADA maximum:

Grade: 30 ÷ (30 × 12) × 100 = 8.33%

Ratio: 360 ÷ 30 = 1:12 — exactly the ADA maximum (ADA 2010 §405)

Angle: arctan(30 ÷ 360) = 4.76°

Slope length: √(30² + 360²) = 361.25 in = 30.10 ft

Rise per foot: 30 ÷ 30 = 1.00 in/ft

A driveway with an 18 in rise over a 12 ft run is 18 ÷ 144 × 100 = 12.50%, a 1:8 ratio, 7.13°, 1.5 in/ft, and 12.09 ft long — steeper than the 8.33% ramp maximum and far over the 2% driveway drainage minimum. And the IRC grading rule — 6 in of fall over the first 10 ft from a house — is 6 ÷ 120 × 100 = 5.00% (1:20, 2.86°).

What does grading or a slope cost? (US, 2026)

Prices are 2026 US ranges. Slope itself is free — the cost is in the work that a slope forces: regrading, retaining, drainage and longer ramps. Check local prices before ordering.

WorkTypical cost
Regrading a yard$1,000–$3,000 per job
Drainage pipe (4 in corrugated)$1–$3 per lin ft
French drain, installed$15–$35 per lin ft
Retaining wall block$15–$30 per sq ft
Concrete ramp, poured$6–$12 per sq ft

Waste allowance

There is no waste allowance on this tool — a slope is a measurement, not a quantity to order. If you are ordering material for a sloped surface, measure the slope length (the hypotenuse), not the run — the slope length is what the material has to cover, and on a 12.5% driveway it is about 0.8% longer than the run; on a 25% slope it is 3% longer.

Frequently asked questions

What is the slope of a 30 inch rise over 30 feet?

30 ÷ 360 × 100 = 8.33%, a 1:12 ratio, 4.76°, and 1 in of rise per foot. That is exactly the ADA maximum ramp slope — any steeper and a ramp needs a landing and a rest.

How do you calculate slope percentage?

Divide the rise by the run (both in the same units) and multiply by 100. A 6 in rise over 10 ft is 6 ÷ 120 × 100 = 5%. A 1 in rise over 12 in of run is 8.33%.

What is a 1:12 slope in percent?

A 1:12 slope is 1 ÷ 12 × 100 = 8.33%, and 4.76°. A 1:20 slope is 5% (2.86°) and a 1:48 slope is 2.08% (1.19°). The first number is always the rise, the second the run.

How much slope does a driveway need for drainage?

At least 2% (about ¼ in per foot) so water runs off and does not stand. The ground beside a house needs 5% — 6 in of fall over the first 10 ft — under IRC R401.3. A walkway needs at least 1%.

What is the difference between slope and grade?

They are the same thing: grade is the slope written as a percent, and slope is often written as a ratio (1:12) or an angle (4.76°). Rise ÷ run × 100 gives the grade; arctan(rise ÷ run) gives the angle.

Related calculators