Slope calculator (two points)

Updated 30 November 2026 · ClearCost USA · 4 min read

Slope is rise over run: m = (y2 − y1) / (x2 − x1). From (1, 2) to (4, 8) the slope is 6 / 3 = 2, so the line is y = 2x + 0.
Advertisement

How do you find the slope of a line?

Subtract the y values and divide by the difference of the x values. Then the slope-intercept form is y = mx + b with b = y1 − m x1; point-slope form is y − y1 = m(x − x1).

What is the slope from (-2, 5) to (3, -5)?

m = (-5 − 5) / (3 − (-2)) = -2; b = 1, so y = -2x + 1. The line falls at -63.43°.

Advertisement

What do different slopes mean?

The table below gives ready answers for common values; the calculator above works for any value.

Slope, angle and percent grade

SlopeAngleGrade
000%
0.052.95%
0.251425%
0.526.650%
145100%
263.4200%
-1-45-100%

How does this calculator work?

It uses m = (y2 − y1)/(x2 − x1), b = y1 − m x1. Results update as you type and are rounded for display; the maths runs in your browser and nothing is stored.

For more, see the math, statistics and date calculators page, distance formula and midpoint calculator, quadratic formula calculator, square root and cube root calculator and exponent (power) calculator.

Advertisement

Related searches

People who use this page also search for the terms below; the calculator, tables and answers above cover each of them.

  • point slope form formula
  • what is the slope formula
  • how to do slope intercept form
  • write an equation in slope-intercept form for the graph shown
  • slope two point form
  • standard form to slope intercept form
  • point slope form to point intercept form
  • slope of a line formula
  • functions and slope quick check answer key
  • how do you convert standard form to slope intercept

Sources and further reading

Questions people ask

What is slope-intercept form?
y = mx + b.
What is a zero slope?
A horizontal line; you can check it with the slope tool above.
What is an undefined slope?
A vertical line (x2 = x1).
How do I convert slope to percent grade?
Multiply by 100; you can check it with the slope tool above.
What is point-slope form?
y − y1 = m(x − x1).
Are parallel lines the same slope?
Yes; perpendicular slopes multiply to −1.

Results are estimates for information only, not financial advice. Read the full disclaimer.

More free calculators

Advertisement