MathSolver AI

Slope Formula

Rise over run. A horizontal line has slope 0. A vertical line has undefined slope.

Variables

When to use it

Whenever you have two points on a non-vertical line and need the rate of change.

Worked example

(1, 2) and (3, 6)

  1. m = (6-2)/(3-1) = 2

Answer: 2

Solve a problem

No account required. Type, upload, or snap a photo.

Press Ctrl+Enter to solve

Example problems

Common mistakes

Subtracting in inconsistent order

If y₂ − y₁ is on top, x₂ − x₁ must be on the bottom.

Related formulas

Related calculators

Frequently asked questions

What is slope-intercept form?

y = mx + b, where m is slope and b is the y-intercept.