Slope calculator

Find the slope, intercepts, angle and equation through two coordinate points.

Slope
2

The line rises as x increases.

Breakdown & share
Line equation
y = 2x + 0
Rise
8
Run
4
y-intercept
0
x-intercept
0
Angle
63.4349488°
Estimates only.

Your inputs

Example values. Change any of them.

How it’s worked out

See how we got 2

Slope m = (y₂ − y₁) ÷ (x₂ − x₁). For a nonvertical line, y = mx + b and b = y₁ − mx₁.

  1. Subtract x coordinates for the run and y coordinates for the rise.
  2. Divide 8 by 4 to find 2.

About this calculator

Find the slope, intercepts, angle and equation through two coordinate points.

Worked example

Slope · 2

Slope m = (y₂ − y₁) ÷ (x₂ − x₁). For a nonvertical line, y = mx + b and b = y₁ − mx₁.

  1. Subtract x coordinates for the run and y coordinates for the rise.
  2. Divide 8 by 4 to find 2.

Formula sources

Reference checked November 22, 2026.