Slope Calculator

Enter two points (x1, y1) and (x2, y2) to calculate the slope of the line through them.

Slope Calculator tool

Result will appear here.
Metric Value

Uses the slope formula: (y2−y1)/(x2−x1).

Privacy: calculations run locally in your browser. No coordinates are stored or transmitted.

Slope formula:
m = (y2−y1) / (x2−x1)

Examples

  • (1, 2) to (4, 8) → slope = 2
  • (0, 0) to (3, 3) → slope = 1
  • (2, 1) to (2, 5) → slope = undefined

FAQ

  • What is slope?

    Slope measures the steepness of a line and is calculated as rise over run: (y2−y1)/(x2−x1).

  • What if x1 equals x2?

    Then the slope is undefined because the line is vertical and division by zero would occur.

  • Can slope be negative?

    Yes. A negative slope means the line goes down as x increases.

  • Are my coordinates stored?

    No. Calculations run locally in your browser and are not stored or transmitted.

Related tools