Distance Calculator

Distance Calculator

Distance Between Two Points

Enter the coordinates of two points to calculate the straight-line (Euclidean) distance between them using the distance formula.

Point 1 (x₁, y₁)
x₁
y₁
Point 2 (x₂, y₂)
x₂
y₂

Distance Unit Converter

Convert any distance value from one unit to all major units including meters, kilometers, miles, feet, inches, yards, nautical miles, and centimeters.

Distance
From unit

Speed, Distance & Time Calculator

Calculate distance, speed, or time by entering two of the three values. Leave the field you want to find empty.

Distance
Speed
Time

Midpoint Calculator

Find the exact midpoint between two coordinate points. The midpoint is the point that lies exactly halfway between two given points.

Point 1 (x₁, y₁)
x₁
y₁
Point 2 (x₂, y₂)
x₂
y₂

Distance Unit Reference Table

Unit Symbol In Meters Common Use
Millimetermm0.001 mEngineering, precision
Centimetercm0.01 mHeight, clothing
Meterm1 mGeneral SI unit
Kilometerkm1,000 mRoad distances
Inchin0.0254 mUS/UK small lengths
Footft0.3048 mUS/UK height, altitude
Yardyd0.9144 mUS/UK fabric, sports
Milemi1,609.344 mUS/UK road distances
Nautical Milenmi1,852 mAviation, maritime

What is Distance?

Distance is the numerical measurement of how far apart two points, objects, or places are. In mathematics, the most common type is Euclidean distance — the straight-line length between two points in a coordinate plane.

The distance formula between two points (x₁, y₁) and (x₂, y₂):
d = √[(x₂ − x₁)² + (y₂ − y₁)²]

Example: Distance from (2, 3) to (7, 8):
d = √[(7−2)² + (8−3)²] = √[25 + 25] = √50 ≈ 7.071

The Distance Formula

The distance formula is derived from the Pythagorean theorem. The horizontal difference (Δx) and vertical difference (Δy) form the two legs of a right triangle, and the distance is the hypotenuse.

Step-by-step: Find distance from (1, 4) to (5, 7)
Δx = 5 − 1 = 4
Δy = 7 − 4 = 3
d = √(4² + 3²) = √(16 + 9) = √25 = 5

Speed, Distance, and Time

The relationship between speed, distance, and time is one of the most practical distance concepts. Any one of the three values can be found when the other two are known.

Distance = Speed × Time
Speed = Distance ÷ Time
Time = Distance ÷ Speed

Example: A car travels at 80 km/h for 2.5 hours.
Distance = 80 × 2.5 = 200 km

Midpoint Formula

The midpoint between two points is the point that lies exactly halfway between them. It is found by averaging the x-coordinates and y-coordinates separately.

Midpoint = ((x₁ + x₂) / 2 , (y₁ + y₂) / 2)

Example: Midpoint of (0, 0) and (6, 4):
M = ((0+6)/2, (0+4)/2) = (3, 2)

Unit Conversions

Different regions and fields use different distance units. Converting between them requires exact conversion factors. All metric units are powers of 10; imperial units use fixed ratios.

1 km = 1,000 m = 0.621371 miles
1 mile = 1.60934 km = 5,280 feet
1 foot = 12 inches = 0.3048 m
1 nautical mile = 1.852 km = 1.15078 miles