Everyday utility

Slope Calculator

Enter two points to calculate slope, line equation, distance between points, and whether the line rises, falls, stays horizontal, or is vertical.

Last reviewed May 18, 2026 by ToolSpilo Editorial Team.

Review method: Reviewed against the implemented slope formula and coordinate examples, displayed formulas, and worked examples.

Calculator tool

How this calculator works

Use the explanation to understand the formula, assumptions, and practical limits behind the calculator result.

What Slope Measures

Slope tells you how much a line rises or falls as it moves to the right:

m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}

It is often described as rise over run.

A Simple Example

From (1,2)(1, 2) to (4,8)(4, 8), the rise is 82=68 - 2 = 6 and the run is 41=34 - 1 = 3, so the slope is:

6÷3=26 \div 3 = 2

How to Read the Result

  • Positive slope: the line rises from left to right.
  • Negative slope: the line falls from left to right.
  • Zero slope: the line is horizontal.
  • Undefined slope: the line is vertical because the horizontal change is zero.

The calculator also reports the line equation and point-to-point distance when those values are available.

Frequently asked questions

Why is the slope of a vertical line undefined?

Because the horizontal change is zero, and slope would require division by zero.

What does a negative slope mean?

It means the line decreases as xx increases, so the graph falls from left to right.

Why does the calculator also show y-intercept?

Once slope is known, one entered point can be substituted into y=mx+by = mx + b to recover the line equation.

Can two different point pairs describe the same line?

Yes. Any two distinct points on the same straight line produce the same slope.