Math101learn.math101.caDistance Formula
The distance formula uses horizontal and vertical change with the Pythagorean theorem to measure straight-line separation between coordinates.
The distance between $(x_1,y_1)$ and $(x_2,y_2)$ is $d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$.
Built from a right triangle
Horizontal change $\Delta x=x_2-x_1$ and vertical change $\Delta y=y_2-y_1$ form perpendicular legs of a right triangle. The segment joining the points is its hypotenuse, so
Taking the positive square root gives distance because length cannot be negative.
A reliable method
- Label the two points consistently.
- Calculate horizontal and vertical differences.
- Square each difference.
- Add.
- Take the principal square root.
- State exact or approximate form with units.
Because differences are squared, reversing both point labels gives the same distance.
Worked example
This is a scaled $3$–$4$–$5$ right triangle.
Exact and approximate form
For points $(1,2)$ and $(5,7)$, distance is
$\sqrt{41}$ is exact; $6.40$ is an approximation to two decimal places. Keep the radical during work and round only when the context requests a decimal.
Horizontal and vertical cases
If points share the same $y$-coordinate, distance is $|x_2-x_1|$. If they share the same $x$-coordinate, it is $|y_2-y_1|$. The general formula reduces to these simpler results automatically.
Recognizing the special case avoids unnecessary calculation and provides a check.
Proving geometric facts
Distances can verify triangle type and quadrilateral properties. Equal distances can establish congruent sides; squared distances can be compared without taking roots.
To test whether a triangle is right, find squared side lengths and check whether the two smaller sum to the largest.
Three dimensions
The same Pythagorean idea extends to space:
Each coordinate difference represents motion in a perpendicular direction.
Context and scale
Coordinate units might represent metres, kilometres, pixels, or map-grid intervals. If a map scale says one coordinate unit is $50$ m, multiply coordinate distance by $50$ to interpret the real separation.
Straight-line distance may differ from travel distance along roads or obstacles.
Common mistakes
Forgetting brackets around negative coordinates. Write $4-(-2)$ explicitly.
Adding differences before squaring. Square horizontal and vertical changes separately.
Stopping at $d^2$. Take the square root for distance.
Rounding too early. Preserve exact values until the final step.
Quick self-check
- Are my coordinate differences paired correctly?
- Did I square each complete difference?
- Is my answer nonnegative and at least as large as either leg?
- Are units and required precision included?
Related topics
Explore the idea
Geometry measurement
Change one quantity at a time and connect what moves to Distance Formula.
Try it yourself
Hints are part of learning. Open one whenever it makes the next step feel possible.
Find the distance between (−2, 3) and (4, −5).
- d = √((4 − (−2))² + (−5 − 3)²)
- d = √(6² + (−8)²)
- d = √100 = 10
End of lesson
Nice work making it this far.
Understanding grows through return visits. Save this lesson, try the practice, or continue when you are ready.
