Distance Formula Calculator

Calculate the Euclidean distance between two points in 2D or 3D space, with midpoint and step-by-step work.

Share this calculator

Dimensions

Point 1

Point 2

Euclidean Distance

d = 5

Distance
5
Midpoint
(2.5, 4)
Δx (x₂ − x₁)
3
Δy (y₂ − y₁)
4
Sum of Squares
25

Step-by-step

d = √(9 + 16) = √(25) = 5

Midpoint = (2.5, 4)

Also in Functions

Algebra

Distance formula calculator: find the distance between two points

A distance formula calculator computes the Euclidean distance between two points in 2D or 3D space. It also finds the midpoint and shows step-by-step work using the Pythagorean-based distance formula.

The distance formula

The distance between two points (x₁, y₁) and (x₂, y₂) in 2D is d = √((x₂ − x₁)² + (y₂ − y₁)²). This extends to 3D by adding a z-component: d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²).

The midpoint between the two points is found by averaging each coordinate: M = ((x₁ + x₂)/2, (y₁ + y₂)/2).

d = √((x₂ − x₁)² + (y₂ − y₁)²)

Euclidean distance in 2D.

M = ((x₁ + x₂)/2, (y₁ + y₂)/2)

Midpoint formula.

Frequently asked questions

Is the distance formula the same as the Pythagorean theorem?

Yes — the distance formula is a direct application of the Pythagorean theorem. The horizontal and vertical differences form the legs of a right triangle, and the distance is the hypotenuse.

Can the distance be negative?

No. Distance is always non-negative because it involves squaring the differences and taking a square root. A distance of zero means the two points are the same.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.