Slope Calculator
Enter the coordinates of two points.
How this calculator works
Slope is rise over run: m = (y2 – y1) / (x2 – x1). A positive slope rises left to right, a negative slope falls, zero is flat, and a vertical line has no defined slope. The line equation is y = mx + b.
Frequently asked questions
What is the slope of a horizontal line?
Zero.
Why is a vertical slope undefined?
The run is zero, and dividing by zero has no value.
How do I find the y-intercept?
Put one point in y = mx + b and solve for b. The calculator does this for you.