new Maths

Slope Calculator from Two Points

Enter two points to calculate the gradient, rise, run, y-intercept, and equation of the line.

Enter your details

Result
—
Enter your details to calculate.
Rise
—
Run
—
Line equation
—

How to calculate slope

Provide the x and y coordinates of two points on a line.

1

Enter point one

Enter the x and y coordinates for the first point.

2

Enter point two

Enter a second point; use a different x-value for a non-vertical line.

3

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.