Slope Calculator

Your input stays in your browser and is never sent.

Enter any two of run, rise, grade (%) and angle to get the rest, plus the slope length. See the grade as a percentage, per mille, 1:n ratio and degrees at once.

  1. Enter
  2. See the result

Fill in any two fields to get the rest. Run and rise can be in any unit (m, ft, cm) as long as both use the same one.

Enter any two of the four fields to see the result

What is the slope calculator?

The slope calculator turns the steepness of a ramp, road or roof into numbers. Enter any two of run, rise, grade (%) and angle, and it fills in the other two.

The result shows the grade four ways (percent, per mille, 1:n ratio and degrees) along with the slope length. You can also enter just a grade or just an angle to convert one into the other, such as how many degrees an 8% grade is.

It's handy for planning a ramp, checking a hill or roof pitch, or reading a drawing that uses a different notation. No sign-up needed, and everything is calculated in your browser.

How to use the slope calculator

  1. Enter two values you knowFill in any two of run, rise, grade and angle. The fields being used get a "Used" tag.
  2. Read the resultThe other values and the slope length update as you type. Tap a card to copy its value.
  3. Switch the pairIf three or more fields are filled, the first two you entered are used. Clear a field to calculate from a different pair.

Features of SOKUFU's slope calculator

Works from any pair
Run and rise, rise and angle, run and grade — any combination of a length with another value works.
Four notations at once
Percent, per mille, 1:n and degrees (with degrees, minutes and seconds) side by side, so you can match whatever a drawing or code uses.
Slope length included
The length along the slope is shown too, which helps when estimating ramp materials.
Clean results at the extremes
A run of 0 shows as "Vertical" and a rise of 0 as "Level" — no infinity signs or error codes.
Runs in your browser
Nothing you enter is ever sent to a server.

Grade notations and formulas

Grade (%) is how much the slope rises over 100 units of horizontal distance: rise ÷ run × 100. A road that climbs 5 m over 100 m is a 5% grade. Per mille (‰) is the same idea over 1,000 units, so 5% is 50‰.

A 1:n ratio means a rise of 1 for every n of run, where n = run ÷ rise. A 5% grade is 1:20, and 8.3% is about 1:12.

The angle is atan(rise ÷ run). 5% is about 2.86°, 10% about 5.71°, and 100% exactly 45°. Grade and angle aren't proportional: 200% is about 63.4°, not 90°.

The slope length comes from the Pythagorean theorem: √(run² + rise²). A run of 100 m with a 5 m rise gives about 100.125 m.

Everyday slope benchmarks (Japan)

Building ramps: Japan's Barrier-Free Act enforcement order (Article 19) says ramps on accessible routes must not be steeper than 1/12, or 1/8 for ramps no more than 16 cm high. 1/12 is about 8.3% or 4.76°, so entering the height tells you the run you need. Ramps higher than 75 cm (and steeper than 1/20) also need a landing at least every 75 cm of rise.

Sidewalks: the ministry ordinance on barrier-free road design caps the lengthwise grade of sidewalks at 5% (8% where unavoidable).

Roads: Japan's Road Structure Ordinance sets the maximum grade of a roadway by design speed. For standard roads (Types 1–3) it is 2% at 120 km/h, 5% at 60 km/h and 9% at 20 km/h (up to 5%, 8% and 12% where terrain makes it unavoidable).

Road signs: the number on Japan's "steep climb" and "steep descent" warning signs is the grade in percent. A 10% sign means an angle of about 5.7°.

These figures are taken from Japanese laws as a guide. For actual design or construction, check local codes and the latest standards where you are.

Related tools

Slope calculator FAQ

What's the difference between percent grade and angle?

Percent grade is rise ÷ run × 100, and the angle is the same steepness measured in degrees. 10% is about 5.71° and 100% is 45°; the two aren't proportional.

What happens if I fill in three or more fields?

The first two you entered are used and the rest are tagged "Not used". Grade and angle both describe steepness, so if those two came first, the length you entered next is used instead.

What if the run is 0?

The slope is treated as vertical: the angle is 90° and the slope length equals the rise. The percentage and ratio would be infinite, so "Vertical" is shown instead of a number.

Which unit should I use for lengths?

Any unit works — m, cm or ft — as long as run and rise use the same one. The slope length comes out in that unit too.

Can I use this to design a ramp?

The results are a guide only. Requirements depend on the building's use and local codes, so check with an architect or your local building office before designing or building.

Is what I enter sent to a server?

No. The run, rise, grade and angle you enter are calculated only in your browser and are never sent anywhere.