Distance Between Points Calculator

Calculate the distance between two points in 2D or 3D space.

By Konstantin Iakovlev · Updated April 2026 · Source: Khan Academy

Distance

5.0000

Midpoint

(2.50, 4.00)

Calculation

dx3.00
dy4.00
Distance5.0000

Use the Distance Between Points Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.

How It Works

Measuring the straight-line gap between two points, whether they sit on a flat plane or in three-dimensional space, is a routine need across navigation, engineering, and urban planning, think of gauging the distance between the 2026 Olympic Village and the main stadium. This calculator returns that measurement quickly and without rounding error creeping in by hand.

The method is the Pythagorean theorem, carried into more than one dimension. For two points in 2D, (x1, y1) and (x2, y2), the distance is D = sqrt((x2 - x1)^2 + (y2 - y1)^2). Add a third axis and the same idea extends: for (x1, y1, z1) and (x2, y2, z2), the formula becomes D = sqrt((x2 - x1)^2 + (y2 - y1)^2 + (z2 - z1)^2).

Keep every coordinate in the same unit; pairing meters with kilometers will throw the answer off entirely. The classic slips in doing this by hand are forgetting to square each difference before adding them, or skipping the final square root, both of which the calculator handles for you. What it can't catch is a mistyped coordinate, so give your inputs a second look before relying on the result.

Example: Calculating the distance between two drone delivery hubs in Neo-Austin 2026.

  1. 1 Input the coordinates for the first drone hub at (15 km, 20 km, 5 km altitude) and the second hub at (40 km, 5 km, 10 km altitude).
  2. 2 The calculator applies the 3D distance formula: sqrt((40-15)^2 + (5-20)^2 + (10-5)^2) = sqrt(25^2 + (-15)^2 + 5^2) = sqrt(625 + 225 + 25) = sqrt(875).
  3. 3 The calculated distance between the two drone delivery hubs is approximately 29.58 km.
  4. 4 This distance is crucial for optimizing drone flight paths, estimating fuel consumption for 2026 autonomous logistics, and ensuring timely deliveries across the city's vertical infrastructure.

Source: Khan Academy · Last updated: April 2026

Frequently Asked Questions

What is the formula for distance between two points?
In 2D, the distance formula is the square root of (x2-x1)^2 + (y2-y1)^2, which is derived from the Pythagorean theorem. In 3D, add (z2-z1)^2 under the square root.
How is Manhattan distance different from Euclidean distance?
Euclidean distance is the straight-line distance between two points (the hypotenuse). Manhattan distance is the sum of the absolute differences of coordinates, like walking along a grid of city blocks. Manhattan distance is always greater than or equal to Euclidean distance.
Can I use the distance formula for GPS coordinates?
Not directly. GPS coordinates are on a sphere, so you need the Haversine formula for accurate distances. The simple distance formula works only for small distances (a few miles) where the curvature of the Earth is negligible.