Back to calculators

Math

Slope Calculator

Use the slope formula to compute the slope between two coordinate points instantly.

How this calculator works

Compute slope from two points with rise and run breakdown.

Formula

slope (m) = (y2 - y1) / (x2 - x1)

Step-by-step

  1. Enter x1 and y1 for point 1.
  2. Enter x2 and y2 for point 2.
  3. Calculate to get slope, rise, and run.

Example

  • (x1, y1) = (2, 3)
  • (x2, y2) = (8, 15)

m = (15 - 3) / (8 - 2) = 2

FAQs

What if x2 equals x1?

Slope is undefined because the line is vertical and run equals zero.

Can slope be negative?

Yes. A downward line from left to right has a negative slope.

Related Math calculators