Distance Between Two Points Calculator

Calculate the distance between two points (x₁, y₁) and (x₂, y₂) using the distance formula.

Point A (x₁, y₁)

Point B (x₂, y₂)

Result

Distance Formula Explanation

The distance formula is derived from the Pythagorean theorem. It calculates the length of the line segment connecting two points.

Formula

$$ d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} $$

Real World Applications

The distance formula isn't just for math class. It's used everywhere:

Example Problem

Question: Find the distance between A(1, 2) and B(4, 6).

Step 1: Find the change in x and y (Δx and Δy).
Δx = 4 - 1 = 3
Δy = 6 - 2 = 4

Step 2: Square the differences.
3² = 9
4² = 16

Step 3: Add and take the square root.
9 + 16 = 25
d = √25 = 5

Answer: The distance is 5 units.

Frequently Asked Questions

Can distance be negative?

No. Distance is a scalar quantity measuring length, so it is always non-negative. Even if coordinates are negative, the square operation makes them positive.

What if the points have negative coordinates?

The formula handles this automatically. For example, moving from -2 to 3 means the distance is |3 - (-2)| = 5.

Is this the same as displacement?

In physics, distance is the total ground covered, while displacement is the shortest path. On a 2D plane, the straight-line distance (what this tool calculates) is the magnitude of the displacement vector.

Related Tools