Skip to content
math

Slope Calculator

Find the slope, y-intercept, and equation of the line through two points.

Slope (m)
2
Line equation: y = 2x + 0

How it works

  1. 1Enter the coordinates of two points.
  2. 2The slope is the rise over the run: (y₂ − y₁) ÷ (x₂ − x₁).
  3. 3Read the slope, y-intercept, and the line equation y = mx + b.

Use cases

  • Find the slope of a line for geometry or graphing.
  • Derive the equation of a line from two points.
  • Check whether a line is steep, flat, or vertical.

Frequently asked questions

How do you find the slope between two points?

Divide the change in y by the change in x: m = (y₂ − y₁) ÷ (x₂ − x₁).

What is the y-intercept?

Where the line crosses the y-axis, found from b = y − mx. The tool shows the full equation y = mx + b.

Why is the slope undefined?

When both points share the same x-value the line is vertical, so the run is zero and the slope is undefined.

See all →