Enter two points and the calculator returns the slope, the y-intercept, the equation of the line, and the distance between the points, with each step shown.
Point 1 is (x1, y1); point 2 is (x2, y2).
Slope measures how steep a line is. It is the change in y divided by the change in x between any two points on the line, often called rise over run.
From the slope you can build the full equation of the line in slope-intercept form, y = mx + b, where b is the y-intercept found with b = y₁ - m x₁. The straight-line distance between the two points comes from the distance formula.
For more on slope and linear equations, see Wolfram MathWorld on the line.
Slope m = (y2 - y1) / (x2 - x1). It is the change in y divided by the change in x between two points on the line.
Once you have the slope m, use b = y1 - m times x1. The intercept b is where the line crosses the y-axis.
A slope of zero is a flat, horizontal line. An undefined slope, where x1 equals x2, is a vertical line.
With the distance formula, sqrt((x2 - x1)^2 + (y2 - y1)^2), which comes straight from the Pythagorean theorem.

Editor at Encore Editorial, Chris Terry sets the editorial standards here and turns dense topics into plain English. He has written widely on education, finance, and consumer markets.