2D Distance Calculator: Straight Line Distance Between Points

Written by:
PK

Here is a 2D distance formula calculator, which will calculate the straight line or Euclidean distance between two points in two dimensions.

Also see the other Euclidean distance calculators:

2D Distance Calculator

Formula for 2D Euclidean Distance

The formula for two-dimension distance is:

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

Where:

  • d: the distance between the two points (or the hypotenuse)
  • x1, y1: the x and y coordinates of point 1
  • x2, y2: the x and y coordinates of point 2

Example Distance Calculation

Let's say you have 2 points, (x, y):

  • (4, 9)
  • (0, 6)

Here's how you do the math:

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

The distance between these points is 5.

Using the 2D Distance Formula Calculator

First, leave the Dimensions setting at 2.

Next, enter the x, y coordinates of the two points. The top table holds the X & Y for the first point, the lower holds the X & Y for the second.

Now, hit the Compute Distance button and we'll show you the distance – it's that simple. Enjoy!

Now, visit our other calculators and tools.

      

PK

PK started DQYDJ in 2009 to research and discuss finance and investing and help answer financial questions. He's expanded DQYDJ to build visualizations, calculators, and interactive tools.

PK is in his mid-30s and works and lives in the Bay Area with his wife, two kids, and dog.

Don't Quit Your Day Job...

DQYDJ may be compensated by our partners if you make purchases through links. See our disclosures page. As an Amazon Associate we earn from qualifying purchases.
Sign Up For Emails
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram