Distance

Calculate the Euclidean distance between two points in 2D or 3D space using the Pythagorean formula. Free online calculator with midpoint and component breakdown.

Calculate distance between points

About This Calculator

The Distance Calculator computes the Euclidean distance between two points in 2D or 3D coordinate space. It also provides the midpoint coordinates and component differences (Deltax, Deltay, Deltaz) with an interactive bar chart. Switch between 2D and 3D modes depending on your needs.

The Euclidean distance formula is derived from the Pythagorean theorem. For 2D, it's d = sqrt((x2-x1)^2 + (y2-y1)^2). For 3D, it extends to d = sqrt((x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2). This is the most common distance metric used in geometry, physics, computer graphics, and data science.

Frequently Asked Questions

What is the Euclidean distance formula?

For 2D: d = sqrt((x2-x1)^2 + (y2-y1)^2). For 3D: d = sqrt((x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2).

What is the midpoint formula?

The midpoint is the average of the coordinates: M = ((x1+x2)/2, (y1+y2)/2) for 2D.

What is the difference between distance and displacement?

Distance is the total path length, while displacement is the straight-line distance between start and end points.

Can this calculator handle negative coordinates?

Yes, negative coordinates are fully supported.

Is this tool free?

Yes, all calculators on Calculy are completely free to use.