Slope Calculator

m = (y₂−y₁) / (x₂−x₁). Returns slope-intercept form y = mx + b.

Inputs

Result

Slope (m)
3.000000
y = 3.0000x − 1.0000.
  • Point 1(1, 2)
  • Point 2(5, 14)
  • Δx (run)4
  • Δy (rise)12
  • Slope m3.00000000
  • y-intercept b-1.000000
  • Angle71.565°
  • Equationy = 3.0000x + -1.0000

Step-by-step

  1. Δx = 5 − 1 = 4.
  2. Δy = 14 − 2 = 12.
  3. m = Δy / Δx = 12 / 4 = 3.0000.
  4. b = y₁ − m × x₁ = 2 − 3.0000 = -1.0000.

How to use this calculator

  • Enter two points.
  • Read slope, y-intercept, and full line equation.

About this calculator

Slope m = rise/run = Δy/Δx. Positive = uphill; negative = downhill; 0 = horizontal; undefined = vertical. Slope-intercept form y = mx + b is the standard line equation. Slope generalizes to derivatives in calculus (instantaneous rate of change). In real life: highway grades (often expressed in %), roof pitches, escalator angles.

Frequently asked

Rate of change. m = 2 means y increases 2 for every 1 unit increase in x.

Related calculators