698 tools
All

Distance Calculator (2D)

Calculate the Euclidean (straight-line) distance between two points in the plane.

 

 

 

 

Distance

About this calculator

Use this calculator to find the straight-line distance between two points (x₁, y₁) and (x₂, y₂) in the Cartesian plane. This is the Euclidean distance given by the distance formula, the same length as the hypotenuse of the right triangle whose legs are the horizontal and vertical separations.

The formula is d = √((x₂ − x₁)² + (y₂ − y₁)²). From the origin (0, 0) to (3, 4) the distance is 5. Manhattan (taxicab) distance would instead add |Δx| + |Δy| and is not used here.

Use the same coordinate units for all four values. The distance is reported in those same units.

x₁: x-coordinate of the first point.

y₁: y-coordinate of the first point.

x₂: x-coordinate of the second point.

y₂: y-coordinate of the second point.

Distance: Straight-line length between the two points.