Slope from two points calculator

Compute the slope m = (y₂ − y₁) / (x₂ − x₁) and the line equation through two points.

Loading tool…

Recommended next step

Related math tools

After using Slope from two points calculator, continue with Distance between two points.

Open next

Tools selected to complete the same task.

4 steps

Tool guide

Slope from two points calculator: how it works

Practical information to understand the result and use this tool correctly.

About Slope from two points calculator

Slope is rise over run between two distinct points on a line.

The tool also writes point-slope and y=mx+b forms when the slope is defined.

Matching x-coordinates produce a vertical line with undefined slope.

How to use it

  1. 1Enter (x₁,y₁) and (x₂,y₂).
  2. 2Calculate slope and line equations.
  3. 3Watch for the vertical-line case when x₁=x₂.

Frequently asked questions

Horizontal line?
Equal y values → m = 0 and y equals that constant.
Undefined slope?
Equal x values → vertical line x = constant.