Use the result with the units shown
Slope Calculator: what it calculates
Enter two points or a rise and run. The calculator returns the signed slope, measured rise and run, angle from the horizontal, and grade percentage.
Formula and inputs
Both coordinate axes must use consistent units. A vertical line has an undefined slope because its run is zero; a finite slope can also be expressed as a grade percentage.
m = (y₂ − y₁) ÷ (x₂ − x₁)slope = rise ÷ rungrade (%) = slope × 100angle = arctan(slope)Worked example: points (1, 2) and (3, 6)
| Rise | 6 − 2 = 4 |
|---|---|
| Run | 3 − 1 = 2 |
| Slope | 4 ÷ 2 = 2 |
| Grade | 2 × 100 = 200% |
A positive slope rises as x increases; a negative slope falls. The angle and grade are mathematical descriptions, not construction approvals.
Limits and assumptions
This tool does not verify roof, stair, drainage, road, accessibility, or structural requirements and does not apply a local code.
Slope Calculator FAQs
What does an undefined slope mean?
It means the run is zero, so the line is vertical and division by run is undefined.
How is grade percentage related to slope?
For a finite slope, grade percentage equals slope multiplied by 100. A slope of 0.5 is a 50% grade.
Is slope the same as an angle?
No. Slope is rise divided by run. The calculator derives an angle from the slope when a finite run is available.
Can I use slope to check a ramp or roof?
You can use it as a geometric input, but ramp, roof, and drainage rules include requirements this page does not evaluate.