Skip to the content
calculator.fans

Unit converters

Length converter

Type a length, pick the unit it is in and the unit you want, and the converter gives the answer along with the same length in all nine units it supports. It covers the metric units from millimetres to kilometres, the inch, foot, yard and mile used in the United States and the UK, and the nautical mile used at sea and in the air. Every factor is an exact legal definition, so the only rounding is the six significant figures shown.

Converted length

—

In words
—
The same length in every unit
UnitLength

How the conversion works

Each unit is stored as its size in metres: an inch is 0.0254 m, a foot 0.3048 m, a mile 1,609.344 m. To convert, the calculator multiplies your number by the size of the unit you start from, which gives the length in metres, then divides by the size of the unit you want. Going through one base unit means any pair of units works with the same two steps, and no chain of intermediate roundings creeps in.

Inside the imperial family the ratios are whole numbers: 12 inches to the foot, 3 feet to the yard and 1,760 yards to the mile, so a mile is 5,280 feet or 63,360 inches. Between the two systems the link is the inch, which is exactly 2.54 centimetres. Every other cross-system factor, such as 1 mile = 1.609344 km, follows from that one definition.

length in new unit = length × (metres per old unit) ÷ (metres per new unit)

Why an inch is exactly 2.54 cm

Until the 1950s the inch was not quite the same on both sides of the Atlantic. The United States had tied its yard to the metre in 1893, making an inch about 2.54000508 cm, while the British yard was represented by a physical bar that had been measured at a slightly different length. The gap was a few parts per million, invisible in a shop but a real nuisance for precision engineering and for gauge blocks traded between countries.

In 1959 the national standards laboratories of the United States, the United Kingdom, Canada, Australia, New Zealand and South Africa agreed on an international yard of exactly 0.9144 metres, which makes the inch exactly 25.4 mm. American land surveyors kept the older definition, the US survey foot of 1200/3937 m, for decades afterwards; it was formally retired at the end of 2022, so modern work uses the international foot everywhere.

The metre and the nautical mile

The metre began in the 1790s as one ten-millionth of the distance from the North Pole to the equator through Paris. Since 1983 it has been defined as the distance light travels in a vacuum in 1/299,792,458 of a second, which anyone with the right equipment can reproduce without a reference bar.

The nautical mile comes from navigation: one minute of latitude along a meridian is roughly 1,852 metres, so a chart's latitude scale doubles as a distance scale. The rounded value of exactly 1,852 m was agreed internationally in 1929 and is still used for shipping and aviation. It is about 15% longer than the ordinary statute mile.

Worked examples

Example 1

A 5 km run in miles

Five kilometres is 5 × 1,000 = 5,000 metres. A mile is 1,609.344 metres, so 5,000 ÷ 1,609.344 = 3.10686 miles, a little over three miles. That is why a 5K is often called a three-mile race. To turn a finishing time into a per-mile or per-kilometre pace, use the pace calculator.

Example 2

Six feet in centimetres

A foot is 0.3048 m, so 6 feet is 6 × 0.3048 = 1.8288 m. Dividing by 0.01 m per centimetre gives 182.88 cm, an exact answer because both factors are exact. For a height such as 5 ft 9 in, convert the inches separately (9 × 2.54 = 22.86 cm) and add them to 5 × 30.48 = 152.4 cm, which gives 175.26 cm.

Example 3

A 100 nautical mile passage in kilometres

A sailing plan of 100 nautical miles is 100 × 1,852 = 185,200 metres, which is 185.2 km, or about 115 statute miles. Speeds at sea are measured in knots, one nautical mile per hour, and the speed converter handles those.

Questions people ask

How many centimetres are in an inch?

Exactly 2.54. This is a definition rather than a measurement, so there is no further decimal to find. A centimetre is therefore about 0.3937 of an inch, and a metre about 39.37 inches.

Is a UK mile the same as a US mile?

Yes. Both are 1,760 international yards, or 1,609.344 metres. The old US survey mile was about 3.2 mm longer, which mattered only for land surveys and is no longer an official unit.

How do I work out a diagonal distance?

Convert both sides into the same unit first, then use the Pythagorean theorem calculator to find the third side. Mixing feet and metres in that sum is a common source of wildly wrong answers.

Sources and further reading

Related calculators