Slope Calculator
Slope, y-intercept and distance between two points on a line.
Slope (m)
2.0000
- Slope (m)2.0000
- y-intercept (b)0.0000
- Distance between points4.4721
Inputs used
- Point 1 — x1
- Point 1 — y2
- Point 2 — x3
- Point 2 — y6
About this calculator
The slope of the line through two points is rise over run: m = (y₂ − y₁) ÷ (x₂ − x₁). A slope of 2 means the line climbs 2 units for every 1 unit it moves right; negative slopes fall; zero is horizontal.
With the slope known, the y-intercept follows from either point: b = y − mx, giving the full line equation y = mx + b. The distance between the points comes from the Pythagorean theorem on the run and rise.
Two points with the same x-coordinate make a vertical line — its slope is undefined (division by zero), and the calculator reports an error rather than a made-up number.
Results are informational only — not financial, medical or legal advice.