Distance Converter

Convert distance between 10 units: metric (mm, cm, m, km), imperial (in, ft, yd, mi), nautical miles, and light-years.

Convert 10 units Exact factors NM & ly
Rate this calculator

Distance Converter

10 units · exact 1959 factors · NM & light-years

Instructions — Distance Converter

1

Enter a value

Type a distance and pick the source unit from the dropdown. The converter routes through metres, the SI base unit, so any pair of units works. The default 100 km gives ~62 miles.

2

Read every target unit

One input produces nine outputs. The headline auto-flips: metric input shows miles on top, imperial input shows kilometres. Values below 0.0001 or above 10 billion switch to scientific notation.

3

Use quick picks

One-tap presets cover a marathon (26.2 mi), a kilometre, a nautical mile, and 5280 ft (one statute mile). Useful for sanity-checking the factor in your head.

Formulas

All factors are exact, fixed by the 1959 International Yard and Pound Agreement and SI definitions.

Metres to feet
$$ \text{ft} = \frac{\text{m}}{0.3048} \approx \text{m} \times 3.28084 $$
One foot is exactly 0.3048 metres (1959 treaty). The reciprocal 3.28084 is irrational past those digits.
Kilometres to miles
$$ \text{mi} = \frac{\text{km}}{1.609344} \approx \text{km} \times 0.621371 $$
One statute mile is exactly 1609.344 metres (5280 ft × 0.3048 m).
Nautical mile
$$ 1\,\text{NM} = 1852\,\text{m} = 1.15078\,\text{statute mi} $$
Defined by the International Hydrographic Conference (Monaco, 1929) as one minute of arc along a meridian.
Inches to centimetres
$$ \text{cm} = \text{in} \times 2.54 \quad \text{(exact)} $$
The cornerstone exact conversion. Every imperial length factor follows from it.
Light-year
$$ 1\,\text{ly} = c \times 1\,\text{Julian year} = 9.4607304725808 \times 10^{15}\,\text{m} $$
c = 299,792,458 m/s exactly. Julian year = 365.25 days = 31,557,600 s.
General conversion
$$ \text{value}_{target} = \text{value}_{source} \times \frac{k_{source}}{k_{target}} $$
Where k is the unit’s metre-equivalent. Every conversion goes through metres.

Reference

Exact metre-equivalents
Unit=? metresSource
1 inch0.02541959 agreement
1 foot0.3048= 12 in
1 yard0.9144= 3 ft (treaty base)
1 mile1609.344= 5280 ft
1 nautical mile1852IHC 1929
1 km1000SI prefix
1 light-year9.46073×10¹⁵c × Julian yr

Distance converter cheat sheet

  • km → mi: divide by 1.609 (or × 0.621)
  • mi → km: multiply by 1.609
  • m → ft: multiply by 3.281
  • ft → m: divide by 3.281 (or × 0.3048)
  • NM → km: multiply by 1.852
  • Marathon = 42.195 km = 26.219 mi
  • 5K run = 5 km = 3.107 mi
  • Proxima Centauri = 4.246 ly

Article — Distance Converter

Distance converter: km, miles, feet, metres, nautical miles, and more

A distance converter translates a length measured in one unit into the same length in any other unit. This calculator handles 10 units — metric (mm, cm, m, km), imperial (in, ft, yd, mi), nautical miles, and light-years — with the exact factors set by the 1959 International Yard and Pound Agreement. Everything is routed through metres, the SI base unit.

The conversions are not approximations. Since 1959, 1 yard equals exactly 0.9144 m, which fixes 1 ft = 0.3048 m and 1 in = 2.54 cm. The mile (5280 ft) and the nautical mile (1852 m, set in 1929) are likewise exact by definition.

What the distance converter does

Enter a value, pick the source unit, read every target unit at once. The calculator computes the metre-equivalent internally and divides by the target unit’s metre-equivalent to produce each output. No precision is lost on the round trip.

The headline output flips by input type. Metric input shows miles on top; imperial input shows kilometres. Very small or very large values (smaller than 0.0001 or larger than 1 billion) switch to scientific notation to stay readable.

Metric distance units

The SI metric system organises length around the metre, with prefixes scaling by powers of 10. Move the decimal point one place per prefix step:

SI length prefixes
1 km = 1000 m
1 m = 100 cm = 1000 mm
1 cm = 10 mm

The metre itself is defined by the speed of light: 1 m = the distance light travels in 1/299,792,458 of a second. That definition has held since 1983 and ties the metre to a fundamental physical constant rather than to a platinum bar.

Imperial distance units

Imperial length units evolved from medieval English measures. The mile descended from the Roman mille passuum (1000 paces), the yard standardised in 1593, the foot from the length of a human foot, the inch from a thumb-width.

Today every imperial length is anchored to the metre through the 1959 agreement. There is no ambiguity in the modern definitions:

  • 1 in = 2.54 cm exactly
  • 1 ft = 12 in = 0.3048 m exactly
  • 1 yd = 3 ft = 0.9144 m exactly
  • 1 mi = 5280 ft = 1609.344 m exactly
  • 1 furlong = 660 ft = 1/8 mile = 201.168 m
  • 1 chain = 66 ft = 20.1168 m (surveyor’s chain)
Did you know

The US survey foot was a slightly different historical definition (1 ft = 1200/3937 m, about 2 parts per million longer than the international foot). It was officially deprecated by NIST on 1 January 2023. All new American surveys use the 0.3048 m international foot, ending decades of dual standards.

Nautical and astronomical distance

The nautical mile and the light-year occupy specialised niches.

The nautical mile (NM) equals exactly 1852 m, set by the First International Extraordinary Hydrographic Conference in Monaco in 1929. It corresponds to one minute of arc along a meridian on the Earth’s surface. Because of this geometric link, NMs map cleanly onto latitude and longitude grids, which is why ships and aircraft use them.

The light-year (ly) is the distance light travels in one Julian year:

Light-year math
1 ly = c × 1 Julian year
= 299,792,458 m/s × 31,557,600 s = 9.4607304725808 × 10¹⁵ m

That is roughly 9.46 trillion km. The nearest star system, Alpha Centauri, sits at 4.37 ly. The Andromeda Galaxy is 2.54 million ly away. Cosmological distances often run to billions of light-years.

Tip

For aviation flight levels (FL): drop the last two zeros from feet. FL350 = 35,000 ft = 10.668 km. FL410 = 41,000 ft = 12.497 km. Flight levels are referenced to the standard atmosphere (1013.25 hPa) rather than local sea level.

Exact distance conversion factors

Every factor below is exact (no rounding). Plug them into any calculator and the result is mathematically perfect to the limits of double-precision arithmetic.

Master factor table
1 mm = 0.001 m
1 cm = 0.01 m
1 in = 0.0254 m
1 ft = 0.3048 m
1 yd = 0.9144 m
1 mi = 1609.344 m
1 NM = 1852 m
1 km = 1000 m
1 ly = 9.46073×10¹⁵ m

Distance mental-math tricks

For everyday conversion, you do not need exact factors. A handful of shortcuts cover most cases:

  • km → mi: multiply by 0.62 (or divide by 1.6)
  • mi → km: multiply by 1.6 (off by 0.6%)
  • m → ft: multiply by 3.28
  • ft → m: divide by 3.28 (or × 0.3)
  • in → cm: multiply by 2.54 (exact)
  • NM → km: multiply by 1.852
  • Marathon: 42.195 km = 26.22 mi
  • 5K run: 5 km = 3.11 mi
Watch out for unit name collisions

Aviation regulators call the nautical mile “NM” or “nm” (lowercase n), but in physics “nm” means nanometre — one billionth of a metre. Context usually makes it clear, but the abbreviation is genuinely ambiguous on paper. Distance-converter outputs should always include the full unit name when there is any chance of confusion.

A brief history of distance units

Until the late 18th century, every region had its own distance units. The French Revolution gave us the metric system in 1795. The metre was originally defined as one ten-millionth of the distance from the equator to the North Pole through Paris — an ambitious survey that left a tiny error baked into the prototype metre bar.

The 1875 Metre Convention created international standards. The 1960 SI replaced the platinum-iridium metre bar with a krypton-86 light-wavelength definition, and 1983 fixed the metre against the speed of light. Today the metre is one of seven SI base units, all defined by fundamental constants.

The imperial side followed a parallel but separate path. The 1959 International Yard and Pound Agreement consolidated six different English-speaking countries’ slightly different definitions of the yard and pound. From that single 1959 treaty, every modern definition of inch, foot, yard, and mile derives — with the metre as the anchor. The result is that today’s imperial distances are, mathematically, just labels on top of metric values. They are no more or less precise than their metric equivalents.

Nautical miles took their own route. Different countries used slightly different definitions until the 1929 Monaco conference fixed it at exactly 1852 m. The US held out until 1954 (using a slightly longer value based on the US survey foot) before joining the international standard. Today every commercial chart, GPS, and air-traffic system uses the 1852 m nautical mile without exception.

FAQ

1 mile = 5280 feet exactly. Historically a mile was 8 furlongs (660 ft each). In metric: 1 mile = 1609.344 m, also exact since 1959.
1 statute mile = 1.609344 km (exact). Quick mental rule: km × 0.62 ≈ miles. So 100 km ≈ 62 mi, 60 mph ≈ 96 km/h.
A nautical mile (NM) is 1852 metres, defined as one minute of arc along a meridian on Earth’s surface. It is about 15% longer than a statute mile (1609.344 m). Used in marine and aviation navigation because it maps directly to latitude/longitude.
The 1959 International Yard and Pound Agreement fixed 1 yard = 0.9144 m exactly. Since 1 yard = 36 inches, 1 inch = 0.9144 / 36 = 0.0254 m = 2.54 cm. Six English-speaking countries signed and ratified the agreement; the values have not changed since.
1 light-year ≈ 9.461 trillion km (9.461×10¹² km). Exact value: 9,460,730,472,580.8 km. It uses c = 299,792,458 m/s and the Julian year of 365.25 days = 31,557,600 s.
Multiply by 1.609344. So 60 mph = 96.6 km/h, 70 mph = 112.7 km/h, 100 mph = 161 km/h. For a quick estimate, mph × 1.6.
A decimetre is 0.1 m or 10 cm. Rarely used in everyday speech but essential in chemistry: 1 dm³ = 1 litre exactly. That is the conceptual bridge between metric length and metric volume.
It is off by 0.58%. The true factor 1.609344 versus the shortcut 1.6 gives, for 100 mi: 160.93 km vs 160 km, a 0.93 km error. For driving directions or pace conversion, 1.6 is fine. For engineering or surveying, use the exact value.