Slope Calculator

Find the slope of a line between two points.

Last updated: 25 Aug 2026

Quick answer

The slope between two points is (y₂ − y₁) ÷ (x₂ − x₁), the rise over the run. For example, from (1, 2) to (4, 8) the slope is 2. Enter the two points above.

Find the slope (gradient) of a line through two points: m = (y₂ − y₁) ÷ (x₂ − x₁).

How to calculate slope

  1. 1 Enter the first point (x₁, y₁).
  2. 2 Enter the second point (x₂, y₂).
  3. 3 We compute the slope (rise ÷ run).

Frequently asked questions

What is slope?
The steepness of a line — the change in y divided by the change in x (rise over run).
What does a negative slope mean?
The line goes downward from left to right.
What if x₁ equals x₂?
The line is vertical and the slope is undefined.

Related checkers