Calculatorism

Distance Formula Calculator

Compute the distance between two points in 2D or 3D.

Input Data

2D or 3D.
X1
Y1
Z1
X2
Y2
Z2

Results

Euclidean distance.
5
Distance squared.
25
Explanatory note about the result.
距離 d = 5

At a glance:2D: d = √((x2−x1)²+(y2−y1)²). 3D adds (z2−z1)². Complements 3d-distance and slope.

Formula

d = √[Σ(x2_i − x1_i)²].

How to Use

  1. Pick dimension and enter the points.
  2. The tool returns the distance.

Case Studies

(0,0) to (3,4)

d = 5.

FAQ

Why squared distance?

Avoids a sqrt; useful when only comparing magnitudes.

Related Tools

References

Content review: Calculatorism Science Team. Results are for reference only; please refer to the relevant authorities for the official figures.

Found a problem with the results?

If this calculator's result is wrong, or you have any question about the calculation logic, please let us know. You are viewing:Distance Formula Calculator(/math/distance-formula)。