Skip to content

Slope Calculator

Calculate the slope of a line from two points. See the slope, equation of the line, angle, graph, and step-by-step solution instantly.

Two points

m = (y₂ - y₁) / (x₂ - x₁)

Point 1
Point 2

Try an example

x [-10, 10]

Drag to pan · scroll or pinch to zoom · keyboard: arrows pan, + / - zoom, 0 reset

Calculation steps

Equation of the line

Additional properties

What does this slope mean?

What is slope?

Slope measures how steep a line is: how much y changes for each unit of x. If you have two points and need the steepness, the equation, or the angle between them, enter the coordinates and read every value with its working shown.

How to calculate slope

m = rise / run = (y₂ - y₁) / (x₂ - x₁)

  1. Subtract the first y-coordinate from the second to find the rise.
  2. Subtract the first x-coordinate from the second to find the run.
  3. Divide the rise by the run, provided the run is not zero.

Slope FAQ

What is the slope of a line?

The slope measures how steep a line is and how much y changes for each unit change in x.

How do you calculate slope from two points?

Subtract the y-coordinates to find the rise, subtract the x-coordinates to find the run, and divide the rise by the run when it is nonzero.

Can a slope be negative?

Yes. A negative slope means the line falls from left to right.

What is the slope of a vertical line?

It is undefined because the x-coordinate does not change and the run is zero.

What is the slope of a horizontal line?

It is zero because the y-coordinate remains constant.