How to Use the Slope Calculator: Steps and a Worked Example

By 1 min read

Find the slope of the line through two points. This guide shows what to enter, a worked example with real numbers, and the limits to keep in mind. The Slope Calculator tool is free, needs no account and runs in your browser.

What you need

  • First point: x, for example 0
  • Second point: x, for example 4
  • First point: y, for example 0
  • Second point: y, for example 3

Step by step

  1. Open the Slope Calculator tool.
  2. Fill in First point: x.
  3. Fill in Second point: x.
  4. Fill in First point: y.
  5. Fill in Second point: y.
  6. Read the result, which updates as soon as the inputs change.

Worked example

With these inputs:

  • First point: x: 0
  • Second point: x: 4
  • First point: y: 0
  • Second point: y: 3

the tool returns:

Slope: 0.75

A second example

Changing First point: x 0 to 10 gives:

Slope: -0.5

Comparing two runs like this is a quick way to see how much each input moves the result.

How it works

The calculation is: m = (y₂ − y₁) ÷ (x₂ − x₁). Enter x and y for two points on the line. The result is the slope, how much y changes for each step in x.

Things to keep in mind

The two x values must differ. A vertical line has an undefined slope.

If this is not quite what you need, try Midpoint Calculator, Distance Between Points Calculator or Linear Interpolation Calculator.

More from the blog