Last updated: March 2, 2026

How to Calculate Slope

Formula

Slope measures the steepness of a line: m = (y2 - y1) / (x2 - x1), or rise over run.

A positive slope goes uphill, a negative slope goes downhill, zero is horizontal, and undefined is vertical.

Common use cases:

  • Determining the grade of a road or ramp
  • Graphing linear equations
  • Rate of change in science and economics

Frequently Asked Questions

Share & Embed

Was this calculator helpful?

Related Calculators