piko

Slope calculator

Find the slope (m), line equation (y = mx + b), angle of inclination, and distance between two points.

Runs on your device. Nothing you add is uploaded.

Slope (m)
2
Rise 8 / Run 4
Slope-intercept form
y = 2x + 0
y-intercept (b)
0
Angle / Grade
63.43°
200% grade
Formula: m = (y₂ − y₁) / (x₂ − x₁) = (10 − 2) / (5 − 1) = 2. Distance = 8.944272.

How to use Slope calculator

  1. Enter the (x₁, y₁) and (x₂, y₂) coordinates of two distinct points.
  2. Use distinct points to define a line.
  3. Read the slope m, y-intercept b, full equation y = mx + b, and inclination angle.

Questions

The line is vertical, so rise/run divides by zero and the slope is undefined (x = x₁).

How this works

Computes linear slope, intercepts, and angles locally.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. What you typed and your settings are kept in this browser so the tool opens the way you left it, except passwords, keys and tokens, which are never saved. Privacy

Related tools

More in Calculators