All tools · 📊 Math

📏 Distance Formula Calculator

The distance formula computes the straight-line distance between two points. For 2D: √((x₂−x₁)² + (y₂−y₁)²). For 3D: add the z-component. Also returns the midpoint and the angle from the positive x-axis.

Loading tool…

Examples

2D distance
Input(1,2) to (4,6)
Output5.0 · midpoint (2.5, 4) · angle 53.13°
3D distance
Input(0,0,0) to (3,4,12)
Output13.0 (3-4-12 Pythagorean triple)

Frequently asked questions

Why is it called Euclidean distance?

After Euclid — the standard "straight line" distance in flat geometry. Other metrics (Manhattan, Chebyshev) measure differently.

When is Manhattan distance better?

When movement is constrained to grid axes (city blocks, chess king, taxicab). Manhattan dist = |x₂−x₁| + |y₂−y₁|.

About this tool

Distance Formula Calculator runs entirely in your browser using standard Web APIs. No data is sent to any server. The source for this tool is in our public GitHub repository.

Related tools

← All 96 tools

Why this tool

vs typical free web-tool sites

1vwTypical free site
PriceFreeFree
Signup requiredNoOften (for premium features)
Ads inside the toolNoYes (banner + video)
Data sent to serverNo (browser-only)Yes (inputs analyzed for ads)
Total tools96Often <20 or scattered across sites
Bookmarkable URL per toolYesMixed
Loads in under 1sYes (static)Often slow (ad tracking)
MultilingualEN / ES / PT / FR / DEUsually EN only
Open sourceYesNo