Slope Calculator

Enter two points to find the slope, equation, distance, midpoint, and direction of the line

Point 1

Point 2

Slope (m)

About the Slope Calculator

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.

The Formula

m = (y₂ - y₁) / (x₂ - x₁)   b = y₁ - m·x₁   d = √[(x₂-x₁)² + (y₂-y₁)²]   M = ((x₁+x₂)/2, (y₁+y₂)/2)

Frequently Asked Questions

What does the slope value tell me about a line?

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.

How do I find the y-intercept from slope and a point?

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.