Distance Formula -- How to Find Distance Between Two Points
Grade: 8-9 | Topic: Geometry
What You Will Learn
After this lesson you will be able to find the distance between any two points on a coordinate plane using the distance formula. You will understand where the formula comes from (it is the Pythagorean theorem in disguise), handle negative coordinates confidently, and apply the formula to both pure math and real-world problems.
Theory
Deriving the formula from the Pythagorean theorem
Take two points on a coordinate plane: and . Draw a horizontal line from and a vertical line from (or vice versa). These two lines meet at a third point , forming a right triangle .
The lengths of the legs are:
- Horizontal leg:
- Vertical leg:
The distance from to is the hypotenuse. By the Pythagorean theorem:
Take the square root of both sides:
This is the distance formula. Because the differences are squared, it does not matter whether you compute or -- the result is the same.
When coordinates are negative
Negative signs can look scary, but the squaring takes care of them. For example, if and :
The square of 7 is 49, exactly the same as the square of . So negative coordinates work perfectly in the formula -- just be careful with the subtraction.
Special cases
Horizontal segment (same -values): The vertical difference is 0, so:
Vertical segment (same -values): The horizontal difference is 0, so:
These are just common-sense results, but it is reassuring that the formula gives the correct answer in simple cases.
Worked Examples
Example 1: Both coordinates positive (easy)
Problem: Find the distance between and .
Step 1: Identify the coordinates.
Step 2: Substitute into the formula.
Step 3: Simplify.
Answer: The distance is 5 units.
Example 2: One point at the origin (easy)
Problem: Find the distance from the origin to the point .
Step 1: Substitute.
Step 2: Simplify.
Answer: The distance is 13 units. (This is the 5-12-13 Pythagorean triple.)
Example 3: Negative coordinates (medium)
Problem: Find the distance between and .
Step 1: Identify the coordinates.
Step 2: Compute the differences carefully.
Step 3: Substitute and simplify.
Answer: The distance is 13 units.
Example 4: Irrational result with simplification (medium)
Problem: Find the distance between and .
Step 1: Compute differences.
Step 2: Substitute.
Step 3: Simplify the radical.
Answer: The distance is 5.66 units.
Example 5: Real-world application -- map distance (challenging)
Problem: On a city grid, a pizza shop is at coordinates and a customer's house is at . Each grid unit represents 0.25 km. What is the straight-line delivery distance?
Step 1: Find the distance in grid units.
Step 2: Convert to kilometres.
Answer: The straight-line delivery distance is 2.5 km.
Common Mistakes
Mistake 1: Forgetting to square the differences before adding
❌
✅
Why this matters: Without squaring, you are just adding the horizontal and vertical distances (which gives the "Manhattan distance," not the straight-line distance). The squares are essential because the formula comes from the Pythagorean theorem.
Mistake 2: Subtracting coordinates in the wrong order between x and y
❌ -- mixing and values.
✅ -- keep 's together and 's together.
Why this matters: The horizontal distance uses only -coordinates and the vertical distance uses only -coordinates. Mixing them produces a number that has no geometric meaning.
Mistake 3: Sign errors with negative coordinates
❌ and : computing (dropping the negative sign on ).
✅ .
Why this matters: Subtracting a negative number means adding. This is the most common arithmetic slip when using the distance formula with negative coordinates. Write out the subtraction fully to avoid errors.
Practice Problems
Try these on your own before checking the answers:
- Find the distance between and .
- Find the distance between and .
- Find the distance between and .
- Find the distance between and . Leave in simplified radical form.
- Two cell towers are at grid coordinates and . Each grid unit is 0.5 miles. What is the straight-line distance between the towers?
Click to see answers
- units.
- units.
- Same -value, so units. (Or use the formula: .)
- units.
- units. Convert: miles.
Summary
- The distance formula is .
- It is derived directly from the Pythagorean theorem: the horizontal and vertical differences are the legs, and the distance is the hypotenuse.
- The order of the two points does not matter -- squaring eliminates sign differences.
- For horizontal segments (), the distance simplifies to . For vertical segments, it simplifies to .
- Always square the differences before adding them.
Related Topics
- Pythagorean Theorem -- Formula, Proof, and Examples
- Pythagorean Theorem Examples with Step-by-Step Solutions
- Pythagorean Triples -- List, Formula, and How to Find Them
Need help with the distance formula?
Take a photo of your math problem and MathPal will solve it step by step.