Distance Calculator — Free Online Distance Tool
Calculate the straight-line distance between two points in 2D or 3D coordinate space with midpoint calculations and step-by-step solutions.
Point 1
Point 2
Results
Distance
10.0000unitsMidpoint X
4.0000
Midpoint Y
6.0000
Step-by-Step
d = √((7 − 1)² + (10 − 2)²) = √(36 + 64) = 10.0000Differences
Distance Reference Table
| Point 1 | Point 2 | Distance | Midpoint |
|---|---|---|---|
| (0, 0) | (3, 4) | 5 | (1.5, 2) |
| (0, 0) | (1, 1) | 1.4142 | (0.5, 0.5) |
| (1, 2) | (4, 6) | 5 | (2.5, 4) |
| (-3, -2) | (5, 4) | 10 | (1, 1) |
| (0, 0) | (5, 12) | 13 | (2.5, 6) |
| (2, 3) | (10, 9) | 10 | (6, 6) |
| (-5, 0) | (5, 0) | 10 | (0, 0) |
| (1, 1) | (4, 5) | 5 | (2.5, 3) |
Related Calculators
Slope Calculator
Calculate slope, y-intercept, and line equation from two coordinate points.
Pythagorean Theorem Calculator
Solve for any side of a right triangle using a² + b² = c².
Triangle Calculator
Solve any triangle with sides, angles, area, and perimeter calculations.
Perimeter Calculator
Calculate perimeters for rectangles, triangles, circles, and regular polygons.
Scientific Calculator
Advanced calculator with trigonometric, logarithmic, and scientific functions.
Unit Converter
Convert between length, area, volume, and other measurement units.
About this calculator
Distance Formula
2D Distance Formula
d = √((x₂ - x₁)² + (y₂ - y₁)²) 3D Distance Formula
d = √((x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²) Midpoint Formula
M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2) Variables Explained
- d (distance): The straight-line (Euclidean) distance between the two points. Always a non-negative value. Zero only when both points are identical.
- (x₁, y₁) and (x₂, y₂): The coordinates of the two points in 2D space. The subscripts 1 and 2 are arbitrary labels; the distance is the same regardless of which point you call "first."
- z₁, z₂: The z-coordinates (height or depth) of the two points in 3D space. Only relevant in 3D mode.
- Δx, Δy, Δz: The differences between corresponding coordinates. Δx = x₂ - x₁ represents the horizontal displacement, Δy = y₂ - y₁ the vertical displacement, and Δz = z₂ - z₁ the depth displacement.
- M (midpoint): The point that lies exactly halfway between the two given points, found by averaging each coordinate pair.
Step-by-Step Example
Find the distance between points (3, -2) and (9, 6):
- Calculate Δx: 9 - 3 = 6
- Calculate Δy: 6 - (-2) = 8
- Square the differences: 6² = 36 and 8² = 64
- Add the squares: 36 + 64 = 100
- Take the square root: √100 = 10 units
The distance between (3, -2) and (9, 6) is exactly 10 units. The midpoint is ((3+9)/2, (-2+6)/2) = (6, 2). Notice that Δx = 6 and Δy = 8 form a 6-8-10 Pythagorean triple (a multiple of 3-4-5).
Sources
- Math is Fun — Distance Between 2 Points: mathsisfun.com
- Khan Academy — Analytic Geometry: khanacademy.org
- National Institute of Standards and Technology (NIST) — SI Units: nist.gov
Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.
Last updated: November 3, 2026