Chapter 1 · Number foundations review

Distance Between Points That Share a Coordinate

Find how far apart two points are when they share a coordinate by treating the two coordinates that differ as positions on one number line.

12 min read

How far apart are two points on the coordinate plane? In this lesson you will find out. Start with what you already know about an ordered pair (x,y)(x, y): it is two signed numbers (each can be positive, negative or zero), called coordinates, in a fixed order. The first coordinate, xx, is the horizontal position. A positive xx puts the point to the right of the vertical axis, and a negative xx puts it to the left. The second coordinate, yy, is the vertical position. A positive yy puts the point above the horizontal axis, and a negative yy puts it below.

The distance between two points is the length of the straight path that joins them. You will measure it in units, where 11 unit is the distance from 00 to 11 on either axis.

In this lesson you will only measure between two points that share a coordinate. That means the two points have the same xx or the same yy. The method you are about to learn depends on that.

Why does a shared coordinate help? Look at the points (2,5)(2, 5) and (9,5)(9, 5). Both have y=5y = 5, so they are at the same height, and the straight path between them runs left to right. Only the horizontal positions, 22 and 99, are different.

So you can set the shared 55 aside and treat 22 and 99 as two positions on one number line. Counting the one-unit steps from 22 to 99 gives 77, so the two points are 77 units apart.

The same idea works when the xx-coordinates match. Then one point is directly above the other, the path runs straight up and down, and you compare the two yy-coordinates on one number line.

Every problem in this lesson comes down to one question: how far apart are two positions on a number line?

To measure on a number line, you use absolute value. The absolute value of a number aa, written ∣a∣\lvert a \rvert, is the distance from aa to 00. A distance is never negative, so ∣a∣\lvert a \rvert is never negative. For example, ∣8∣=8\lvert 8 \rvert = 8 and ∣−8∣=8\lvert -8 \rvert = 8, because 88 and −8-8 are both 88 units from 00. Also, ∣0∣=0\lvert 0 \rvert = 0.

Do not confuse absolute value with order. Order follows position on the line: the number farther left on a horizontal line, or lower on a vertical line, is the lesser number. So −8-8 is less than −3-3. But −8-8 is farther from 00 than −3-3 is, so −8-8 has the larger absolute value: ∣−8∣=8\lvert -8 \rvert = 8 and ∣−3∣=3\lvert -3 \rvert = 3. In this lesson, larger absolute value always means farther from 00, not greater in order.

Now picture moving along the number line from one position to the other, and ask: do you pass through 00?

  • Same side of 0 (both positive or both negative): you do not pass through 00. Both positions lie in the same direction from 00, so the nearer one sits on the path from 00 to the farther one. The gap between them is the larger absolute value minus the smaller absolute value. For 22 and 99, that is 9−2=79 - 2 = 7, the same 77 units you counted.
  • Opposite sides of 0 (one negative, one positive): you do pass through 00. You cover the first position's distance from 00 and then the second's, so the gap is the two absolute values added together.

If one position is 00 itself, the gap is just the absolute value of the other position.

The table tests this reasoning. Four rows use positions that are 33 units and 88 units from 00, and the last row includes 00 itself.

Where two positions sit decides whether you subtract or add absolute values
PositionsWhere they sitReasoningDistance apart
33 and 88
Same side of 00 (both positive)
∣8∣−∣3∣=8−3=5\lvert 8 \rvert - \lvert 3 \rvert = 8 - 3 = 5
55 units
−3-3 and −8-8
Same side of 00 (both negative)
∣−8∣−∣−3∣=8−3=5\lvert -8 \rvert - \lvert -3 \rvert = 8 - 3 = 5
55 units
−3-3 and 88
Opposite sides of 00
∣−3∣+∣8∣=3+8=11\lvert -3 \rvert + \lvert 8 \rvert = 3 + 8 = 11
1111 units
33 and −8-8
Opposite sides of 00
∣3∣+∣−8∣=3+8=11\lvert 3 \rvert + \lvert -8 \rvert = 3 + 8 = 11
1111 units
00 and −8-8
One position is 00
∣−8∣=8\lvert -8 \rvert = 8
88 units

Let pp and qq be two positions on a number line. There is a short way to write the distance between them: ∣p−q∣\lvert p - q \rvert. This is called the absolute difference of pp and qq. Like every absolute value, it is never negative. It is also the same whichever position you call pp, because the gap is the same in both directions.

When both positions are positive, you can check it by subtracting the smaller from the larger: ∣8−3∣=∣5∣=5\lvert 8 - 3 \rvert = \lvert 5 \rvert = 5, which matches the first row of the table. When a position is negative, you do not need a rule for subtracting negative numbers. The same-side and opposite-side reasoning is how you find the value. For example, ∣8−(−3)∣\lvert 8 - (-3) \rvert stands for the distance between 88 and −3-3, and the third row shows that this distance is 3+8=113 + 8 = 11 units.

Key concept

Distance between points that share a coordinate

Use this when two points share a coordinate (same xx or same yy). Let pp and qq be the two coordinates that differ, and treat them as positions on one number line. The distance between the points is ∣p−q∣\lvert p - q \rvert. Find it from ∣p∣\lvert p \rvert and ∣q∣\lvert q \rvert, the distances of pp and qq from 00, which are never negative.

  • Same side of 0: larger absolute value minus smaller absolute value.
  • Opposite sides of 0: add the two absolute values.
  • One position is 0: the absolute value of the other position.

Choose larger by distance from 00, not by order. Order follows position on the line, so −8-8 is less than −3-3, yet ∣−8∣\lvert -8 \rvert is the larger absolute value.

distance between p and q=∣p−q∣\text{distance between } p \text{ and } q = \lvert p - q \rvert

Worked example

Both positions on the same side of 0

Find the distance between the points (−7,3)(-7, 3) and (−2,3)(-2, 3).

  1. Look for the shared coordinate. Both points have y-coordinate 3, so they are at the same height and the path between them is horizontal. Compare the x-coordinates as positions on one number line, and call them p and q.

    p=−7,q=−2p = -7, \quad q = -2
  2. Decide where the positions sit. Both are negative, so they are on the same side of 0, and the path between them does not pass through 0.

  3. Find each position's distance from 0. This is its absolute value, which is never negative.

    ∣−7∣=7,∣−2∣=2\lvert -7 \rvert = 7, \quad \lvert -2 \rvert = 2
  4. Because the positions are on the same side of 0, the nearer one sits on the path from 0 to the farther one, so subtract the smaller absolute value from the larger. Negative 7 is the lesser number because it is farther left, yet it has the larger absolute value. The result is the absolute difference of p and q.

    ∣p−q∣=∣−7∣−∣−2∣=7−2=5\lvert p - q \rvert = \lvert -7 \rvert - \lvert -2 \rvert = 7 - 2 = 5

Answer

The points (−7,3)(-7, 3) and (−2,3)(-2, 3) are 55 units apart.

Worked example

Positions on opposite sides of 0

Find the distance between the points (4,−6)(4, -6) and (4,5)(4, 5).

  1. Both points have x-coordinate 4, so one is directly above the other and the path between them is vertical. Compare the y-coordinates as positions on one number line, and call them p and q.

    p=−6,q=5p = -6, \quad q = 5
  2. One position is negative and the other is positive, so they are on opposite sides of 0. Find each position's distance from 0, its absolute value.

    ∣−6∣=6,∣5∣=5\lvert -6 \rvert = 6, \quad \lvert 5 \rvert = 5
  3. Because the positions are on opposite sides of 0, the path between them passes through 0: 6 units to reach 0, then 5 more units. Add the two absolute values to get the absolute difference of p and q.

    ∣p−q∣=∣−6∣+∣5∣=6+5=11\lvert p - q \rvert = \lvert -6 \rvert + \lvert 5 \rvert = 6 + 5 = 11

Answer

The points (4,−6)(4, -6) and (4,5)(4, 5) are 1111 units apart.

Worked example

Two distances, two different cases

Point AA is at (−6,−2)(-6, -2), point BB is at (−6,−9)(-6, -9) and point CC is at (3,−9)(3, -9). Find the distance from AA to BB and the distance from BB to CC.

  1. Points A and B have the same x-coordinate, negative 6, so compare their y-coordinates. The shared coordinate only shows that the path is vertical; it is not part of the arithmetic. Both y-coordinates are negative, so the positions are on the same side of 0.

    −2 and −9-2 \text{ and } {-9}
  2. On the same side of 0, the path between the positions does not pass through 0, so subtract the smaller absolute value from the larger.

    ∣−9∣−∣−2∣=9−2=7\lvert -9 \rvert - \lvert -2 \rvert = 9 - 2 = 7
  3. Points B and C have the same y-coordinate, negative 9, so compare their x-coordinates. One is negative and the other is positive, so the positions are on opposite sides of 0.

    −6 and 3-6 \text{ and } 3
  4. On opposite sides of 0, the path between the positions passes through 0, so add the two absolute values.

    ∣−6∣+∣3∣=6+3=9\lvert -6 \rvert + \lvert 3 \rvert = 6 + 3 = 9

Answer

The distance from AA to BB is 77 units, and the distance from BB to CC is 99 units.

The takeaway: When two points share a coordinate, the distance between them is the gap between the two coordinates that differ, read as positions pp and qq on one number line. That gap is ∣p−q∣\lvert p - q \rvert, and it is never negative. If the positions are on the same side of 00, subtract the smaller absolute value from the larger one, where larger means farther from 00, not greater in order. If they are on opposite sides of 00, add the two absolute values. Next, you will graph ordered pairs from a table of values and interpret points on a coordinate plane in real-world situations.