Distance formula and midpoint calculator

Updated 30 November 2026 · ClearCost USA · 4 min read

The distance formula is d = √((x2 − x1)² + (y2 − y1)²), the Pythagorean theorem on a grid: (0, 0) to (3, 4) is 5.
Advertisement

How do you use the distance formula?

Find the horizontal and vertical differences, square them, add and take the square root. The midpoint averages the x values and the y values.

What is the distance from (-1, 2) to (5, 10)?

Differences 6 and 8 give √(36 + 64) = 10; the midpoint is (2, 6).

Advertisement

What are distance formula examples?

The table below gives ready answers for common values; the calculator above works for any value.

Distance and midpoint examples

PointsDistanceMidpoint
(0,0)-(3,4)5(1.5, 2)
(1,1)-(4,5)5(2.5, 3)
(-2,-3)-(4,5)10(1, 1)
(0,0)-(5,12)13(2.5, 6)
(2,3)-(2,9)6(2, 6)

How does this calculator work?

It uses d = √(Δx² + Δy²) and the average of coordinates. Results update as you type and are rounded for display; the maths runs in your browser and nothing is stored.

For more, see the math, statistics and date calculators page, slope calculator (two points), right triangle calculator (Pythagorean theorem), law of cosines calculator and circle calculator.

Advertisement

Related searches

People who use this page also search for the terms below; the calculator, tables and answers above cover each of them.

  • distance formula physics
  • formula to find the midpoint
  • midpoint and distance formula
  • midpoint method economics formula
  • total distance formula
  • midpoint formula calculator
  • midpoint formula of price elasticity of demand
  • pythagorean theorem and the distance formula
  • acceleration and distance formula
  • how to calculate midpoint

Sources and further reading

Questions people ask

Is the distance formula the Pythagorean theorem?
Yes, on a coordinate grid.
What is the midpoint formula?
((x1 + x2)/2, (y1 + y2)/2).
Can distance be negative?
No; you can check it with the distance and midpoint tool above.
How do you find distance in 3D?
Add (z2 − z1)² under the root.
What is the distance from (0,0) to (5,12)?
13; you can check it with the distance and midpoint tool above.
What is the slope between the points?
See our slope calculator.

Results are estimates for information only, not financial advice. Read the full disclaimer.

More free calculators

Advertisement