ViewEarn.Find a tool ↗

Home / Math tools / Slope Calculator

Math · FREE ONLINE TOOL

Slope Calculator

Use two coordinates to find the rise, run, slope and equation of a line, with a matching coordinate diagram.

✓ No sign-up✓ Calculated in your browser✓ Sharp vector visuals
Loading the calculator…

How to use this slope calculator

  1. Enter point 1 · x, point 1 · y, point 2 · x.
  2. Check the labels and units before comparing the output.
  3. Read slope and the breakdown. Change one input to see how the result and visual respond.

Formula and method

Slope m = (y₂ − y₁) ÷ (x₂ − x₁). For a nonvertical line, intercept b = y₁ − mx₁.

What the result includes

Use two coordinates to find the rise, run, slope and equation of a line, with a matching coordinate diagram.

A vertical line has no finite slope. Identical points cannot define one unique line.

Worked example

Here is one reproducible example:

  • Point 1 · x: 1
  • Point 1 · y: 2
  • Point 2 · x: 5
  • Point 2 · y: 4

Slope: 0.5.

  • Rise: 2
  • Run: 4
  • Line equation: y = 0.5x + 1.5

The example is rounded for readability; calculations use unrounded intermediate values.

Questions about this calculator

What does the slope calculator calculate?

Use two coordinates to find the rise, run, slope and equation of a line, with a matching coordinate diagram.

What assumptions should I check?

A vertical line has no finite slope. Identical points cannot define one unique line.

Can I export my calculation?

Yes. Download CSV exports the result and available calculation table. Save visual SVG exports a sharp vector illustration. Calculations run in your browser.

Found a result that does not match your inputs? Report the inputs and result to support@viewearn.in.