Slope Calculator
Find slope, line equation, midpoint, and distance from two points.
Slope
1
Rise = 3, run = 3.
Line equation
Midpoint
Distance
Distance formula: · Midpoint:
Instant results
No waiting, no page reload.
Shows the steps
Learn the method, not just the answer.
Free forever
No account or payment required.
About the Slope Calculator
Enter two points and get the slope with rise-over-run working, the equation of the line in slope-intercept form, the midpoint, and the distance between the points.
Frequently asked questions
What is the slope formula for two points?+
Slope is rise over run: m = (y₂ − y₁) ÷ (x₂ − x₁). Subtract the y-values, then divide by the difference in x-values.
What does a vertical line have an undefined slope?+
A vertical line has x₁ = x₂, so the run is zero. Division by zero is undefined, so the slope is undefined.
How do I write the equation of the line?+
Use y = mx + b. After finding m, substitute one point to solve for b, the y-intercept.