← All calculators / Math

Slope

Vertical lines have undefined slope.

01 / Your inputsBrowser-only calculation
Slope
—
How it works

The formula

(y₂ − y₁) / (x₂ − x₁)

Example inputs

x₁: 1 · y₁: 2 · x₂: 4 · y₂: 8

Result: 2 · Rise: 6 · Run: 3

What the Slope works out

Give the Slope the values it asks for and it reports slope, worked out from the formula (y₂ − y₁) / (x₂ − x₁). Vertical lines have undefined slope.

What each field means

x₁
A number; the example uses 1.
y₁
A number; the example uses 2.
x₂
A number; the example uses 4.
y₂
A number; the example uses 8.

A worked example

With the values this page opens on — x₁ 1, y₁ 2, x₂ 4, y₂ 8 — the answer is 2. The supporting detail reads: Rise: 6 · Run: 3. Reset restores exactly these numbers.

Reading the result

What you get back is slope. Each edit recomputes the answer and redraws the chart from your own figures, so the displayed rounding never feeds back into the calculation.

Assumptions and limits

Vertical lines have undefined slope.

Your privacy

Nothing you type leaves your browser.

Related calculators

Binary ↗ · Matrix ↗ · Factors ↗ · Z-score ↗