Slope Calculator

Enter two points. You get the slope, the line through them in slope-intercept form, the distance and the midpoint.

How it works

  1. Slope

    Rise over run: m = (y₂ − y₁) / (x₂ − x₁).

  2. Line equation

    Substitute one point into y = mx + b and solve for b.

  3. Distance

    Use the Pythagorean theorem on the differences: √((x₂ − x₁)² + (y₂ − y₁)²).

  4. Midpoint

    Average the x values and average the y values.

Common questions

What is the slope of a vertical line?

It is undefined, because the run is zero. The line's equation is x = a constant.

What does a negative slope mean?

The line falls from left to right: y decreases as x increases.

More free calculators