Slope Calculator
Calculate slope, angle, percent grade, equation, intercept, and distance using the method you need.
| Quantity | Formula |
|---|---|
| Slope | m = (y₂ − y₁) / (x₂ − x₁) |
| Angle | θ = arctan(m) |
| Percent grade | % = 100 × m |
| Distance | d = √[(x₂ − x₁)² + (y₂ − y₁)²] |
Use this Slope Calculator to find slope, angle, percent grade, line equation, y-intercept, and distance from two points or other known line values.
Calculation Method
For two points (x₁, y₁) and (x₂, y₂):
Slope = (y₂ − y₁) ÷ (x₂ − x₁)
Angle = arctan(slope)
Percent grade = slope × 100
Distance = √[(x₂ − x₁)² + (y₂ − y₁)²]
For a non-vertical line:
y = mx + b
Example
For points (2, 3) and (8, 15):
Slope = (15 − 3) ÷ (8 − 2) = 2
Angle = arctan(2) ≈ 63.43°
Percent grade = 200%
Important Note
A vertical line has undefined slope because its horizontal change is zero. Percent grade and angle are not the same measurement; for example, a 100% grade corresponds to a 45° angle.