Mathematics Knowledge · 8 min lesson

What you will learn
Find the distance between two points, whether the segment is straight or slanted, and find the midpoint by averaging the coordinates.
The lesson
On a coordinate grid you can measure two things between points: how far apart they are (distance) and the point exactly halfway between them (midpoint). Both come from the same idea: look at how much x changes and how much y changes.
Straight across or straight up
If two points share the same y-coordinate, the segment is horizontal. Its length is the difference of the x-coordinates. If they share the same x-coordinate, the segment is vertical, and its length is the difference of the y-coordinates. Distance is never negative, so take the absolute value (the size, ignoring the sign).
| Points | Type | Distance |
|---|---|---|
| (−6, 1) and (2, 1) | Horizontal (same y) | |2 − (−6)| = 8 |
| (5, −4) and (5, 3) | Vertical (same x) | |3 − (−4)| = 7 |
Subtracting a negative number is where most errors happen. From −4 up to 3 is 4 units to reach 0, then 3 more, for 7 in all.
Slanted segments: build a right triangle
When both coordinates change, the segment is diagonal. Do not just add the changes. Instead, picture the horizontal change (the run) and the vertical change (the rise) as the two legs of a right triangle. The segment itself is the long side, so the Pythagorean theorem gives its length.
d = √((x₂ − x₁)² + (y₂ − y₁)²). It is just the Pythagorean theorem with run and rise as the legs.
Because you square the changes, it does not matter which point you call "first." A change of −8 squared is still 64.
Midpoint: average each coordinate
The midpoint is halfway in x and halfway in y. Add the two x-values and divide by 2. Then do the same for y.
- Average the x's(x₁ + x₂) ÷ 2
- Average the y's(y₁ + y₂) ÷ 2
- Write the pair(average x, average y)
For (2, −1) and (8, 5), the midpoint is ((2 + 8)/2, (−1 + 5)/2) = (5, 2). A midpoint can have fractions or decimals, like (0.5, 3).
You can also work backward. If M(1, 5) is the midpoint and one endpoint is (−2, 3), the other endpoint is the same step past M: x goes from −2 to 1 (up 3), so it continues to 4. y goes from 3 to 5 (up 2), so it continues to 7. The other endpoint is (4, 7).
Midpoint uses addition: (x₁ + x₂)/2. Distance uses subtraction: x₂ − x₁. Mixing them up is a classic wrong answer.
Worked example
What is the distance between the points (−1, −3) and (4, 9)? Also find the midpoint.
- Run4 − (−1) = 5.
- Rise9 − (−3) = 12.
- Pythagorean theoremd = √(5² + 12²) = √(25 + 144) = √169 = 13.
- Midpoint((−1 + 4)/2, (−3 + 9)/2) = (1.5, 3).
Answer: distance 13; midpoint (1.5, 3)
The diagonal must be longer than the bigger leg (12) but shorter than the two legs added (17). 13 fits. Common right-triangle sets like 3-4-5, 5-12-13 and 8-15-17 often show up, so spot them to skip the square root.
Practice with a hint
Hint: Compare the two points. Which coordinate stays the same, and what does that tell you about the direction of the segment?
Try it on your own
Write the midpoint rule for just the coordinate that contains the unknown, then solve that one equation.
Common mistakes
- Adding the run and rise for a slanted segment. For a run of 3 and a rise of 4, the distance is 5, not 7.
- Sign slips when subtracting negatives. From y = −2 to y = 6 is 6 − (−2) = 8, not 4.
- Subtracting in the midpoint formula. The midpoint of (1, 2) and (7, 8) is (4, 5). Using (7 − 1)/2 gives 3, which is half the distance, not a position.
- Forgetting to divide by 2. (1 + 7, 2 + 8) = (8, 10) is not the midpoint. Halve each sum.
- Leaving a negative distance. The distance from (0, 3) to (0, −5) is 8, not −8.
Next step
- Horizontal or vertical: distance is the difference in one coordinate.
- Slanted: use run and rise in the Pythagorean theorem.
- Midpoint: average the x's and average the y's.
- Distance subtracts; midpoint adds and halves.
Practice this with the free Mathematics Knowledge practice test, then review key ideas with the Mathematics Knowledge flashcards.