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

\[ \text{Percent Grade}=\frac{\text{Rise}}{\text{Run}}\times100 \]
1

Choose what to solve for

Select the unknown and the known slope format. The required inputs update automatically.

Choose the unknown slope value. Hidden fields are disabled and are not required.
For rise, run, and slope length problems, choose whether the slope is known from percent grade, angle, or ratio.
Use U.S. customary or metric defaults. Individual units can still be changed.
Enter rise and horizontal run to calculate percent grade.
2

Enter the known values

Percent grade uses horizontal run, not diagonal slope length.

Enter the vertical change. Positive values are uphill and negative values are downhill.
Enter the horizontal distance, not the diagonal distance along the slope.
Percent grade is rise divided by horizontal run, multiplied by 100.
Angle is measured from the horizontal. Positive values are uphill and negative values are downhill.
For a 1:12 slope, enter 1 for ratio rise.
For a 1:12 slope, enter 12 for ratio run.
Advanced Options
3

Visual Check

Confirm the rise, horizontal run, slope length, angle, and grade relationship.

Slope gradient visual diagram A right triangle slope diagram that updates with rise, run, slope angle, ratio, and percent grade.
4

Solution

Live result, slope conversions, warnings, and full solution steps.

Percent Grade
%
Real-time result updates as you type.

Quick checks

  • Check
Show solution steps See unit conversions, substitutions, assumptions, and slope checks
  1. Enter values to see the full solution steps and checks.
5

Source, Standards, and Assumptions

Calculation basis, constants, assumptions, and limitations.

Standard geometry formula

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.

Best for Converting rise and run into percent grade, angle, ratio, and slope length
Main result Percent grade, slope angle, rise, run, or diagonal slope length
Most important input Horizontal run, because grade is not based on diagonal slope length

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.

Slope Gradient Calculator inputs and outputs
TypeValueWhat It MeansCommon Unit
InputRise / vertical changeThe vertical elevation difference between the start and end of the slope.in, ft, mm, cm, m
InputHorizontal runThe horizontal distance over which the vertical change occurs.in, ft, yd, mm, cm, m
InputPercent grade / slope percentageSlope expressed as rise per 100 units of horizontal run.%
InputSlope angleThe incline angle measured from the horizontal.degrees or radians
InputRise:run ratioA ratio such as 1:12, meaning 1 unit of rise for 12 units of run.unitless ratio
OutputDecimal slopeThe raw rise divided by run value.unitless
OutputPercent gradeDecimal slope multiplied by 100.%
OutputSlope lengthThe 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

\[ m=\frac{\text{rise}}{\text{run}} \]

The decimal slope \(m\) is unitless as long as rise and run are converted to the same length unit before division.

Percent Grade Formula

\[ \text{Percent Grade}=\frac{\text{rise}}{\text{run}}\times100 \]

A 5% grade means 5 units of vertical change for every 100 units of horizontal distance.

Angle Formula

\[ \theta=\tan^{-1}\left(\frac{\text{rise}}{\text{run}}\right) \]

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

\[ L=\sqrt{\text{rise}^2+\text{run}^2} \]

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

\[ \theta=\tan^{-1}\left(\frac{\text{Percent Grade}}{100}\right) \qquad \text{Percent Grade}=\tan(\theta)\times100 \]

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.

Slope formula variables
SymbolMeaningHow to Enter It
\(m\)Decimal slope.Usually calculated from rise divided by run.
RiseVertical change in elevation.Enter positive for uphill and negative for downhill when direction matters.
RunHorizontal 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.
RatioRise 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.

Best calculator inputs for each solve mode
Solve ForBest Known InputsUseful For
Percent gradeRise and horizontal runFinding slope percentage from field measurements.
Slope angleRise and horizontal runConverting a measured slope into degrees.
Rise / dropRun plus percent grade, angle, or ratioFinding required elevation change over a known distance.
Horizontal runRise plus percent grade, angle, or ratioFinding how much horizontal distance is needed for a target slope.
Slope lengthRise and horizontal runFinding the diagonal distance along the incline.
1

Choose the solve mode

Select percent grade, slope angle, rise, horizontal run, or slope length.

2

Choose the known slope format

Use rise/run, percent grade, angle, or rise:run ratio depending on the values you know.

3

Check the unit selectors

Mixed units are common. For example, 6 inches over 10 feet must be converted before calculating grade.

4

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.

Common slope result interpretation
ResultApproximate MeaningWhat 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 undefinedHorizontal 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.

Example Scenario

Rise
\(5\,ft\)
Horizontal Run
\(100\,ft\)
Goal
Calculate percent grade, angle, ratio, and slope length.

Calculate Percent Grade

\[ \text{Percent Grade}=\frac{5}{100}\times100=5\% \]

Calculate Slope Angle

\[ \theta=\tan^{-1}\left(\frac{5}{100}\right)=2.86^\circ \]

Calculate Slope Length

\[ L=\sqrt{5^2+100^2}=100.12\,ft \]

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:

\[ \text{Percent Grade}=\frac{6}{120}\times100=5\% \]

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.

Right triangle diagram showing rise, horizontal run, slope length, slope angle, and percent grade relationship.
The diagram shows why percent grade is based on rise divided by horizontal run. The diagonal slope length is useful for distance along the incline, but it is not the run used in the grade formula.

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.

Common slope ratio, percent grade, and angle conversions
Rise:Run RatioPercent GradeApproximate AngleQuick Meaning
1:1001.00%0.57°Very gentle slope
1:502.00%1.15°Gentle grade
1:205.00%2.86°Noticeable incline
1:128.33%4.76°Common ratio users often check
1:1010.00%5.71°Steeper incline
1:425.00%14.04°Very steep for many uses
1:1100.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.

Practical slope checks by application
ApplicationCommon Slope ConcernWhat to Verify
Drainage and gradingToo flat may pond water; too steep may increase erosion.Minimum slope, surface tolerance, flow path, and outlet condition.
Access routes and rampsToo steep may create safety or accessibility issues.Applicable accessibility criteria, landings, cross slope, and surface conditions.
Roads and drivewaysSteep grades affect traction, sight distance, and vehicle access.Local design standards, transitions, drainage, and winter conditions if relevant.
RoofsSlope may be described as pitch instead of percent grade.Roof system requirements, drainage, material limits, and manufacturer guidance.
Trails and landscapingSteep 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.

Common unit conversions for slope calculations
ConversionValueWhy 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.

Comparison of slope expression methods
MethodExampleBest ForCommon Confusion
Decimal slope0.05Math, algebra, quick computationCan look abstract without percent or units.
Percent grade / slope percentage5%Roads, drainage, grading, terrain100% is 45°, not vertical.
Angle2.86°Geometry, surveying, visualizationA 5° slope is not the same as a 5% slope.
Ratio1:20Construction layout, ramps, simple communicationRatio 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.

Common slope calculation problems and fixes
ProblemLikely CauseFix
Grade is much larger than expectedRise and run are in different units or run was entered too small.Check unit selectors and convert both dimensions consistently.
Grade is too lowDiagonal slope length was used instead of horizontal run.Use horizontal distance in the grade formula.
Angle and percent do not seem to matchDegrees were treated as percent or percent was treated as degrees.Use \( \theta=\tan^{-1}(\text{grade}/100) \).
Ratio result seems invertedRise and run were entered in the wrong order.For 1:12, enter 1 as rise and 12 as run.
Result is undefinedHorizontal 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.

Related Calculators and Next Steps

Use these related tools when the slope result connects to a broader drainage, hydraulic, or site-grading workflow.

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.

Scroll to Top