Skip to content
Math Calculators

Slope Calculator

Verified formula Updated Jun 2026 Private — runs on your device

Enter details
Verified formula Private

Slope (m)

3.0000

Y-intercept (b)
-1.0000
Distance between points
6.3246

For general information only — not financial, tax, legal or medical advice. Verify before you rely on it.

How to use the Slope Calculator

The Slope Calculator works out your slope (m), along with 2 related figures in an instant. Enter x₁, y₁ and x₂ and the result updates as you type — it is free, needs no sign-up, and runs entirely in your browser so your figures stay private.

  1. Enter the x₁.
  2. Enter the y₁.
  3. Enter the x₂.
  4. Enter the y₂.
  5. Read off your slope (m), together with y-intercept (b) and distance between points — the calculator updates automatically, with no button to press.

Formula

The Slope Calculator uses the formula:

Slope (m) = (y₂ - y₁) ÷ (x₂ - x₁)

Worked example

For example, with x₁ of 1, y₁ of 2, x₂ of 3 and y₂ of 8, the slope (m) is 3.0000.

Inputs used
x₁ 1
y₁ 2
x₂ 3
y₂ 8
Results
Slope (m) 3.0000
Y-intercept (b) -1.0000
Distance between points 6.3246

Results are estimates for educational use, not professional advice.

Key terms explained

Slope
The steepness of a line, measured as the change in y divided by the change in x.

Frequently asked questions

Slope is the change in y divided by the change in x: m = (y₂ − y₁) ÷ (x₂ − x₁). For the points (1, 2) and (3, 8), the slope is 6 ÷ 2 = 3.

The y-intercept is where the line crosses the y-axis, found from b = y − mx. Together with the slope it gives the line equation y = mx + b.

A slope of zero is a horizontal line. If the two x-values are equal the line is vertical and the slope cannot be calculated.

Using the distance formula √((x₂ − x₁)² + (y₂ − y₁)²), which is the Pythagorean theorem applied to the horizontal and vertical gaps.

Enter the x₁. Enter the y₁. Enter the x₂. Enter the y₂. Read off your slope (m), together with y-intercept (b) and distance between points — the calculator updates automatically, with no button to press.

Slope Table: Slope (m) by x₁

Reference table of slope (m) for Slope across a range of x₁ values — exact, engine-computed figures you can read off at a glance.

1 min read

Related calculators