Math & Education

Slope Calculator

Calculate the slope between two points.

Enter the coordinates of two points to calculate the slope of the line between them, along with the distance and the line's equation.

Enter a valid number.
Enter a valid number.
Enter a valid number.
Enter a valid number.

Slope (m)

Line Equation

Distance Between Points

How to Use This Tool

  1. Enter the coordinates of two points (x₁,y₁) and (x₂,y₂).
  2. Click Calculate Slope to see the slope, line equation, and distance between the points.

The Slope Formula

Slope (m) = (y₂ − y₁) ÷ (x₂ − x₁)

Interpreting Slope

Finding the Line Equation

Once you have the slope, the line's equation in slope-intercept form (y = mx + b) can be found by solving for the y-intercept: b = y₁ − m × x₁.

The Distance Formula

This calculator also computes the straight-line distance between your two points using the distance formula: d = √[(x₂−x₁)² + (y₂−y₁)²] — derived from the Pythagorean theorem.

Frequently Asked Questions

What does an undefined slope mean?

An undefined slope occurs when the two points have the same x-coordinate, forming a vertical line — since the slope formula would require dividing by zero, which is mathematically undefined.

How is the distance formula related to slope?

They're both derived from the same two points, but measure different things — slope describes the line's steepness/direction, while distance measures the straight-line length between the two points, using the Pythagorean theorem.

This calculator is provided for general informational and estimation purposes only. Results should not be treated as professional financial, tax, legal, medical, or engineering advice. Always verify critical calculations with a qualified professional or official source before making decisions.