Enter your details
How to calculate slope
Provide the x and y coordinates of two points on a line.
Enter point one
Enter the x and y coordinates for the first point.
Enter point two
Enter a second point; use a different x-value for a non-vertical line.
Read the line data
Review slope, rise, run, and the equation or vertical-line result.
Frequently Asked Questions
What is slope?
Slope measures vertical change divided by horizontal change: rise ÷ run.
How is rise calculated?
Rise is y₂ − y₁, the change between the two y-coordinates.
How is run calculated?
Run is x₂ − x₁, the change between the two x-coordinates.
What if both x-values are equal?
The line is vertical and its slope is undefined.
What is the line equation?
For a non-vertical line it is written as y = mx + b.
Can coordinates be negative?
Yes. Any finite coordinate values can be used.
Does point order matter?
Reversing the points produces the same slope and line equation.