Skip to content

Distance Calculator

Result

Distance5
Midpoint x2.5
Midpoint y4
Horizontal displacement (Δx)3
Vertical displacement (Δy)4
↗ Math

Distance Calculator — free online calculator.

Formula

d = √((x₂−x₁)² + (y₂−y₁)²). Midpoint = ((x₁+x₂)/2, (y₁+y₂)/2). Derived from the Pythagorean theorem.
  • Distance Calculator calculates its result from Point 1 — x₁, Point 1 — y₁, Point 2 — x₂, Point 2 — y₂. It uses the formula d = √((x₂−x₁)² + (y₂−y₁)²). Midpoint = ((x₁+x₂)/2, (y₁+y₂)/2). Derived from the Pythagorean theorem.. Change any input to recalculate the result instantly.
  • The main inputs are Point 1 — x₁, Point 1 — y₁, Point 2 — x₂, Point 2 — y₂. 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: Distance

Inputs
  • Point 1 — x₁: 1
  • Point 1 — y₁: 2
  • Point 2 — x₂: 4
  • Point 2 — y₂: 6

For (1,2) and (4,6): Δx = 3, Δy = 4, distance = 5 and midpoint is (2.5,4).

Sample result: Calculating…

Frequently asked questions

What does the Distance calculate?

Distance Calculator — free online calculator.

Which values should I enter?

Enter Point 1 — x₁, Point 1 — y₁, Point 2 — x₂, Point 2 — y₂ using the units and format shown beside each field.

What formula does this calculator use?

The calculator uses the following relationship: d = √((x₂−x₁)² + (y₂−y₁)²). Midpoint = ((x₁+x₂)/2, (y₁+y₂)/2). Derived from the Pythagorean theorem..

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 10, 2026