## Distance between two points

This is free online distance formula calculator to calculate the distance between two points given the co ordinates of the distance.

## 2D distance calculator

In 2 dimensional distance calculator the co ordinates required of two points are along two axes namely X and Y.

The distance formula in 2 dimensional case is given as follow:

d=\sqrt{\left(x_{2}-x_{1}\right)^{2}+\left(y_{2}-y_{1}\right)^{2}}Consider following example :

Point 1 –> (1,2)

Point 2 –> (4,5)

d=4.2426406871

## 3D distance calculator

The distance formula in 3 dimensional case is given as follows:

d=\sqrt{\left(x_{2}-x_{1}\right)^{2}+\left(y_{2}-y_{1}\right)^{2}+\left(z_{2}-z_{1}\right)^{2}}

Consider following example :

Point 1 –> (1,2,3)

Point 2 –> (4,5,6)

d=\sqrt{\left(4-1\right)^{2}+\left(5-2\right)^{2}+\left(6-3\right)^{2}}

d=\sqrt{\left(3\right)^{2}+\left(3\right)^{2}+\left(3\right)^{2}}

d=\sqrt{\left(27\right)}

d=5.1961524227