Conversion

Length Converter

Convert between metric and imperial lengths with exact factors.

Convert lengths between millimeters, centimeters, meters, kilometers, inches, feet, yards, and miles. Uses exact international definitions — 1 inch is exactly 2.54 cm — so results are precise enough for engineering homework and DIY alike.

How it's calculated

Every unit converts through meters with its exact factor: 1 inch = 0.0254 m, 1 foot = 0.3048 m, 1 yard = 0.9144 m, 1 mile = 1609.344 m. The result is value × factor[from] ÷ factor[to].

Each factor states how many metres one unit contains: a millimetre is 0.001 m, a centimetre 0.01 m, a kilometre 1000 m, an inch 0.0254 m, a foot 0.3048 m, a yard 0.9144 m and a mile 1609.344 m. The tool first multiplies your value by the from-factor to reach metres, then divides by the to-factor to leave them. Routing every pair through one shared unit needs only eight factors instead of a separate rule for all 56 pairs, and every route agrees.

These factors are definitions, not measurements. The international inch is defined as exactly 2.54 cm, and the foot, yard and mile are exact multiples of it, so nothing is lost to approximation along the way. Only the display rounds, to four decimal places; underneath, full precision is kept, which is why converting a result straight back returns your starting number.

Why route through metres at all? Because the metre is the shared definition point of both systems: metric units are decimal multiples of it, and imperial units are defined from it through the inch. A direct inch-to-mile rule would need its own constant and its own rounding behaviour; the two-step route keeps one auditable definition per unit, so an error, if one ever crept in, would show up in every conversion involving that unit and be caught at once.

Worked example

Convert 5 feet to metres: multiply by the foot factor, 5 × 0.3048 = 1.524, so 5 ft is exactly 1.524 m. A second check: one mile is 1 × 1609.344 ÷ 1000 = 1.609344 km, which the display rounds to four decimal places as 1.6093 km. The foot answer needed no rounding at all, because 0.3048 is an exact, finite decimal.

When to use it

Ordering a door, rug or length of timber sold in imperial sizes when your room measurements are metric. Checking a suitcase or parcel against a carrier limit published in inches. Translating a running route described in miles into kilometres for a training log, or entering your height on a foreign form that asks for feet and inches.

Common mistakes

  • Writing 5 ft 10 in as 5.10 ft: inches are twelfths of a foot, so that height is 70 inches, or 5.833 ft, not 5.10 ft.
  • Rounding halfway through a chain of conversions, which lets small errors compound — convert once from the original value and round only the final answer.
  • Assuming every like-named unit matches: a nautical mile or a US survey foot differs from the international units used here, and the gap grows over long distances.

Precision in practice

For everyday tasks — luggage, furniture, clothing — four decimal places are far more precision than the object itself has: a suitcase measured with a tape is not known to a tenth of a millimetre. Precision matters at the extremes — surveying, machining and science — where conversions chain into further calculations. There, the rule is to convert once, keep full precision through every intermediate step, and round only what you finally report.

Frequently asked questions

How do I convert kilometers to miles?

Enter 5, choose km → mi: about 3.107 miles. The exact factor is 1 km = 0.621371 mi.

How many centimeters are in an inch?

Multiply by 2.54 — or just use this tool. 12 inches is exactly 30.48 cm.

Are these conversions exact?

Yes. An international inch is defined as exactly 2.54 cm, and a mile as exactly 1609.344 m, so every conversion here is exact to full precision.

How do I convert a height like 5 ft 10 in?

Turn the whole height into inches first: 5 × 12 + 10 = 70 inches, which converts to 177.8 cm. Typing 5.10 as a feet value would understate the height by almost 9 cm.

How many feet are in a metre?

About 3.2808 feet: divide 1 by the foot factor, 0.3048. So a 2 m doorway is roughly 6 ft 7 in — a little taller than a standard 6 ft 6 in door.

Why does the result show only four decimal places?

The display rounds to four decimal places to stay readable, but the calculation uses the full exact factors throughout. Very large or very small results switch to exponential notation so that no significant digits are hidden.

A second worked example: the marathon distance in kilometres

The worked example above converted a person's scale — 5 feet — and checked a single mile. Distances at road-race scale behave the same way, but the numbers are large enough that mental arithmetic starts to slip. A marathon is 26.2 miles, and a runner logging training in kilometres needs that figure in km. Enter 26.2, set From to miles and To to kilometres. The converter multiplies by the mile factor first: 26.2 × 1,609.344 = 42,164.8128 metres. Kilometres have a factor of 1,000, so the second step divides: 42,164.8128 ÷ 1,000 = 42.1648128 km, which the display rounds to 42.1648 km. That is the figure to set against kilometre split times and pace charts. A shorter check in the other direction uses the yard: a 2.5-yard length of fabric is 2.5 × 0.9144 = 2.286 metres, and converting that result to centimetres gives exactly 228.6 cm, because the yard is an exact multiple of the inch and the centimetre is an exact hundredth of a metre.

Converting lengths you actually meet in this tool

The eight units here — mm, cm, m, km, in, ft, yd and mi — cover three distinct jobs. Millimetres and centimetres settle fit questions, such as whether a 48-inch shelf, which converts to 121.92 cm, fits a 120 cm alcove: it does not, by almost two centimetres, and finding that out here is cheaper than finding it out with the shelf in the room. Metres, feet and yards settle room and garden questions, such as turning a fence run paced out in yards into the metres a supplier prices by. Kilometres and miles settle journey questions, from a delivery route quoted in miles to a cycling event measured in kilometres. Choosing the From and To pair that matches the document in front of you, rather than a unit you merely prefer, removes one whole conversion from the chain and one chance to round in the middle.

Edge cases: tiny values, huge values and mixed units

Two inputs catch people out in this converter. The first is a mixed measurement such as 5 ft 10 in: the tool accepts one value and one From unit, so a two-part length must be combined before you enter it, either as 70 inches or as 5.8333 feet, never typed as 5.10. The second is scale. Converting 1 mm to miles gives a result so small that the display switches to exponential notation rather than printing a long string of zeros, while converting a cross-country distance in millimetres produces a number large enough to do the same at the top end. Both are the same exact arithmetic; only the presentation changes. Finally, remember which mile and foot this tool uses: the international mile of exactly 1,609.344 m and the international foot of exactly 0.3048 m. A nautical mile, used at sea and in aviation, is a different unit and is not among the eight offered here, so do not use a result from this page to check a chart distance.

Related calculators