# Calculate the distance using the coordinates in basic mathematics

If two points in a graph share x and y coordinates, the distance between them is the difference between the coordinates that do not share. For example, if a **point** has the **coordinates** (1, 7), and the other has the coordinates (1, 12), the **distance between them** is 5 units, the difference between 12 and 7. However, if both points do not share coordinates, the distance between them is the length of the diagonal that joins them. This length is calculated using the Pythagorean theorem.

#### one

Subtract the first point of the "x" coordinate to the first point of the second. If, for example, the two points have coordinates (1, 9) and (13, -12), then subtracting the values of the coordinates "x" is 13 - 1 = 12.

#### two

Make the square of this difference: (12) ^ 2 = 144.

You can observe that it is indifferent if we make step number one subtract it in an inverse way, the result will be the same, since when we make the square root the sign is indifferent, we see it:

- We subtract the values of the "x": 1 - 13 = -12
- Square root of (-12) ^ 2 = 144

#### 3

Subtract the first point of the coordinate to the first point of the second: (-12) - 9 = -21.

#### 4

Re-make the square of this difference in this way: (-21) ^ 2 = 441.

#### 5

Add the two places: 144 + 441 = 585.

#### 6

Find the square root of this sum: 585 ^ 0.5 = 24.19. So therefore points are approximately 24.19 units away.