Distance Between Two Points Calculator

Result

Calculation Steps
Visual Representation
X Y

About Distance Between Two Points

What is the Distance Between Two Points?

The distance between two points is the length of the straight line segment connecting them in a two-dimensional plane.

Formula for Distance Between Two Points

The distance \(d\) between two points \((x_1, y_1)\) and \((x_2, y_2)\) is given by:

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

Where:

  • \((x_1, y_1)\) are the coordinates of the first point
  • \((x_2, y_2)\) are the coordinates of the second point
  • \(d\) is the distance between the two points

Calculation Steps

  1. Identify the coordinates of both points: \((x_1, y_1)\) and \((x_2, y_2)\)
  2. Calculate the difference in x-coordinates: \((x_2 - x_1)\)
  3. Calculate the difference in y-coordinates: \((y_2 - y_1)\)
  4. Square both differences
  5. Add the squared differences
  6. Take the square root of the sum

Example

Let's calculate the distance between points A(1, 2) and B(4, 6):

  1. \(x_1 = 1, y_1 = 2, x_2 = 4, y_2 = 6\)
  2. \(d = \sqrt{(4 - 1)^2 + (6 - 2)^2}\)
  3. \(d = \sqrt{3^2 + 4^2}\)
  4. \(d = \sqrt{9 + 16}\)
  5. \(d = \sqrt{25}\)
  6. \(d = 5\)
A(1, 2) B(4, 6) d = 5