Math

Slope Calculator

Find the slope of the line through two coordinate points.

Free online toolWorks in your browserNo sign-up required

Slope Calculator

Explore this topic

Geometry & Triangles

Right triangles, areas, slopes, distances and common coordinate-geometry formulas.

Topic hub →

How to use this slope calculator

Enter the requested values above and select Calculate. The result updates immediately on the page, so you can change one value and compare different scenarios without leaving the calculator.

Formula and method

Slope m = (y₂ − y₁) ÷ (x₂ − x₁).

Example

For points (1,2) and (5,10), slope = 8 ÷ 4 = 2.

What this calculator is useful for

Find the slope of the line through two coordinate points. It is designed for quick estimates and everyday problem solving. When a calculation affects a contract, tax filing, medical decision or other high-stakes situation, verify the result with the appropriate professional or authoritative source.

Find rise divided by run

Between the points (1, 2) and (5, 10), vertical change is 10 − 2 = 8 and horizontal change is 5 − 1 = 4. The slope is 8 ÷ 4 = 2, meaning y rises by two units for each one-unit increase in x.

Special cases: a horizontal line has slope zero; a vertical line has an undefined slope because the run is zero. Swapping the order of both points does not change slope, but mixing their coordinates does.

Frequently asked questions

What does the Slope Calculator calculate?

Find the slope of the line through two coordinate points.

How does the calculation work?

Slope m = (y₂ − y₁) ÷ (x₂ − x₁).

Is this calculator free?

Yes. ERICH Calculators is free to use and no account is required.

Transparency

Method, assumptions & corrections

See how formulas, sources and limitations are handled across ERICH Calculators.