Geometry

Distance Formula

Learn how to find the exact distance between any two points on a 2D map using the Distance Formula.

The Formula
d = (x₂-x₁)² + (y₂-y₁)²
Used for: Finding the distance between two points in a coordinate plane
dDistance between the two points
(x₁, y₁)Coordinates of first point
(x₂, y₂)Coordinates of second point

🎯 Key Concepts

Understand the geometry behind the distance:

📐Pythagorean Origin

The formula is actually the Pythagorean theorem applied to the coordinate plane.

📍Coordinate Plane

Calculates the straight-line distance between any two points (x₁, y₁) and (x₂, y₂).

📏Always Positive

Because the differences are squared, the result is always a non-negative distance.

📝 Worked Examples

Example 1: Positive Coordinates

Problem: Find the distance between P₁(1, 2) and P₂(4, 6).
1
Identify Pointsx₁=1, y₁=2 and x₂=4, y₂=6
2
Substitute valuesd = √((4 - 1)² + (6 - 2)²)
3
Subtractd = √(3² + 4²)
4
Square and Addd = √(9 + 16) = √25
Answer: d = 5 units

Example 2: Negative Coordinates

Problem: Find the distance between (-1, -1) and (2, 3).
1
Identify Pointsx₁=-1, y₁=-1 and x₂=2, y₂=3
2
Substitute valuesd = √((2 - (-1))² + (3 - (-1))²)
3
Simplifyd = √(3² + 4²)
4
Calculated = √(9 + 16) = 25
Answer: d = 5 units

💡 Pro Tips

Point Order

It doesn't matter which point you call (x₁,y₁) and which you call (x₂,y₂). Squaring makes the result the same.

Vertical/Horizontal

If the x-coordinates are the same, the distance is just the difference in y-coordinates (and vice versa).

Visualization

Draw a right triangle between the points to understand why the formula works.