Euclidean Distance Calculator
Enter coordinates for two points in any number of dimensions and get the straight-line Euclidean distance instantly.
Use the Euclidean Distance Calculator
Coordinates
Enter coordinates and click Calculate
Euclidean Distance
Squared distance:
Step-by-Step Formula
Coordinate Differences
| Axis | A | B | B − A | (B−A)² |
|---|---|---|---|---|
| Sum of squares | ||||
Copied!
Summary
The Euclidean distance is the straight-line distance between two points in any number of dimensions, calculated as the square root of the sum of squared differences between corresponding coordinates. It is the most common distance metric in geometry, machine learning, and data science, also called the L2 norm or L2 distance. This tool supports 2D, 3D, and arbitrary N-dimensional vectors.
How it works
- Select the number of dimensions (2D, 3D, or custom).
- Enter the coordinates for Point A and Point B.
- Click Calculate to compute the straight-line distance.
- The result shows the distance along with the squared distance and the step-by-step formula.
- Adjust dimensions dynamically to add or remove coordinate fields.
Use cases
- Find the straight-line distance between two GPS coordinates converted to Cartesian space.
- Compute vector similarity in machine learning and recommendation systems.
- Measure distances in 3D modeling and computer graphics.
- Validate distance calculations in physics and engineering problems.
- Calculate the L2 norm for data normalization tasks.
- Find nearest neighbors in N-dimensional feature spaces.
Frequently Asked Questions
Last updated: 2026-06-15 · Reviewed by Nham Vu