Loading calculator...
Loading calculator...
Calculate the distance between two points in 2D or 3D space using the Euclidean distance formula, plus the midpoint.
Point 1
Point 2
Distance Formulas:
2D: d = sqrt((x2-x1)² + (y2-y1)²)
3D: d = sqrt((x2-x1)² + (y2-y1)² + (z2-z1)²)
Midpoint (2D): ((x1+x2)/2, (y1+y2)/2)
Euclidean distance is the straight-line distance between two points, as measured with a ruler. It is based on the Pythagorean theorem generalized to any number of dimensions.
The midpoint is the exact center between two points. For 2D points (x1,y1) and (x2,y2), the midpoint is ((x1+x2)/2, (y1+y2)/2).
3D distance adds the z-axis. The formula extends the Pythagorean theorem: d = sqrt(dx² + dy² + dz²). You need a third coordinate for each point.
No. Distance is always a non-negative value. It represents the magnitude (length) of the vector between two points.
Manhattan distance (taxicab distance) is the sum of absolute differences in coordinates: |x2-x1| + |y2-y1|. It is used when movement is restricted to grid directions, unlike Euclidean distance which is diagonal.