Slope & Grade Calculator

Convert a slope between rise over run, percent grade, degrees, a 1:n ratio and roof pitch, and work out the total rise over a length, with checks for ramps, paving and drain pipes.

Calculator Construction Updated Oct 3, 2026
How to Use
  1. Choose how you know the slope: as a rise and run, a percent grade, an angle, a 1:n ratio or a roof pitch (x in 12).
  2. Enter the value; every other form updates at once.
  3. Add a horizontal length to get the total rise and the length along the slope, for example for a ramp or a driveway.
  4. Read the checks against ramp, paving and drainage rules.
Input
in
in
%
°
n
in / 12
ft
Presets
The slope
Grade
—
Angle
—
Ratio
—
Pitch
—

Worked Example

A wheelchair ramp at the ADA maximum of 1:12. Rise ÷ run = 1 ÷ 12 = 0.0833, so the grade is 8.33%. The angle is tan⁻¹(0.0833) = 4.76°, and in roofing terms it is a 1/12 pitch. Over 24 ft of run, the ramp rises 24 × 0.0833 = 2 ft (24 in), the most one run may climb before a landing; the ramp surface is √(24² + 2²) = 24.08 ft long.

The common mistake: treating percent and degrees as the same. An 8% grade is 4.57°, not 8°. An 8° ramp is a 14.1% grade, far too steep for a wheelchair.

Show Work

Enter a slope to see the conversions.

Formulas

Grade
% = rise ÷ run × 100
Angle
θ = tan⁻¹(rise ÷ run)
Back: rise ÷ run = tan θ
Ratio
1 : n, n = run ÷ rise
1:12 = 8.33%
Pitch
x / 12, x = 12 × rise ÷ run
6/12 = 50%
Sloped length
√(run² + rise²)
Pythagoras

Slopes in Everyday Building

Different trades describe the same thing differently. Road engineers and landscapers use percent grade; roofers in the US use pitch in inches per foot; accessibility rules use ratios such as 1:12; surveyors and engineers use degrees or radians. They all come from the same right triangle: rise over run is the tangent of the angle.

Some useful markers: 1–2% is the gentle fall that sheds water from a patio; 5% is the steepest a walking surface can be before it counts as a ramp under the ADA; 8.33% is the ramp maximum; around 12–15% is the practical limit for a driveway in snow; 45°, a 100% grade, is a 12/12 roof.

About This Calculator

This calculator converts a slope from any one form (rise and run, percent grade, angle in degrees, a 1:n ratio or a roof pitch) into all the others, and over a length gives the total rise and the sloped length. It checks the result against the ADA ramp limit and common paving and drainage slopes, and draws the slope to scale.

Everything runs in your browser; nothing is sent anywhere. For the slope of a line through two points, use the math slope calculator.

Related calculators: Roofing Calculator, Stair Calculator, and Slope Calculator (two points).

Frequently Asked Questions

How do I convert slope to a percentage?

Divide the rise by the run and multiply by 100. A rise of 1 ft over a run of 20 ft is 1 ÷ 20 = 0.05, a 5% grade. Percent grade is not the same as degrees: 100% is a 45° slope, where rise equals run.

How do I convert percent grade to degrees?

Take the arctangent of the grade as a decimal: degrees = tan⁻¹(grade ÷ 100). 8.33% is 4.76°, 10% is 5.71°, 50% is 26.57°. For small slopes, degrees are roughly the percentage times 0.57.

What slope is allowed for a wheelchair ramp?

Under the ADA Standards, a ramp may be no steeper than 1:12 (8.33%), and a single run may rise no more than 30 in before a level landing. A ramp up 24 in therefore needs at least 24 ft of run. Cross slope must be no more than 1:48 (2.08%).

How much slope do patios and drain pipes need?

Patios and walks should fall about 1–2% (⅛ to ¼ in per foot) away from buildings; lawns about 2% near a house. Drain and sewer pipes up to 3 in diameter are usually laid at ¼ in per foot (2.08%), larger pipes at ⅛ in per foot (1.04%).

What is the difference between slope and pitch?

Roofers in the US give pitch as the rise in inches per 12 in of run: 6/12 means 6 in up for every foot across, which is a 50% slope or 26.57°. Some people use “pitch” for the rise divided by the full span, which gives half the value, so check which is meant.

How do I use the Slope & Grade Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Do I need to install or sign up for anything?

Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.

Is my information private?

Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.

Common Use Cases

Wheelchair ramp

A 24 in rise at 1:12 needs 24 ft of run; at 8.33% the ramp itself is 24.08 ft long.

Driveway

A driveway rising 3 ft over 40 ft is a 7.5% grade, 4.29°: comfortable for most cars.

Patio fall

A 12 ft deep patio at 2% falls 2.88 in from the house to its edge.

Drain pipe

A 40 ft drain at ¼ in per foot drops 10 in.

Roof pitch

A 9/12 roof is a 75% slope, 36.87°.

Last updated: