Distance Formula Calculator Online – Free | 8gwifi.org

Distance Formula Calculator

Calculate distance between two points in 2D and 3D space

Point 1 (x₁, y₁):
Point 2 (x₂, y₂):
Point 1 (x₁, y₁, z₁):
Point 2 (x₂, y₂, z₂):
Point 1:
Point 2:
Formulas
2D Distance Formula
d = √[(x₂ - x₁)² + (y₂ - y₁)²]
3D Distance Formula
d = √[(x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²]
Midpoint Formula (2D)
M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
Midpoint Formula (3D)
M = ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2)
Quick Examples

Support This Free Tool

Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.

500K+ users
200+ tools
100% private
Privacy Guarantee: Private keys you enter or generate are never stored on our servers. All tools are served over HTTPS.

Distance Formula: FAQ

What formulas are used in 2D and 3D?

In 2D, distance = √[(x₂−x₁)² + (y₂−y₁)²]. In 3D, distance = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²]. The tool shows each step.

How do I find the midpoint?

The midpoint in 2D is ((x₁+x₂)/2, (y₁+y₂)/2). In 3D it is ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2). Use the Midpoint tab to compute it directly.

What units and precision are supported?

Enter coordinates in the same units. The result is in those units; you can input decimals for higher precision.