Distance — Definition, Formula & Examples
Distance is the length of the straight line segment between two points. On a coordinate plane, you can calculate it using the coordinates of those points.
Given two points and in the Cartesian plane, the distance between them is defined as the non-negative value , derived from the Pythagorean theorem.
Key Formula
Where:
- = Distance between the two points
- = Coordinates of the first point
- = Coordinates of the second point
How It Works
Picture the two points on a coordinate grid. Draw a horizontal segment from one point and a vertical segment from the other so they form a right triangle. The horizontal leg has length and the vertical leg has length . The distance between the two points is the hypotenuse of that right triangle, which you find using the Pythagorean theorem.
Worked Example
Problem: Find the distance between the points (1, 2) and (4, 6).
Subtract the coordinates: Find the differences in the x-values and y-values.
Square and add: Square each difference and add the results.
Take the square root: The distance is the square root of the sum.
Answer: The distance between (1, 2) and (4, 6) is 5 units.
Why It Matters
The distance formula shows up constantly in geometry, physics, and computer science. Anytime you need to know how far apart two locations are — whether plotting a map route or detecting collisions in a video game — you're using this formula.
Common Mistakes
Mistake: Forgetting to square the differences before adding them.
Correction: Always square each difference first: and . Adding the raw differences and then squaring gives the wrong answer.
