What is the formula for calculating the distance between two points?

1 Answer
May 8, 2017

The formula for calculating the distance between two points on a plane is:

d = sqrt((color(red)(x_2) - color(blue)(x_1))^2 + (color(red)(y_2) - color(blue)(y_1))^2)

The formula for calculating the distance between two points in 3D space is:

d = sqrt((color(red)(x_2) - color(blue)(x_1))^2 + (color(red)(y_2) - color(blue)(y_1))^2 + (color(red)(z_2) - color(blue)(z_1))^2)