Slope Calculator Guide: Formula & Slope Between Two Points

Learn how to find the slope of a line from two points, interpret the result, and recognize positive, negative, zero, and undefined slopes.

→ Use the free Slope Calculator

What is slope?

Slope measures how quickly a line rises or falls as you move from left to right. It is often represented by m and compares the change in y to the change in x.

m = (y₂ − y₁) ÷ (x₂ − x₁)
In words: slope = rise ÷ run.

How to find the slope between two points

Suppose the points are (2, 3) and (6, 11). Substitute the coordinates into the formula: (11 − 3) ÷ (6 − 2) = 8 ÷ 4 = 2. The slope is 2.

Types of slope

  • Positive: the line rises from left to right.
  • Negative: the line falls from left to right.
  • Zero: a horizontal line has slope 0.
  • Undefined: a vertical line has no finite slope because the run is zero.

Slope and slope-intercept form

In the equation y = mx + b, m is the slope and b is the y-intercept. If m = 3, the line rises 3 units for every 1 unit it moves right.

Worked examples

PointsSlope
(1, 2), (5, 10)2
(2, 8), (6, 4)−1
(1, 5), (7, 5)0

Common mistakes

  • Reversing the order of x and y differences.
  • Using y₁ − y₂ while using x₂ − x₁, which changes the sign.
  • Dividing by zero for a vertical line.
  • Confusing slope with the y-intercept.

Frequently asked questions

What is the slope formula?

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

How do you find slope between two points?

Subtract the y-coordinates, subtract the corresponding x-coordinates, and divide the first difference by the second.

What is the slope of a vertical line?

It is undefined because the change in x is zero and division by zero is not defined.

Calculate slope →