How is slope calculated?
Slope expresses the relationship between vertical rise and horizontal run.
To calculate it as a percentage, divide the rise by the horizontal distance and multiply by 100.
The angle is obtained using the arctangent trigonometric function.
General formula
Slope (%) = rise ÷ run × 100