Slope Calculator

Find the slope, angle and equation of the line through two points.

How to use the Slope Calculator

  1. Enter or choose the x₁.
  2. Enter or choose the y₁.
  3. Enter or choose the x₂.
  4. Enter or choose the y₂.
  5. Results update instantly as you type — press Calculate any time to refresh.

Formula

m = (y₂ − y₁) ÷ (x₂ − x₁); y = mx + b.

About this calculator

The slope of a line measures its steepness — rise over run. Enter two points to get the slope, the angle of the line and its equation in slope-intercept form.

Frequently asked questions

What is an undefined slope?

A vertical line, where x₂ − x₁ = 0.