*Distance Formula*

These formulae are use to calculate distance between two points in Cartesian Coordinate System.

*Distance Formula in 2D*

For any two given points \( (x_1,y_1)\) and \((x_2,y_2)\) in 2D the distance *d* is calculated as:

\(d=\sqrt {(x_2 - x_1)^2 + (y_2 - y_1)^2 }\)

*Distance Formula in 3D*

For any two given points \( (x_1,y_1,z_1)\) and \((x_2,y_2,z_2)\) in 3D the distance *d* is calculated as:

\(d=\sqrt {(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2 }\)