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.
- Enter
- 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
- Enter two values you knowFill in any two of run, rise, grade and angle. The fields being used get a "Used" tag.
- Read the resultThe other values and the slope length update as you type. Tap a card to copy its value.
- 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
- Angle ConverterConvert an angle between degrees, radians and other units.
- Ratio CalculatorWork out a length that fits a ratio such as 1:12.
- Length ConverterPut run and rise into the same unit, such as m, cm or ft.
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.
Related tools
- Character CounterCount characters, lines, manuscript pages and bytes as you type. Your text never leaves your browser.
- Online CalculatorA calculator in your browser. Type a whole expression, and use memory keys and a calculation history.
- Time CalculatorAdd and subtract hours and minutes. Total your work hours, find the time between two clock times, or add time to a clock time.
- Percentage CalculatorWork out X% of a number, what percent one number is of another, percent change, percent increase and discounted prices.
- Age CalculatorCalculate your exact age from your date of birth, plus Japanese kazoe age, days since birth, days to your next birthday, the Japanese era and zodiac sign.
- Coming of Age Day CalculatorFind the date of your Coming of Age ceremony in Japan from your date of birth, with your 18th and 20th birthdays and a table by school year.
- Ratio CalculatorSolve for a missing value in a ratio, simplify ratios and split a total by a ratio. Handy for aspect ratios and recipe scaling.
- Unit ConverterConvert length, area, volume, weight, temperature, speed, time, angle, data size and fuel economy into every unit at once.
- Area ConverterConvert square meters, ares, hectares, square feet, acres and Japanese units such as tsubo and tatami mats in one go.
- Time ConverterConvert milliseconds, seconds, minutes, hours, days, weeks, months and years in one go.
- Angle ConverterConvert degrees, radians, gradians, arcminutes, arcseconds and turns in one go.
- Length ConverterConvert millimeters, centimeters, meters, kilometers, inches, feet, yards, miles and Japanese units such as shaku and ken in one go.
- Volume ConverterConvert milliliters, liters, cubic meters, spoons, cups, gallons and Japanese units such as gō and shō in one go.
- Temperature ConverterConvert Celsius, Fahrenheit, Kelvin and Rankine in one go.
- Weight ConverterConvert milligrams, grams, kilograms, tonnes, carats, ounces, pounds, stones and Japanese units such as monme and kan in one go.
- Speed ConverterConvert km/h, m/s, mph, knots, feet per second and Mach in one go.
- Data Size ConverterConvert bits, bytes, KB, MB, GB, TB and KiB, MiB, GiB, TiB in both decimal and binary units.
- Fuel Economy ConverterConvert km/L, L/100 km and US and UK mpg in one go.
- Oku Unit ConverterConvert Japanese large-number units (man, oku, chō, kei) to and from thousand, million, billion and trillion.
- BMR CalculatorEstimate your basal metabolic rate in kcal per day from sex, age, height and weight. Compare the Japanese NIHN (Ganpule) equation with Mifflin-St Jeor, revised Harris-Benedict, Katch-McArdle and Japan's official reference values side by side.
- TDEE CalculatorEstimate your total daily energy expenditure (TDEE) from sex, age, height, weight and activity level, with calorie targets for cutting and bulking, your BMR and macro ranges.
- Compound Interest CalculatorSee how savings grow with compound interest. Enter a starting amount, a monthly contribution, an annual rate and a term to get the final balance and interest earned, with a year-by-year table, a chart, a simple-interest comparison and an after-tax figure.
- Hourly Wage CalculatorWork out a day's pay from your hourly wage and clock-in and clock-out times, with overtime and late-night premiums and shifts past midnight. Also converts an hourly wage to monthly and annual pay, and back.
- Gacha Probability CalculatorWork out your chances of pulling the character or item you want from a gacha, from the drop rate and number of pulls. Handles multiple copies and pity, and shows how many pulls you need for a 50%, 90% or 99% chance, the average number of pulls and a rough cost.
- Golf Olympic CalculatorScore and settle the golf side game Olympic (gold, silver, bronze, iron and diamond). Tap who won each medal on each hole and see totals and who pays whom right away.
- Split Bill CalculatorSplit a bill by the number of people and see what each person pays. Round each share up or down to ¥10, ¥100 or ¥500, let some people pay more by a fixed amount or a multiplier, and see the leftover or shortfall for whoever is collecting.