The distance formula
The distance formula helps you calculate how far apart two points in a coordinate system are. To do this, it uses the Pythagorean theorem and its properties. Like this:
Draw a point in two dimensional Cartesian space. Now draw a line connecting that point with the point of origin. Do you see it? If not, draw a line passing through the point you selected that is perpendicular to the horizontal xaxis. You should notice that the line you just drew, together with the part of the xaxis and the line connecting your point to the point of origin, forms a right triangle. The line that connects your point and O is the hypotenuse of said triangle and the other two lines are the legs.
Now, you probably remember the Pythagorean theorem from the last lesson. If not, click on the Pythagorean theorem and refresh your memory. If you do, you probably remember that the length of the hypotenuse in a right triangle can be calculated using the formula:
c^{2} = a^{2} + b^{2 }
This is the basis of the distance formula. The square of the length of the hypotenuse is the sum of squares of the lengths of both legs. The length of a leg of the triangle in a coordinate system is the distance between two points in space that are the endpoints of that particular line. For clarity, let us call the line along the xaxis side a, and the line parallel to the y axis side b. Since none of the points that make side a do not change their position in relation to the y axis, the distance between them is simply the difference in size of the xcoordinates of the endpoints. Like this:
a = x_{2} – x_{1}
And that is the length of side a. The length of side b can be calculated in much the same way, only the coordinate that remains fixed is the xcoordinate (instead of the ycoordinate, as it was with side a). That means that the length of side b is:
b = y_{2} – y_{1}
Now since we know both legs, we can insert these small expressions in our equation and get:
C^{2} = (x_{2} – x_{1})^{2} + (y_{2} – y_{1})^{2}
If you calculate the square root of this equation, you will get what is called the distance formula.
The distance formula can be applied to calculate the distance between any two points in Euclidean space and it will be very useful in many occasions.
If you wish to practice what you learned about the distance formula, please feel free to use the math worksheets below.
The distance formula exams for teachers
Exam Name  File Size  Downloads  Upload date 
Integers


The distance formula – Integers – easy  0 B  4795  January 1, 1970 
The distance formula – Integers – medium  0 B  4247  January 1, 1970 
The distance formula – Integers – hard  0 B  2559  January 1, 1970 
The distance formula – Integers – very hard  0 B  1957  January 1, 1970 
Decimals


The distance formula – Decimals – easy  0 B  1230  January 1, 1970 
The distance formula – Decimals – medium  0 B  1269  January 1, 1970 
The distance formula – Decimals – hard  0 B  1321  January 1, 1970 
The distance formula – Decimals – very hard  0 B  1070  January 1, 1970 
Fractions


The distance formula – Fractions – easy  0 B  1205  January 1, 1970 
The distance formula – Fractions – medium  0 B  1085  January 1, 1970 
The distance formula – Fractions – hard  0 B  1094  January 1, 1970 
The distance formula worksheets for students
Worksheet Name  File Size  Downloads  Upload date 
The distance formula – Integers  0 B  4514  January 1, 1970 
The distance formula – Decimals  0 B  1701  January 1, 1970 
The distance formula – Fractions  0 B  1286  January 1, 1970 
The distance formula – Integers – Line segment  0 B  2699  January 1, 1970 