3D Distance Calculator
Compute Euclidean distance between two 3D points.
Ponto 1
Ponto 2
d = —
3D distance: d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²)
To measure the straight-line distance between two points in three-dimensional space, use d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²). It's the Pythagorean theorem stretched to three dimensions, nothing more. Take (0, 0, 0) and (3, 4, 12): you get √(9 + 16 + 144) = √169 = 13. Other metrics exist too. The Manhattan distance, |Δx| + |Δy| + |Δz|, comes from taxi-cab geometry, while the Chebyshev distance, max(|Δx|, |Δy|, |Δz|), counts moves the way a chess king does. On a sphere you want the great-circle (orthodromic) length, which the haversine formula handles. And in special relativity the equivalent quantity is the space-time interval s² = −c²Δt² + Δx² + Δy² + Δz², where the time term carries the opposite sign.
Applications
It shows up in CAD and 3D modelling, where you measure between vertices and reference points. GPS uses it in ECEF coordinates before projecting down to latitude/longitude. Molecular modelling leans on it because atom-to-atom distances drive bond forces and energy in molecular dynamics. Then there's VR/AR (occlusion, collision detection, culling), animation and game engines doing proximity tests, robotics path planning, and astronomy measuring the gap between stellar coordinates.
FAQ
Does the order of the points matter? No. Squaring the differences erases the sign, so swapping the two points leaves the answer untouched: d(P, Q) = d(Q, P).
What if I have more than three dimensions? Nothing changes in principle: d = √Σ(xᵢ − yᵢ)². That same Euclidean (L2) norm holds for as many dimensions as you need.
When should I prefer Manhattan or Chebyshev distance? Reach for Manhattan when movement only happens along the axes, such as city grids or certain ML regularisers. Chebyshev fits cases where a diagonal step costs exactly as much as a straight one, like a chess king or pixel neighbourhoods in an image.
Related Tools
3D Points Distance
Computes the Euclidean distance between two points in 3D space from their coordinates.
Haversine Distance Between Two Coordinates
Enter two latitude and longitude pairs to get the great-circle distance in kilometers and miles, using Earth mean radius R = 6371 km.
Sail Race Yacht Sea Distance
Estimates nautical miles in Brazilian coastal yacht races.
Landing Runway Distance Calculator
Estimates single engine aircraft landing distance from weight, pressure altitude and temperature using typical operating manual corrections.
Skip Distance (Angle-Beam Ultrasonics)
Computes the skip distance of an angle-beam ultrasonic test, S = 2 × t × tan(θ), the surface distance between the beam entry point and the point where it returns to that same surface after bouncing off the back wall. It is what sets the operator's scanning band: to cover the full thickness of a butt weld the probe must sweep between half a skip (t × tan θ, where the beam reaches the back wall) and a full skip. Larger angles stretch the skip and move the probe away from the bead, which helps when the weld cap cannot be ground off, but they also lengthen the sound path and increase attenuation. Enter the part thickness and the probe refracted angle.
Gray Whale Migration
Shows gray whale yearly migration distance in the Pacific.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.