Distance Calculator Online

Find the distance and midpoint between two points in 2D or 3D space. Your coordinates stay on your device.

The Distance Calculator runs entirely in your browser. The coordinates you enter are computed locally and never leave your device.

Open the Slope Calculator

About Distance Calculator

Distance Calculator finds the straight-line distance and midpoint between two points using the Euclidean distance formula. Switch between 2D mode for (x, y) coordinates and 3D mode for (x, y, z) coordinates, type in both points, and the distance and midpoint update instantly as you type. It is useful for geometry homework, plotting coordinates on a graph, checking a physics problem, or working out how far apart two locations on a map or a 3D model are. The calculator also shows the exact formula it uses, so you can see how the result was derived. Built for students, teachers, and anyone who needs a quick, accurate distance-between-two-points calculation without doing the arithmetic by hand. Everything runs locally — no coordinates are uploaded.

Features

How to use the Distance Calculator

  1. Choose 2D or 3D mode depending on how many coordinates you have
  2. Type the x, y (and z) values for Point 1
  3. Type the x, y (and z) values for Point 2
  4. Read the distance and midpoint, or copy the summary

Example

Input

(0,0),(3,4)

Output

Distance: 5

The 3-4-5 right triangle: distance = √(3² + 4²) = 5.

Common errors & troubleshooting

Frequently asked questions

What formula does the Distance Calculator use?
In 2D it uses d = √((x₂ − x₁)² + (y₂ − y₁)²), the Euclidean distance formula. In 3D it adds a (z₂ − z₁)² term under the square root.
Can the Distance Calculator work with 3D coordinates?
Yes. Switch to 3D mode to enter an x, y, and z value for each point, and the calculator adds the z-difference into the distance formula automatically.
How does the Distance Calculator find the midpoint?
The midpoint is the average of each matching coordinate: ((x₁ + x₂) / 2, (y₁ + y₂) / 2), plus a z term in 3D mode. It is the point exactly halfway between the two you entered.
Does the Distance Calculator accept negative coordinates?
Yes. Points in any quadrant or octant work — negative x, y, or z values are handled the same as positive ones.
Is the Distance Calculator accurate for real-world map distances?
It computes straight-line Euclidean distance on flat coordinates, which is correct for plane geometry and graphing. It does not account for Earth's curvature, so it is not meant for long-range geographic distances.
Does the Distance Calculator upload my coordinates?
No. The Distance Calculator runs entirely in your browser. The coordinates you type never leave your device and are not uploaded to ArrayKit.

Related tools

All ArrayKit tools