Give us two points and we'll find the slope, the distance between them, the midpoint, and the full line equation — with every step of the math shown along the way.
The slope of a line measures how steep it is — how much it rises or falls for every unit it moves horizontally. Given two points on a line, the slope tells you the direction and steepness of that line: a positive slope rises left to right, a negative slope falls, a slope of zero is horizontal, and an undefined slope means the line is vertical.
This calculator also finds the straight-line distance between the two points (using the Pythagorean theorem), the midpoint (the point exactly halfway between them), and the full slope-intercept equation of the line passing through them — all with a complete step-by-step derivation.
For the points (1, 2) and (4, 8): the slope is (8-2)/(4-1) = 6/3 = 2. The distance is √(3² + 6²) = √45 ≈ 6.71. The midpoint is (2.5, 5). The line's equation is y = 2x.
Given points
Slope formula
Distance formula
Midpoint formula
Equation of the line