Slope Calculator

Free slope formula calculator for two points: m = (y₂−y₁)/(x₂−x₁). Flags vertical lines when x₂ = x₁. Instant rise-over-run math in your browser for algebra and graphing—no login.

How does this slope calculator work?

Enter two points. The tool computes m = (y₂−y₁)/(x₂−x₁). If x₂ equals x₁, it reports an undefined vertical line instead of dividing by zero.

What is the slope formula?

Slope m equals rise over run: Δy divided by Δx between the points. Positive slopes rise to the right; negative slopes fall to the right; zero slope is horizontal.

What happens for a vertical line?

When run is zero, slope is undefined (often described as infinite). The calculator shows a clear vertical-line message rather than Infinity or an error crash.

Slope vs distance?

Slope is a ratio; distance is a length from the Pythagorean formula. Use Distance Calculator for how far, Slope Calculator for how steep. Both share sibling tabs.

Do units matter?

Use the same unit on both axes. A slope of 2 means 2 vertical units per 1 horizontal unit of that scale—not a standalone length.

Is data uploaded?

No. Math runs in your browser. Coordinates are not stored as uploaded file content for analytics.

Is this calculator free?

Yes. Free with no login required on Power Tools.

  • distance-calculator
  • quadratic-formula-calculator
  • square-footage-calculator