Math
How to Calculate Slope, Rise Over Run and Percentage Grade
Picture a ramp that climbs 0.6 metres over 8 metres measured across the floor. The climb, the horizontal distance and the length along the ramp are three different measurements. If you put the sloping length under the rise, you answer a different trigonometry question.
Measure the run horizontally
Divide the vertical change by the horizontal change. The hypothetical ramp gives 0.6 ÷ 8 = 0.075, or 7.5% grade. Its angle above the horizontal is arctan(0.075), about 4.29°. Put rise and run in the same units first.
For a sketch or estimate, write both measurements and their units beside the final grade. If the surface changes pitch, the endpoints give an average grade over that span. A local steep section can have a different grade. The road and ramp examples here explain the arithmetic. Design or compliance decisions require actual measurements and the applicable standards.
Subtract coordinates in the same order
From (2, 7) to (10, 3), the run is 10 − 2 = 8 and the rise is 3 − 7 = −4. The slope is −4/8 = −0.5. Read left to right, the line falls. Reversing both subtractions gives 4 ÷ −8 and preserves the slope. Reversing just one subtraction flips the sign.
A horizontal line through (2, 7) and (10, 7) has zero rise and slope 0. A vertical line through (2, 7) and (2, 3) has zero run and undefined slope. A vertical line forms a 90° angle with the horizontal, but dividing by zero gives no finite percentage grade.
Read a percent grade as a ratio
A hypothetical road with a 6% descent in the direction of travel drops 6 metres per 100 horizontal metres. Its signed grade is −6%, and the signed inclination is about −3.43°. A road sign may give the grade’s magnitude alongside the direction of the hill.
Multiply slope by 100 to get grade percent. Take arctan of slope to get the signed angle in degrees. For instance, 100% corresponds to a slope of 1 and a 45° angle. The calculator can also show the directed angle from one point to the other. Reversing the points preserves the line slope and changes that direction.
