Distance Between Two Points

Written by Jerry Ratzlaff on . Posted in Geometry

The distance between two points using two given coordinate points.

 

Distance between two points (2d) formula

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

Where:

\(\large{ d }\) = distance

\(\large{ x_1 }\) = x-coordinate of first point

\(\large{ y_1 }\) = x-coordinate of first point

\(\large{ x_2 }\) = x-coordinate of second point

\(\large{ x_2 }\) = x-coordinate of second point

 

Distance between two points (3d) formula

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

Where:

\(\large{ d }\) = distance

\(\large{ x_1 }\) = x-coordinate of first point

\(\large{ y_1 }\) = x-coordinate of first point

\(\large{ z_1 }\) = x-coordinate of first point

\(\large{ x_2 }\) = x-coordinate of second point

\(\large{ x_2 }\) = x-coordinate of second point

\(\large{ z_2 }\) = x-coordinate of second point