Distance Calculator
Measure the straight-line distance between two points on a plane, in space, or on Earth.
- 100% Free
- Instant Results
- No Sign Up
Distance Calculator
Distance in 2D, 3D, or between two lat/long points
Distance
10
- Δx
- 6
- Δy
- 8
- Midpoint
- (4, 6)
How it was calculated
- d = √((x₂ - x₁)² + (y₂ - y₁)²)
- d = √((7 - 1)² + (10 - 2)²)
- d = √(36 + 64) = √100
- d = 10
More Math Calculators
View all calculators- Slope CalculatorSlope, angle, distance and line equation
- Pythagorean Theorem CalculatorSolve a² + b² = c² for any side
- Right Triangle CalculatorSolve a right triangle from any two values
- Circle CalculatorRadius, diameter, circumference and area
- Mileage CalculatorMileage reimbursement at the IRS rate
- Scientific CalculatorTrig, logs, powers, roots and memory in one keypad
- Percentage CalculatorPercent of, percent change and more
- Fraction CalculatorAdd, subtract, multiply and divide fractions
- Triangle CalculatorSolve any triangle from three known values
- Calculators
- 204+
- Free to use
- 100%
- Results as you type
- Instant
How the distance calculator works
In a plane, the distance between two points comes from the Pythagorean theorem: d = √((x₂ - x₁)² + (y₂ - y₁)²). In 3D, add the z difference squared under the root.
On Earth, the shortest path between two latitude/longitude points follows a great circle. The haversine formula gives it on a sphere of radius 6,371 km; Vincenty's formula refines it on the slightly flattened WGS-84 ellipsoid (accurate to about 0.5 mm) and is used for the main answer.
Enter coordinates in decimal degrees, with south latitudes and west longitudes negative (New York is 40.7128, -74.0060).
Using and checking your result
Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.
Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.
