Slope Calculator
Calculate slope percentage, angle, gradient ratio, rise and run, and slope length with our free online slope calculator.
Visualization
Results
Percentage (%)
-
Angle (Deg)
-
Ratio (H:V)
-
Length
-
Vertical Rise
-
Horizontal Run
-
Slope Calculator Examples
Example 1: Basic Slope
- Rise: 2 m
- Run: 10 m
- Expected Slope: 20%
- Expected Angle: ~11.31°
Example 2: Gentle Slope
- Rise: 0.5 m
- Run: 10 m
- Expected Slope: 5%
- Expected Ratio: 20:1
Example 3: Steeper Slope
- Rise: 3 m
- Run: 6 m
- Expected Slope: 50%
- Expected Angle: ~26.57°
Note: These examples are for mathematical illustration only and should not be interpreted as safety recommendations for slope stability, road design, or accessibility ramps.
How to Calculate Slope
A slope represents the steepness or incline of a line, surface, or terrain. In civil engineering, architecture, and mathematics, it is defined by the relationship between the horizontal distance (Run) and the vertical change in elevation (Rise).
Key Concepts & Formulas
- Slope Percentage: The ratio of vertical rise to horizontal run, expressed as a percentage.
Formula:Slope (%) = (Rise / Run) × 100 - Slope Angle (Degrees): The geometric angle of the incline relative to the horizontal plane.
Formula:Angle (°) = arctan(Rise / Run) × (180 / π) - Slope Length: The physical length of the sloped surface (the hypotenuse of the triangle).
Formula:Length = √(Rise² + Run²) - Slope Ratio (H:V): Common in construction and earthworks. It indicates how many units of horizontal run are required for one unit of vertical rise (e.g., 2:1 means 2 horizontal for 1 vertical).
- Coordinate Slope: Calculated between two points (X1, Y1) and (X2, Y2) on a Cartesian plane.
Formula:Slope (m) = (Y2 - Y1) / (X2 - X1)
Physical vs. Coordinate Slope
When calculating physical slopes (like a roof or driveway), negative values typically indicate a "falling" or downward slope, but the magnitude of steepness remains the same. In coordinate geometry, a negative slope means the line goes downwards from left to right across the axes.
Disclaimer: This calculator provides mathematical estimates for educational and preliminary engineering use. It does not replace a qualified engineer’s assessment, geotechnical analysis, drainage design, structural review, or applicable building and safety regulations.
Frequently Asked Questions
1. What is a slope calculator?
A slope calculator is an online tool used to determine the steepness, incline, or gradient of a surface. It computes values such as slope percentage, degrees, and ratios based on vertical rise and horizontal run.
2. How do you calculate slope percentage?
Divide the vertical elevation change (Rise) by the horizontal distance (Run) and multiply by 100. For example, a 2-meter rise over a 10-meter run is (2/10) × 100 = 20%.
3. How do you convert slope percentage to degrees?
To convert percentage to degrees, divide the percentage by 100 to get the decimal gradient, then calculate the arctangent (inverse tangent) of that decimal. Finally, convert the radians to degrees by multiplying by 180/π.
4. What is the difference between slope and gradient?
In most civil engineering contexts, slope and gradient are used synonymously to describe steepness. Mathematically, slope is strictly the ratio (Rise/Run), while gradient often refers specifically to the slope percentage or the vector derivative in calculus.
5. How do you calculate slope ratio?
Slope ratio is typically expressed as Horizontal:Vertical (H:V). You divide the Run by the Rise to find how many horizontal units correspond to 1 vertical unit (e.g., 10m run / 2m rise = 5:1 ratio).
6. How do you calculate rise and run?
Rise is the difference in elevation between two points (Y2 - Y1). Run is the horizontal distance between those same two points (X2 - X1).
7. How do you calculate slope length?
Slope length is calculated using the Pythagorean theorem: a² + b² = c². The formula is Length = Square Root of (Run² + Rise²).
8. Can a slope have a negative value?
Yes. In mathematical coordinates, a negative slope indicates a line falling from left to right. In physical terrains, a negative slope denotes a decline or downgrade. The tool calculates absolute steepness and notes the direction.
9. What is the difference between percent slope and slope ratio?
Percent slope describes the rise per 100 horizontal units. Slope ratio describes the number of horizontal units needed to achieve exactly 1 unit of vertical rise. A 50% slope is equivalent to a 2:1 ratio.
10. Can I use this calculator for roads, roofs, drainage, and terrain?
Yes, the core mathematics for slope are universal. This tool can estimate pitches for roofs, falls for drainage pipes, grades for roads, and steepness for terrain mapping.
11. What units does the slope calculator support?
It supports both Metric (millimeters, centimeters, meters, kilometers) and Imperial (inches, feet, yards, miles) units.
12. Is this slope calculator suitable for engineering design?
It is suitable for preliminary estimates and educational checks. However, final engineering designs must adhere to local building codes, structural analysis, and safety guidelines assessed by certified professionals.