What Is a Slope Calculator?
A slope calculator finds the steepness (slope) of a line between two points, along with the full line equation, distance between the points, and the angle of incline — useful for algebra, geometry, and real-world grade calculations.
How to Use the Slope Calculator
- Enter the coordinates of your first point (x₁, y₁).
- Enter the coordinates of your second point (x₂, y₂).
- View the slope, line equation, distance, and angle instantly.
Slope Formula
Worked Example
Slope: m = (8−2)/(4−1) = 6/3 = 2
Y-intercept: b = 2 − (2×1) = 0
Equation: y = 2x
Distance: √[(4−1)² + (8−2)²] = √(9+36) = √45 ≈ 6.71
Understanding Your Results
A positive slope means the line rises left to right; a negative slope means it falls. A slope of 0 is a horizontal line; an undefined slope (division by zero) means a vertical line. The angle of incline converts slope into degrees, useful for real-world grade or pitch calculations.
Common Mistakes to Avoid
- Subtracting coordinates in the wrong order (must be consistent: y₂−y₁ over x₂−x₁, not mixed).
- Dividing by zero when both points share the same x-coordinate (a vertical line has an undefined slope).
- Confusing slope (rise/run) with the angle of incline (measured in degrees) — they're related but not the same number.
Frequently Asked Questions
Subtract the y-coordinates and divide by the difference in x-coordinates: m = (y₂−y₁)/(x₂−x₁).
A slope of 0 means the line is perfectly horizontal — there's no change in y as x changes.
An undefined slope occurs when both points share the same x-coordinate, making the line vertical — you'd be dividing by zero in the slope formula.
First calculate the slope, then use one point to solve for the y-intercept (b) in y = mx + b.
Slope expressed as a percentage (rise/run × 100) is commonly used for road grades and roof pitches — this calculator also shows the equivalent angle in degrees.