Gradient Slope Calculator: Find Slope & Angle
- Angle (degrees)
- °
- Result
- Ratio
- 1 in X
- Result
- Rise
- 1.5 m
- You entered
A gradient slope calculator works out the steepness of a line, a road, a roof, or any inclined surface from two measurements you provide. You enter the horizontal distance (run) and the vertical change (rise), and the calculator returns the slope as a percentage, a ratio (e.g., 1 in 12), and often the angle in degrees. This page explains the formulas behind those results, shows a worked example, and covers the common mistakes that lead to wrong answers.
Formula
The slope (also called gradient) is the ratio of the vertical change to the horizontal change. In symbols:
- Slope (%) = (rise ÷ run) × 100
- Angle (degrees) = arctan(rise ÷ run), using the inverse tangent function in degree mode
- Ratio = run ÷ rise, expressed as “1 in X�
Where:
- Rise – vertical distance (in meters, feet, or any consistent unit)
- Run – horizontal distance (same unit as rise)
- Slope (%) – the gradient as a percentage (e.g., 12.5% means a rise of 12.5 units per 100 units of run)
- Angle (°) – the inclination from horizontal, in degrees
All three are equivalent ways of expressing the same steepness. The percentage and the angle are the most common in construction and engineering; the ratio is common in carpentry and accessibility guidelines.
Worked Example
Using the default values from the calculator: rise = 1.5 m, run = 12 m.
- Slope (%) = (1.5 ÷ 12) × 100 = 0.125 × 100 = 12.5%
- Angle (degrees) = atan(1.5 ÷ 12) = atan(0.125) ≈ 7.13° (using degree mode)
- Ratio = 12 ÷ 1.5 = 1 in 8
The calculator shows 12.50% for slope, 7.13° for angle, and 8.00 for the ratio, matching these steps.
When to Use a Gradient Slope Calculator
You need a slope calculation whenever you are designing or assessing an inclined surface. Common situations include:
- Driveways and walkways – checking that the slope meets local accessibility recommendations (often 5% maximum for wheelchair ramps, though this varies by jurisdiction).
- Roofs – roof pitch is often given as a ratio like 4/12, meaning 4 inches of rise per 12 inches of run.
- Roads and railways – road gradients are usually expressed as percentages; a 6% grade means a 6-meter rise per 100 meters of road.
- Landscaping and drainage – ensuring water flows away from foundations (a minimum of 1% is often recommended).
- Math homework – finding the slope of a line between two points on a graph.
In each case, you measure the vertical change and the horizontal distance, then use the calculator to get the gradient in the format you need.
How to Read the Results
The three outputs describe the same steepness differently:
- Percentage – the most intuitive for most people: 100% slope means a 45° angle (rise equals run). A 10% slope is relatively gentle; a 30% slope is quite steep.
- Angle – the actual inclination in degrees. 0° is flat, 45° is a 100% slope, and 90° is vertical (infinite slope).
- Ratio – “1 in X� means for every X units of horizontal distance, you rise 1 unit. This is common in carpentry (e.g., 4/12 roof pitch) and in accessibility guidelines (e.g., 1:12 ramp slope).
Note that the ratio is shown as “1 in X� – a larger X means a gentler slope. A 1 in 20 slope is less steep than a 1 in 10 slope.
Common Mistakes and Unit Mix-Ups
The most frequent error is mixing units. If you measure rise in meters and run in feet, the result will be wrong. Always convert to the same unit before calculating. For example, 1 foot = 0.3048 meters, so a rise of 1 ft and a run of 10 ft should both be in feet or both in meters.
Another common mistake is using the actual distance along the slope (the hypotenuse) instead of the horizontal run. If you measure the slope length with a tape measure, that is not the run – you need the horizontal projection. For a roof, the run is half the building width, not the rafter length.
Rounding too early can also cause errors. Keep at least three significant figures during intermediate steps, then round the final answer. For example, a rise of 2 m and a run of 3 m gives a slope of 66.67%, not 66% if you need precision.
Limits of the Formula
The formula assumes a straight, uniform slope. In reality, surfaces may be curved or have varying gradients. For a road with multiple segments, you would calculate each segment separately. Also, the angle output is based on the arctangent, which is only valid for slopes between -90° and +90° (i.e., not vertical). For a vertical drop (run = 0), the slope is infinite and the angle is 90°, but the calculator will show an error because division by zero is undefined.
For very small slopes (less than about 1%), the difference between the slope percentage and the sine of the angle is negligible, but for steep slopes the difference grows. The formula used here is the standard one for gradient.
Frequently Asked Questions
What is the difference between slope percentage and angle?
Slope percentage is the rise divided by the run, multiplied by 100. Angle is the arctangent of that ratio, expressed in degrees. For a 45° angle, the slope is 100%. For a 10° angle, the slope is about 17.6%, because tan(10°) = 0.1763.
How do I convert a ratio like 1 in 12 to a percentage?
Divide the rise by the run: 1 ÷ 12 = 0.0833, then multiply by 100 to get 8.33%. So a 1:12 ramp has an 8.33% slope. That is the maximum allowed for many wheelchair ramps in the U.S. (the ADA standard), though local codes may differ.
What is a “1 in 20� slope in degrees?
A 1 in 20 slope means a rise of 1 unit for every 20 units of run. The angle is atan(1/20) ≈ 2.86°. The percentage is 5%. This is a common minimum slope for drainage.
Can I use the calculator for a roof pitch?
Yes. Roof pitch is often given as a ratio like 4/12, meaning 4 inches of rise per 12 inches of run. Enter rise = 4 and run = 12 (in inches) to get a slope of 33.33% and an angle of 18.43°. The ratio output will be 1 in 3, which is the same as 4/12.
Why does the calculator ask for run, not the actual length of the slope?
Because the gradient is defined as the vertical change divided by the horizontal distance, not the distance along the slope. If you measure the slope length (the hypotenuse), you would need to use trigonometry to find the run, which is what this calculator avoids.
What if my rise is negative (a downhill slope)?
If you enter a negative rise, the slope percentage and angle will be negative, indicating a downward slope. The ratio will be negative as well. Many calculators allow this, but if you are only interested in steepness, you can use the absolute value.
Related
Formula used
in r | Rise | m | 1.5 | 0 in d | Run | m | 12 | 0 out p | Slope (%) | % | (r / d) * 100 | 2 out a | Angle (degrees) | ° | atand(r / d) | 2 out rr | Ratio | 1 in X | d / r | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.