Slope calculator guide

How to use the Slope Calculator

The Slope Calculator finds rise, run, slope, and a line equation from two coordinate points.

Open the slope calculator

Quick start

  1. Enter x1 and y1 for the first point.
  2. Enter x2 and y2 for the second point.
  3. Press Calculate slope.
  4. Review rise, run, slope, and the line equation.

What slope means

Slope tells how steep a line is. It compares vertical change to horizontal change, often called rise over run.

Positive slope rises from left to right. Negative slope falls from left to right. A slope of zero is horizontal.

Vertical lines

If both points have the same x-value, the run is zero. Division by zero is undefined, so the slope is undefined.

The calculator still shows the vertical line equation as x equals the shared x-value.

Slope or distance

Use the Slope Calculator when you need steepness or a line equation.

Use the Distance Calculator when you need the straight-line length between the same two points.

Examples from the calculator

Positive slope (1, 2) to (5, 10)

m = 2

Negative slope (-2, 7) to (4, 1)

m = -1

Vertical line (3, 2) to (3, 8)

Undefined slope

History, privacy, and copying

Recent answers stay visible in the page while you work. The history is kept only in the current browser tab and is not sent to a server.

Copy answer copies the expression and result so you can paste it into notes, homework, a message, or another document.