Slope Calculator

Calculate the slope (steepness) of the line through two points.

Calculate

Enter your values below.

Result

Slope (m)
0

Formula used

m = (y₂ − y₁) ÷ (x₂ − x₁)

Example: (1,2) to (4,8) → slope = 2.

How to use this calculator

  1. Enter x₁, y₁, x₂, y₂.
  2. Press Calculate to see your result instantly.

Frequently asked questions

What does slope mean?

It measures how steep a line is — the change in y for each unit change in x.

What if x₁ equals x₂?

The line is vertical, and the slope is undefined (shown as such).

What does a slope of 0 mean?

The line is perfectly horizontal — y doesn't change as x changes.

What does a negative slope mean?

The line goes downward from left to right.