Free 2D Distance Calculator

First Point (P₁)

x
y

Second Point (P₂)

x
y

Distance

Enter coordinates and click
Calculate Distance to see results

What Is 2D Distance?

The 2D distance between two points is the straight-line length that connects them on a flat plane — the same idea as measuring with a ruler on graph paper. This coordinate distance calculator returns it the moment you enter the two points.

The 2D Distance Formula

The result follows directly from the Pythagorean theorem: it's the hypotenuse of the right triangle formed by the horizontal and vertical gaps between the points.

d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

How to Find the Distance Between Coordinates

  1. Enter the first point, (x1,y1)(x_1, y_1).
  2. Enter the second point, (x2,y2)(x_2, y_2).
  3. The Euclidean distance calculator outputs the straight-line distance.

A Worked Example

The distance between (1,2)(1, 2) and (4,6)(4, 6) is:

d=(4−1)2+(6−2)2=9+16=25=5d = \sqrt{(4-1)^2 + (6-2)^2} = \sqrt{9 + 16} = \sqrt{25} = 5

This single formula underpins most geometry, physics, and computer-graphics work — anywhere you need to know how far apart two things are.

FAQ

1. What is the 2D distance formula?

The straight-line distance between (x₁, y₁) and (x₂, y₂) is √((x₂−x₁)² + (y₂−y₁)²), the hypotenuse from the Pythagorean theorem.

2. Is 2D distance the same as Euclidean distance?

Yes. In two dimensions the Euclidean distance and the 2D distance are the same straight-line measurement given by the formula above.

3. How do I find the distance between two points?

Square the difference in x values, square the difference in y values, add them, and take the square root. The calculator does all four steps for you.

4. Does the order of the points matter?

No. Swapping the two points changes the sign of each difference, but squaring removes the sign, so the distance is identical.

How to Use

  1. Enter the X and Y coordinates of the first point (x₁, y₁).
  2. Enter the X and Y coordinates of the second point (x₂, y₂).
  3. Click calculate to instantly see the Euclidean distance between the two points.