Distance, Midpoint & Slope Calculator

Find the distance, midpoint, slope and line equation between two points (x₁, y₁) and (x₂, y₂).

Results

Distance—
Midpoint—
Slope—
Line equation—

How to use the Distance, Midpoint & Slope Calculator

  1. Enter or select: x₁, y₁, x₂, y₂.
  2. The results (Distance, Midpoint, Slope, Line equation) are calculated instantly as you type.
  3. Use “Copy link” to share the calculation with the same input values.

Formula

  • d = √((x₂−x₁)² + (y₂−y₁)²)
  • m = (y₂−y₁)/(x₂−x₁)