Enter two points to find the slope, equation, distance, midpoint, and direction of the line
This slope calculator computes the slope (gradient) of a line passing through two points, the y-intercept, the linear equation in y = mx + b form, the distance between the points, the midpoint, and the line's direction.
Positive slope means the line increases (rises) from left to right. Negative slope means it decreases (falls). Zero slope is horizontal. Undefined (division by zero) means the line is vertical. The magnitude of m indicates steepness.
Start with the slope-intercept equation y = mx + b. Substitute the coordinates of either point for x and y, and the slope for m. Then solve for b: b = y - mx. This gives you the point where the line crosses the y-axis.