Road Gradient Calculator Formula
Understand the math behind the road gradient calculator. Each variable explained with a worked example.
Formulas Used
Gradient
gradient_pct = rise / run * 100Slope Ratio (1 in N)
ratio = run / riseSlope Distance
slope_length = sqrt(pow(rise, 2) + pow(run, 2))Variables
| Variable | Description | Default |
|---|---|---|
rise | Vertical Rise(m) | 5 |
run | Horizontal Run(m) | 100 |
How It Works
Road Gradient Calculation
Gradient expresses how steep a road is.
Formulas
Gradient (%) = (Rise / Run) x 100
Slope ratio = 1 in (Run / Rise) (e.g., 1 in 20)
Slope distance = sqrt(Rise^2 + Run^2)
Design guidelines typically limit residential roads to 8-12% and highways to 3-6% depending on terrain and design speed.
Worked Example
A road rises 5 m over a horizontal distance of 100 m.
rise = 5run = 100
- 01Gradient = 5/100 x 100 = 5%
- 02Slope ratio = 1 in 100/5 = 1 in 20
- 03Slope distance = sqrt(25 + 10000) = sqrt(10025) = 100.12 m
Ready to run the numbers?
Open Road Gradient Calculator