About this tool
Slope & Line Equation Calculator is a free, in-browser tool that takes two points and returns everything about the straight line through them: the slope, the y-intercept, the full line equation, the angle of incline, the distance between the points and their midpoint. Every value is computed locally as you type — nothing is uploaded.
The slope is m = (y2 − y1) / (x2 − x1), the rise over the run. The y-intercept is b = y1 − m·x1, giving the equation y = m·x + b. The angle of incline is atan(m) converted to degrees, the distance is √((x2 − x1)² + (y2 − y1)²) from the Pythagorean theorem, and the midpoint is ((x1 + x2)/2, (y1 + y2)/2).
If the two x-values are equal the line is vertical: the slope is undefined (division by zero) and the equation collapses to x = x1, which the tool shows instead of a number. Use it for algebra homework, coordinate geometry or plotting — change any coordinate and all six results refresh instantly.