Skip to content

Euclidean Distance Calculator

Result

Distance5
↗ Math

Calculate distance from x1, y1, x2, y2.

Formula

sqrt((x2 − x1)² + (y2 − y1)²)
  • Enter x1, y1, x2, y2 using consistent units. This tool calculates distance as sqrt((x2 − x1)² + (y2 − y1)²). All geometric dimensions should be positive and in the specified units.
  • The main inputs are x1, y1, x2, y2. Enter them in the units and format shown in the calculator.
  • Keep comparable quantities in compatible units whenever the formula combines or compares them.
  • Changing any input above recalculates the result with the same calculation engine used by this page.

Example: Euclidean Distance

Inputs
  • x1: 0
  • y1: 0
  • x2: 3
  • y2: 4

Using x1 = 0, y1 = 0, x2 = 3, y2 = 4, the calculated result is Distance: 5.

Sample result: Calculating…

Frequently asked questions

What does the Euclidean Distance calculate?

Calculate distance from x1, y1, x2, y2.

Which values should I enter?

Enter x1, y1, x2, y2 using the units and format shown beside each field.

What formula does this calculator use?

The calculator uses the following relationship: sqrt((x2 − x1)² + (y2 − y1)²).

Why might my result differ from another source?

Results can differ when another source uses different units, rounding rules, conventions or assumptions. Compare the inputs and definitions before comparing results.

Does the result update automatically?

Yes. Changing an input updates the result using the same calculation engine shown on this page.

Page information

Updated: October 7, 2026