Slope Gradient Calculator
Calculate slope gradient as percent grade, angle, ratio, rise, run, or slope length using construction, grading, and geometry inputs.
Calculator is for informational purposes only. Terms and Conditions
Choose what to solve for
Select the unknown and the known slope format. The required inputs update automatically.
Enter the known values
Percent grade uses horizontal run, not diagonal slope length.
Visual Check
Confirm the rise, horizontal run, slope length, angle, and grade relationship.
Solution
Live result, slope conversions, warnings, and full solution steps.
Quick checks
- Check—
Show solution steps See unit conversions, substitutions, assumptions, and slope checks
- Enter values to see the full solution steps and checks.
Source, Standards, and Assumptions
Calculation basis, constants, assumptions, and limitations.
Source/standard information updates after a valid calculation.
- Assumptions will appear after a valid calculation.
On this page
Calculator Guide
How to Use the Slope Gradient Calculator
The Slope Gradient Calculator above calculates slope steepness from rise and horizontal run, then converts the result into percent grade, slope percentage, slope angle, decimal slope, rise-to-run ratio, and slope length. The most common formula is \( \text{percent grade}=\frac{\text{rise}}{\text{run}}\times100 \).
Use the calculator when you need a fast slope check for grading, drainage, ramps, roads, trails, roofs, landscaping, surveying, or geometry problems. The article below explains the formulas, unit traps, examples, and common mistakes so the result is easier to trust and interpret.
Quick Answer
To calculate slope gradient, divide the vertical rise by the horizontal run. Multiply by 100 to get percent grade, use \( \tan^{-1}(\text{rise}/\text{run}) \) to get the angle, and use \( \sqrt{\text{rise}^2+\text{run}^2} \) to get slope length.
Do not rely on a simplified slope result when…
Do not use a basic slope calculation as the only basis for final roadway, accessibility, roof, drainage, or site-grading design. Codes, drainage performance, surface material, construction tolerances, safety, and local requirements may control the final acceptable slope.
Inputs and Outputs Used by the Calculator
A slope gradient calculation starts with a vertical change and a horizontal distance. The calculator can also work backward from percent grade, angle, or ratio when solving for rise or run.
| Type | Value | What It Means | Common Unit |
|---|---|---|---|
| Input | Rise / vertical change | The vertical elevation difference between the start and end of the slope. | in, ft, mm, cm, m |
| Input | Horizontal run | The horizontal distance over which the vertical change occurs. | in, ft, yd, mm, cm, m |
| Input | Percent grade / slope percentage | Slope expressed as rise per 100 units of horizontal run. | % |
| Input | Slope angle | The incline angle measured from the horizontal. | degrees or radians |
| Input | Rise:run ratio | A ratio such as 1:12, meaning 1 unit of rise for 12 units of run. | unitless ratio |
| Output | Decimal slope | The raw rise divided by run value. | unitless |
| Output | Percent grade | Decimal slope multiplied by 100. | % |
| Output | Slope length | The diagonal distance along the incline. | same as selected length unit |
Positive vs. negative slope
A positive grade means the endpoint is higher than the starting point. A negative grade means the endpoint is lower. For steepness alone, use the absolute value; for grading, drainage direction, or profile drawings, keep the sign.
Slope Gradient Formula
Slope gradient is based on a right triangle. Rise is the vertical side, run is the horizontal side, and slope length is the diagonal side. Percent grade is also commonly called slope percentage or percent slope.
Main Slope Formula
The decimal slope \(m\) is unitless as long as rise and run are converted to the same length unit before division.
Percent Grade Formula
A 5% grade means 5 units of vertical change for every 100 units of horizontal distance.
Angle Formula
The angle \(\theta\) is measured from the horizontal, not from the vertical. Most construction and grading users read this result in degrees, although radians may be used for some math or programming workflows.
Slope Length Formula
Slope length is useful for diagonal distance, but it should not be used as the run in the percent grade formula.
Percent Grade and Angle Conversion
This is the key relationship for converting between degrees and percent slope.
Important formula note
Percent grade uses horizontal run, not the diagonal slope length. If you use diagonal length by mistake, the calculated grade will be too low, especially on steeper slopes.
What the Variables Mean
Every variable should be measured consistently. The most important rule is to convert rise and run to the same length unit before calculating slope.
| Symbol | Meaning | How to Enter It |
|---|---|---|
| \(m\) | Decimal slope. | Usually calculated from rise divided by run. |
| Rise | Vertical change in elevation. | Enter positive for uphill and negative for downhill when direction matters. |
| Run | Horizontal distance. | Enter the plan-view distance, not the diagonal distance along the slope. |
| \(\theta\) | Slope angle measured from the horizontal. | Enter or read in degrees unless radians are specifically needed. |
| \(L\) | Diagonal slope length. | Calculated from rise and run using the Pythagorean theorem. |
| Ratio | Rise compared with run, such as 1:12. | Enter as rise:run. A 1:12 ratio means 1 rise for 12 horizontal run. |
How to Use the Calculator
Start by choosing what you need to solve for, then select the known slope format that matches your available measurements.
| Solve For | Best Known Inputs | Useful For |
|---|---|---|
| Percent grade | Rise and horizontal run | Finding slope percentage from field measurements. |
| Slope angle | Rise and horizontal run | Converting a measured slope into degrees. |
| Rise / drop | Run plus percent grade, angle, or ratio | Finding required elevation change over a known distance. |
| Horizontal run | Rise plus percent grade, angle, or ratio | Finding how much horizontal distance is needed for a target slope. |
| Slope length | Rise and horizontal run | Finding the diagonal distance along the incline. |
Choose the solve mode
Select percent grade, slope angle, rise, horizontal run, or slope length.
Choose the known slope format
Use rise/run, percent grade, angle, or rise:run ratio depending on the values you know.
Check the unit selectors
Mixed units are common. For example, 6 inches over 10 feet must be converted before calculating grade.
Review equivalent results
Compare percent grade, angle, ratio, and slope length to catch unrealistic or mistaken inputs.
How to Interpret Slope Results
A slope result tells you how quickly elevation changes over horizontal distance. Small percent grades can still matter for drainage, while large grades may be difficult or unsafe depending on the application.
| Result | Approximate Meaning | What to Check Next |
|---|---|---|
| 0% | Flat surface with no vertical change. | Check whether drainage requires a nonzero slope. |
| 1% to 3% | Gentle slope, common in drainage and grading discussions. | Verify the required minimum slope for the specific use case. |
| 5% to 8% | Noticeable incline. | Check comfort, access, surface traction, and applicable design requirements. |
| 10% to 15% | Steep for many pedestrian, roadway, and site access situations. | Review project constraints, safety, and code requirements. |
| 100% | Rise equals run, which is a 45° slope. | Confirm that you did not confuse 100% slope with vertical. |
| Infinite or undefined | Horizontal run is zero, creating a vertical line. | Use angle or vertical geometry instead of percent grade. |
What to do with the result
Use the slope result to compare a measured surface to a target grade, estimate required rise or drop, convert construction ratios into percent grade, or communicate slope in the format your project uses. Always confirm final values against the design context.
What changes the result most?
The ratio between rise and run controls the result. Doubling the rise doubles the percent grade, while doubling the run cuts the percent grade in half. Unit errors can be even larger because mixing inches and feet without conversion can shift the result by a factor of 12.
Quick sanity check
Common conversions: 1% is about 0.57°, 2% is about 1.15°, 5% is about 2.86°, 10% is about 5.71°, and 100% is 45°. If your result does not align with this pattern, recheck the units and whether you entered horizontal run instead of slope length.
Input Quality Checklist
Slope formulas are simple, but field measurements are easy to misread. Use this checklist before trusting the answer.
Use horizontal run
Measure the horizontal distance between points, not the distance along the sloped surface.
Match units
Convert rise and run to the same length unit before calculating manually. The calculator handles unit conversions if selectors are set correctly.
Check sign direction
Positive rise is uphill and negative rise is downhill. The steepness is the magnitude, but the sign gives direction.
Confirm ratio order
A 1:12 ratio usually means 1 unit rise over 12 units run. Reversing the ratio changes the result dramatically.
Step-by-Step Worked Example
The most common slope gradient problem is calculating percent grade from a known rise and horizontal run.
Calculate Percent Grade
Calculate Slope Angle
Calculate Slope Length
Result
The slope is 5%, approximately 2.86°, about 1:20 rise:run, with a diagonal slope length of 100.12 ft.
Is the answer reasonable?
Yes. A 5 ft rise over 100 ft of run should produce a 5% grade because the vertical change is 5 units for every 100 horizontal units.
Mixed-unit mini example
If the rise is 6 inches and the run is 10 feet, convert the run first: \(10\,ft=120\,in\). Then calculate:
This is the same 5% grade as the main example, but it is easy to get wrong if inches and feet are divided directly.
Slope Gradient Diagram
A slope gradient diagram is a right triangle: rise is vertical, run is horizontal, and slope length is the diagonal. The angle is measured from the horizontal run line.
Common Slope Reference Values
These values help you quickly check whether your result is plausible. Requirements vary by application, so treat the table as a conversion reference rather than a design standard.
| Rise:Run Ratio | Percent Grade | Approximate Angle | Quick Meaning |
|---|---|---|---|
| 1:100 | 1.00% | 0.57° | Very gentle slope |
| 1:50 | 2.00% | 1.15° | Gentle grade |
| 1:20 | 5.00% | 2.86° | Noticeable incline |
| 1:12 | 8.33% | 4.76° | Common ratio users often check |
| 1:10 | 10.00% | 5.71° | Steeper incline |
| 1:4 | 25.00% | 14.04° | Very steep for many uses |
| 1:1 | 100.00% | 45.00° | Rise equals run |
Design Ranges and Practical Checks
A mathematically correct slope is not automatically acceptable for design. The practical range depends on the surface, use case, safety requirements, drainage goal, and construction tolerance.
| Application | Common Slope Concern | What to Verify |
|---|---|---|
| Drainage and grading | Too flat may pond water; too steep may increase erosion. | Minimum slope, surface tolerance, flow path, and outlet condition. |
| Access routes and ramps | Too steep may create safety or accessibility issues. | Applicable accessibility criteria, landings, cross slope, and surface conditions. |
| Roads and driveways | Steep grades affect traction, sight distance, and vehicle access. | Local design standards, transitions, drainage, and winter conditions if relevant. |
| Roofs | Slope may be described as pitch instead of percent grade. | Roof system requirements, drainage, material limits, and manufacturer guidance. |
| Trails and landscaping | Steep grades may affect erosion, maintenance, and user comfort. | Surface material, runoff control, maintenance access, and site constraints. |
Drainage Slopes
Small grades can be important for drainage. A value that looks minor numerically may still control whether water moves or ponds.
Access and Walking Surfaces
Pedestrian and access slopes require code-specific review. Do not assume a calculated grade is acceptable without checking the governing requirement.
Roads, Trails, and Site Grading
Steeper grades may affect safety, erosion, vehicle access, surface traction, and constructability.
Engineering judgment check
If a slope controls public access, roadway design, drainage performance, erosion, or safety, use the calculator as a preliminary check only. Final design should confirm the relevant standards, field conditions, tolerances, and drainage paths.
Unit Conversion Notes
Slope is unitless only after rise and run are in the same length unit. The calculator can convert units, but manual calculations must handle conversions before division.
| Conversion | Value | Why It Matters |
|---|---|---|
| in to ft | \(12\,in=1\,ft\) | Common when rise is measured in inches and run is measured in feet. |
| ft to in | \(1\,ft=12\,in\) | Useful for roof, ramp, and short construction layout checks. |
| m to mm | \(1\,m=1000\,mm\) | Useful for small elevation differences over metric distances. |
| cm to m | \(100\,cm=1\,m\) | Prevents decimal-place mistakes in metric slope checks. |
Mixed-unit example
A 6 inch rise over a 10 ft run is not \(6/10\times100=60\%\). Convert 10 ft to 120 in first: \(6/120\times100=5\%\).
Percent Grade vs. Angle vs. Ratio
Percent grade, slope percentage, percent slope, angle, decimal slope, and ratio all describe the same slope, but different industries prefer different formats.
| Method | Example | Best For | Common Confusion |
|---|---|---|---|
| Decimal slope | 0.05 | Math, algebra, quick computation | Can look abstract without percent or units. |
| Percent grade / slope percentage | 5% | Roads, drainage, grading, terrain | 100% is 45°, not vertical. |
| Angle | 2.86° | Geometry, surveying, visualization | A 5° slope is not the same as a 5% slope. |
| Ratio | 1:20 | Construction layout, ramps, simple communication | Ratio order must be understood as rise:run. |
Common Mistakes That Cause Wrong Slope Results
Most bad slope results come from measuring the wrong distance, mixing units, or confusing degrees with percent grade.
Common Mistakes
- Using diagonal slope length instead of horizontal run.
- Entering rise in inches and run in feet without converting.
- Thinking a 45° slope is 45% grade.
- Reversing a 1:12 ratio as 12:1.
- Ignoring whether the slope is uphill or downhill.
Better Practice
- Use horizontal run for percent grade calculations.
- Convert rise and run to the same length unit.
- Use tangent and arctangent for angle conversions.
- Clearly label ratios as rise:run.
- Use a negative sign only when direction matters.
Troubleshooting Unexpected Results
If the slope result looks wrong, check the measurement basis before changing the formula.
| Problem | Likely Cause | Fix |
|---|---|---|
| Grade is much larger than expected | Rise and run are in different units or run was entered too small. | Check unit selectors and convert both dimensions consistently. |
| Grade is too low | Diagonal slope length was used instead of horizontal run. | Use horizontal distance in the grade formula. |
| Angle and percent do not seem to match | Degrees were treated as percent or percent was treated as degrees. | Use \( \theta=\tan^{-1}(\text{grade}/100) \). |
| Ratio result seems inverted | Rise and run were entered in the wrong order. | For 1:12, enter 1 as rise and 12 as run. |
| Result is undefined | Horizontal run is zero. | A vertical line has no finite percent grade; use angle or vertical geometry instead. |
Assumptions, Sources, and Limitations
This calculator uses basic right-triangle geometry and trigonometry. It assumes the slope can be represented as a straight line between two points.
Geometry Assumption
The slope is modeled as a straight right triangle with vertical rise and horizontal run.
Unit Assumption
Rise and run must represent the same physical length scale after unit conversion.
Application Limit
The calculator does not check drainage design, accessibility compliance, roadway standards, erosion, or construction tolerances.
Final Design Note
For field construction or public-use surfaces, verify the result against the applicable code, standard, plans, and professional judgment.
Calculation basis and source note
The formulas use standard slope and right-triangle relationships: \(m=\text{rise}/\text{run}\), \(\text{percent grade}=m\times100\), and \(\theta=\tan^{-1}(m)\). For an educational explanation of percent slope and slope angle, see the USGS guide to percent slope and angle of slope.
Glossary of Slope Terms
These terms help clarify the difference between slope, grade, angle, and ratio.
Rise
The vertical elevation change between two points.
Run
The horizontal distance between two points.
Percent Grade
Slope expressed as vertical change per 100 units of horizontal distance.
Slope Percentage
Another common name for percent grade or percent slope.
Slope Angle
The angle of the incline measured from a horizontal reference line.
Slope Ratio
A comparison of rise to run, commonly written as 1:12 or 1 in 20.
Slope Length
The diagonal distance along the sloped surface between the start and end points.
Frequently Asked Questions
What does a slope gradient calculator calculate?
It calculates slope from rise and horizontal run and can express the result as percent grade, decimal slope, angle, ratio, or slope length.
What is the formula for percent grade?
The percent grade formula is percent grade = rise divided by run multiplied by 100, where run is the horizontal distance.
How do you convert percent grade to degrees?
Use angle = arctan(percent grade divided by 100). For example, a 5 percent grade is arctan(0.05), which equals about 2.86 degrees.
Is a 100 percent slope vertical?
No. A 100 percent slope means rise equals run, which creates a 45 degree angle. A vertical slope has zero horizontal run and no finite percent grade.
Should slope grade use horizontal run or slope length?
Slope grade should use horizontal run. Slope length is the diagonal distance and is used for distance along the incline, not for percent grade.
What does a 1:12 slope mean?
A 1:12 slope means 1 unit of rise for every 12 units of horizontal run. It equals 8.33 percent and about 4.76 degrees.