Slope Calculator Using Ratio and Length
- Slope percent
- %
- Result
- Angle
- degrees
- Result
- Rise (vertical)
- 1 m
- You entered
This calculator finds the slope (gradient) of a line or surface when you know the horizontal length (run) and the vertical rise (rise), expressed as a ratio (e.g., 1:12) or as a percentage. You enter the rise and run (or the ratio and one length), and it returns the slope ratio, percent slope, and angle in degrees. The tool also works in reverse: if you have a desired slope ratio and one length, it computes the missing length or rise.
Formula
Slope is the ratio of vertical change (rise) to horizontal change (run). In mathematical terms:
Slope ratio = run : rise (often written as “1 in X� or “X:1�)
Percent slope = (rise / run) × 100
Angle (degrees) = arctan(rise / run)
Where:
- Rise – vertical distance (in meters, feet, etc.)
- Run – horizontal distance (in the same unit as rise)
- Slope ratio – expressed as “run:rise� (e.g., 12:1 means 12 units horizontal for every 1 unit vertical)
- Percent slope – the tangent of the angle × 100
- Angle – the incline angle from horizontal, in degrees
All three values are mathematically equivalent: if you know any one, you can compute the others. The calculator above uses rise and run directly.
Worked Example
Using the default values: rise = 1 m, run = 12 m.
- Slope ratio: run / rise = 12 / 1 = 12, so the ratio is 12:1 (or “1 in 12�).
- Percent slope: (rise / run) × 100 = (1 / 12) × 100 = 8.33%.
- Angle: atan(1 / 12) = 4.76 degrees.
The calculator shows: ratio 12.00, percent 8.33%, angle 4.76°. This matches the default output.
When to Use Ratio and Length
Slope as a ratio is common in construction, landscaping, and accessibility design. For example, a wheelchair ramp often uses a 1:12 slope (1 unit rise per 12 units run). A roof pitch might be 4:12 (rise of 4 inches per 12 inches of run). Using the ratio and one length lets you find the other dimension quickly.
This calculator is useful for:
- Designing ramps, stairs, or walkways
- Checking drainage slopes (e.g., 1% minimum for flat roofs)
- Calculating roof pitch from rise and run
- Converting between ratio, percent, and degrees
How to Read the Results
The slope ratio is displayed as “run:rise� (e.g., 12:1). A larger first number means a gentler slope. Percent slope is intuitive: 100% means a 45° angle (rise equals run). The angle in degrees is the actual incline from horizontal.
For example, a 2% slope means the surface rises 2 units for every 100 units of horizontal distance. That is a very gentle slope, often used for drainage. A 50% slope is a steep hill, about 26.6°.
Common Mistakes and Unit Mix-Ups
The most frequent error is mixing units. If rise is in feet and run is in inches, the ratio will be wrong. Always convert to the same unit before calculating. For instance, a roof with a 6-inch rise per 12-inch run is a 6:12 pitch, but if you input rise in inches and run in feet, you get a misleading result.
Another common mistake is confusing percent slope with degrees. A 45° slope is 100%, not 45%. To convert percent to degrees, use atan(percent/100).
Rounding too early can also cause errors. Keep at least three decimal places in intermediate steps, then round the final answer.
Limitations of the Formula
This calculation assumes a straight line between two points. It does not account for curves, irregular terrain, or the actual surface distance (which is longer than the horizontal run). For a roof, the “run� is half the building width, not the full width. For a road, the slope is measured along the centerline, not across the pavement.
Also, the formula gives the average slope between the two points. If the ground rises and falls, the actual slope at a specific point may differ.
Related Calculations
If you need the actual surface length (the hypotenuse), use the Pythagorean theorem: length = √(rise² + run²). For example, with rise=1 and run=12, the surface length is √(1+144) = √145 ≈ 12.04 m.
To convert from percent slope to ratio: ratio = 100 / percent (run:rise). To convert from degrees to percent: percent = tan(degrees) × 100.
Frequently Asked Questions
What does a 1:12 slope mean?
A 1:12 slope means for every 12 units of horizontal run, there is 1 unit of vertical rise. It is the standard maximum slope for wheelchair ramps in many building codes. In percent, it is 8.33%, and the angle is about 4.76°.
How do I calculate slope from a ratio and a length?
If you have a ratio like 1:10 and a run of 5 meters, the rise is run / ratio = 5 / 10 = 0.5 m. If you have the rise instead, multiply rise by the ratio to get the run. The calculator above does this if you enter the ratio as run/rise.
What is the difference between percent slope and degrees?
Percent slope is the tangent of the angle multiplied by 100. A 100% slope corresponds to a 45° angle. Degrees measure the actual angle from horizontal. To convert percent to degrees, use atan(percent/100).
Can I use this for roof pitch?
Yes. Roof pitch is usually given as a ratio of rise to run, such as 4:12. Enter the rise (e.g., 4 inches) and run (e.g., 12 inches) to get the angle and percent. Remember to use the same unit for both.
What if I only know the angle and one length?
Use trigonometry: rise = run × tan(angle) or run = rise / tan(angle). For example, a 30° angle with a run of 10 m gives a rise of 10 × tan(30°) ≈ 5.77 m.
Why does my slope ratio look different from a friend’s?
Slope ratios can be written as “run:rise� (e.g., 12:1) or “rise:run� (e.g., 1:12). Both are correct but reversed. Always check which convention is being used. This calculator outputs run:rise, which is common in construction.
Related
Formula used
in rise | Rise (vertical) | m | 1 | 0 in run | Run (horizontal) | m | 12 | 0 out ratio | Slope ratio (run:rise) | - | run / rise | 2 out percent | Slope percent | % | (rise / run) * 100 | 2 out angle | Angle | degrees | atand(rise / run) | 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.