Free browser-based calculators.Back to online calculator
%Compound Calculator

Length Converter

Convert common metric and imperial length units.

Result5 km = 3.1069 mi

All conversions normalize the input to meters, then convert to the target unit.

Short answer: The inch is defined as exactly 2.54 cm, so 1 ft = 0.3048 m and 1 mile = 1.609344 km. Multiply by the factor to go to metric, divide to come back.

Exact definitions

Since 1959 the international inch equals exactly 2.54 centimeters; the other US customary lengths follow from it (12 in per foot, 3 ft per yard, 5,280 ft per mile).

FromEquals
1 inch (cm)2.54
1 foot (m)0.3048
1 yard (m)0.9144
1 mile (km)1.6093
5 km (miles)3.1069
180 cm (inches)70.8661

Worked examples

A 6 ft 2 in person is 74 in = 188 cm. A 10 km run is 6.21 miles. A marathon of 42.195 km is 26.219 miles.

US survey units

The US survey foot differs from the international foot by about 2 parts per million; NIST deprecated it at the end of 2022. Use the international foot unless a legacy survey says otherwise.

Rounding advice

Carry at least four significant figures through multi-step work and round once at the end.

How this calculator works

The form above runs in your browser with the same arithmetic described on this page; nothing you type is sent to a server. Results are rounded for display only, so a long decimal may differ from the last digit of a hand calculation. Empty, zero or non-numeric inputs return a message instead of a result, and division by zero is never evaluated.

Use the tool to check your own working rather than to replace it: write the formula, substitute your numbers, and compare. If the two disagree, look first at units, the order of the inputs and whether a percentage was entered as 5 or as 0.05.

The tables on this page are generated by script from the formulas shown, not typed by hand, and are rebuilt whenever the page is reviewed. The reviewed date above is the date those numbers were last recomputed.

Typical input errors are worth a second look before you rely on a result: a comma used as a decimal separator, a value typed in the wrong unit, or two inputs swapped. If a result looks implausible, test the tool with a case you can do in your head, such as round numbers, and confirm it matches before trying your real figures.

Sources

Related tools

Educational tool. Found an error? Tell us.