How slope calculator works
The slope of a line measures how steep it is — the change in y for each unit of x. Given two points (x1, y1) and (x2, y2), the slope is (y2 − y1) / (x2 − x1). A positive slope rises to the right, a negative slope falls, a zero slope is horizontal, and a vertical line has an undefined slope.
This calculator takes two points and returns the slope, the angle the line makes with the x-axis (in degrees), the y-intercept (where the line crosses y = 0), and the straight-line distance between the points. It also writes the line equation y = mx + b, and reports a vertical line as undefined with angle 90 degrees.
Enter the coordinates of the two points and the tool returns the slope, intercept, angle, length, and equation. Use it for algebra homework, graphing lines, and any task involving the gradient between two points.