Ximpledu
English

Distance Formula

See how to use the distance formula
to find the distance between two points (2D, 3D).
2 examples and their solutions.

Distance Formula (2D)

Formula


d = (x2 - x1)2 + (y2 - y1)2

Example

Distance between (-3, 1) and (5, 4)
Solution

Distance Formula (3D)

Formula


d = (x2 - x1)2 + (y2 - y1)2 + (z2 - z1)2

Example

Distance between (2, -1, 3) and (5, 0, 1)
Solution