Slope Calculator
Calculate the slope, distance, and equation of a line between two points.
Result
Fill in the fields above, then press Calculate.
A slope calculator finds the slope, y-intercept, and equation of a line from two points or a point and slope.
Examples
Two points
Points (1,2) and (3,8): m = (8-2)/(3-1) = 6/2 = 3, equation: y = 3x - 1
Point-slope
Point (2,5), slope 3: y - 5 = 3(x-2), so y = 3x - 1
Slope-intercept
Slope 2, intercept 3: y = 2x + 3
Frequently Asked Questions
What does slope represent?
Slope measures the steepness and direction of a line. It represents the rate of change: how much y changes for each unit change in x.
What is a perpendicular slope?
The perpendicular slope is the negative reciprocal of the original slope: m_perp = -1/m. Perpendicular lines intersect at 90 degrees.
What if the slope is undefined?
A vertical line has undefined slope because the denominator (x₂ - x₁) is zero. Vertical lines are written as x = constant.
Result
Your result appears here and follows you as you scroll.
Related Calculators
Quick Tips
- •Double-check your inputs — small errors lead to incorrect results.
- •Use decimal form for fractions when entering values.
- •Remember that vertical lines have undefined slope and cannot be expressed in y = mx + b form.