Math & Statistics

Slope Calculator

Find the slope and vertical intercept of the line through two distinct coordinate points.

Private, in-browser calculationUpdated

Let’s work it out

Enter your numbers. We’ll show the working.

How to use this calculator

  1. Enter first point x and the remaining values.
  2. Check the selected units and the counting or calculation convention described below.
  3. Select Calculate to review the result and breakdown. Reset restores the example.

The formula

Slope = (y₂−y₁)/(x₂−x₁); intercept = y₁ − slope × x₁

Subtract coordinates in the same order to form rise and run. A zero run gives a vertical line, whose slope is undefined; two identical points do not define a unique line.

PUTTING IT INTO PRACTICE

A worked example

Points (0,0) and (3,4) give slope 4/3 and vertical intercept 0. Points (2,1) and (2,5) define x = 2.

How to interpret your result

Slope is vertical change per horizontal unit, not an angle in degrees.

Assumptions and limitations

Use the units, timing, and bounds stated beside the inputs. Example values are hypothetical; replace them with your own.

Planar coordinates with consistent axis scales; no map projection or geodesic calculation.