What is Length?
Length is how long something is from one end to the other. Distance is measured in the same units, but it describes the space between two points, such as two towns, rather than the size of an object. A room has a length; the walk to the shop has a distance. A converter treats them the same way.
When you describe a box or a sheet of material, length is usually the longest side, width is the shorter side, and height is how tall it stands. Thickness and depth are lengths too. They all convert with the same factors.
The meter (spelled metre in British English) is the unit of length in the International System of Units (SI), and one of its seven base units. Every other unit in this converter is defined as an exact fraction or multiple of it, including the inch, foot, yard and mile.
Steps to Use the Length Converter
The converter updates as you type, so there is no button to press.
- Step 1: In From, pick the unit your length is in. Metric units are at the top of the list and imperial/US units below them.
- Step 2: In To, pick the unit you want. The arrow button between the two lists swaps them.
- Step 3: Type the length. Decimals are fine, such as 5.75.
- Step 4: Read the Result. Values of 1 or more are rounded to three decimal places, and smaller values keep four significant digits, so 1 cm to miles shows 0.000006214 mi instead of 0. The copy icon copies the value with its unit.
- Step 5: Check the Calculation Steps box. It shows whether your number is multiplied or divided, and by what, for example 5 ft x 0.3048 = 1.524 m.
- Step 6: Look at the All Units table for the same length in all eight units. The row for your To unit is highlighted, and each row has its own copy button.
A length can't be negative, so a negative entry shows a warning, though the converter still works out the number. The steps show rounded factors such as x 3.28084 to keep them readable, but the result is always worked out from the exact size of each unit.
Length Conversion Formulas
The easiest way to convert any length is to go through meters. Multiply by the size of the starting unit in meters, then divide by the size of the unit you want. The table gives the size of each unit. All eight figures are exact.
| Unit | Symbol | In meters | Defined as |
|---|---|---|---|
| Millimeter | mm | 0.001 | One thousandth of a meter |
| Centimeter | cm | 0.01 | One hundredth of a meter |
| Meter | m | 1 | SI base unit |
| Kilometer | km | 1,000 | 1,000 meters |
| Inch | in | 0.0254 | Exactly 2.54 cm |
| Foot | ft | 0.3048 | 12 inches |
| Yard | yd | 0.9144 | 3 feet |
| Mile | mi | 1,609.344 | 1,760 yards, or 5,280 feet |
Say you want yards in centimeters. One yard is 0.9144 m and one centimeter is 0.01 m, so 1 yd = 0.9144 ÷ 0.01 = 91.44 cm. The converter does every pair this way. For the pairs people ask about most, here are the formulas written out:
| Conversion | Formula |
|---|---|
| Inches to centimeters | cm = in × 2.54 |
| Centimeters to inches | in = cm ÷ 2.54 |
| Millimeters to inches | in = mm ÷ 25.4 |
| Feet to meters | m = ft × 0.3048 |
| Meters to feet | ft = m ÷ 0.3048 (or m × 3.28084) |
| Yards to meters | m = yd × 0.9144 |
| Meters to yards | yd = m ÷ 0.9144 (or m × 1.09361) |
| Miles to kilometers | km = mi × 1.609344 |
| Kilometers to miles | mi = km ÷ 1.609344 (or km × 0.621371) |
Dividing by the exact factor is more accurate than multiplying by a rounded one. 3.28084 and 0.621371 are close enough for almost anything, but over large numbers the small error shows up in the last digits.
Inches to Centimeters Example
An 18-inch carry-on bag:
Multiply by 2.54: 18 × 2.54 = 45.72 cm
Because the inch is defined as exactly 2.54 cm, a whole number of inches always converts to an exact figure with no more than two decimal places.
Meters to Feet Example
A 100 m sprint:
Divide by 0.3048: 100 ÷ 0.3048 = 328.084 ft
Multiplying by 3.28084 gives the same answer to three decimal places. To get feet and inches, take the decimal part and multiply it by 12: 0.084 × 12 = 1 in, so 100 m is about 328 ft 1 in.
Kilometers to Miles Example
A marathon, which is 42.195 km:
Divide by 1.609344: 42.195 ÷ 1.609344 = 26.219 mi
Leftover yards: 0.219 × 1,760 = 385 yd
That is where the odd official distance of 26 miles 385 yards comes from. It was the length of the 1908 London Olympic course, from Windsor Castle to the stadium, and became the standard marathon in 1921.
Feet and Inches to Centimeters Example
A standard US interior door is 6 ft 8 in tall. Turn the whole thing into inches first, then convert:
To inches: 6 × 12 + 8 = 80 in
To centimeters: 80 × 2.54 = 203.2 cm
This converter takes one unit at a time. For heights written in feet and inches, the Height Converter takes both parts at once.
Length Conversion Charts
The charts below use the same rounding as the converter: three decimal places, or four significant digits for values under 1. For any value not listed, enter it in the converter.
Centimeters to Inches Chart
From 1 cm to 100 cm. One inch is 2.54 cm, so every 2.54 cm adds one inch.
| cm | in | cm | in | cm | in | cm | in |
|---|---|---|---|---|---|---|---|
| 1 | 0.3937 | 26 | 10.236 | 51 | 20.079 | 76 | 29.921 |
| 2 | 0.7874 | 27 | 10.63 | 52 | 20.472 | 77 | 30.315 |
| 3 | 1.181 | 28 | 11.024 | 53 | 20.866 | 78 | 30.709 |
| 4 | 1.575 | 29 | 11.417 | 54 | 21.26 | 79 | 31.102 |
| 5 | 1.969 | 30 | 11.811 | 55 | 21.654 | 80 | 31.496 |
| 6 | 2.362 | 31 | 12.205 | 56 | 22.047 | 81 | 31.89 |
| 7 | 2.756 | 32 | 12.598 | 57 | 22.441 | 82 | 32.283 |
| 8 | 3.15 | 33 | 12.992 | 58 | 22.835 | 83 | 32.677 |
| 9 | 3.543 | 34 | 13.386 | 59 | 23.228 | 84 | 33.071 |
| 10 | 3.937 | 35 | 13.78 | 60 | 23.622 | 85 | 33.465 |
| 11 | 4.331 | 36 | 14.173 | 61 | 24.016 | 86 | 33.858 |
| 12 | 4.724 | 37 | 14.567 | 62 | 24.409 | 87 | 34.252 |
| 13 | 5.118 | 38 | 14.961 | 63 | 24.803 | 88 | 34.646 |
| 14 | 5.512 | 39 | 15.354 | 64 | 25.197 | 89 | 35.039 |
| 15 | 5.906 | 40 | 15.748 | 65 | 25.591 | 90 | 35.433 |
| 16 | 6.299 | 41 | 16.142 | 66 | 25.984 | 91 | 35.827 |
| 17 | 6.693 | 42 | 16.535 | 67 | 26.378 | 92 | 36.22 |
| 18 | 7.087 | 43 | 16.929 | 68 | 26.772 | 93 | 36.614 |
| 19 | 7.48 | 44 | 17.323 | 69 | 27.165 | 94 | 37.008 |
| 20 | 7.874 | 45 | 17.717 | 70 | 27.559 | 95 | 37.402 |
| 21 | 8.268 | 46 | 18.11 | 71 | 27.953 | 96 | 37.795 |
| 22 | 8.661 | 47 | 18.504 | 72 | 28.346 | 97 | 38.189 |
| 23 | 9.055 | 48 | 18.898 | 73 | 28.74 | 98 | 38.583 |
| 24 | 9.449 | 49 | 19.291 | 74 | 29.134 | 99 | 38.976 |
| 25 | 9.843 | 50 | 19.685 | 75 | 29.528 | 100 | 39.37 |
Inches to Centimeters Chart
From 1 in to 100 in. These are exact, because the inch is defined as exactly 2.54 cm.
| in | cm | in | cm | in | cm | in | cm |
|---|---|---|---|---|---|---|---|
| 1 | 2.54 | 26 | 66.04 | 51 | 129.54 | 76 | 193.04 |
| 2 | 5.08 | 27 | 68.58 | 52 | 132.08 | 77 | 195.58 |
| 3 | 7.62 | 28 | 71.12 | 53 | 134.62 | 78 | 198.12 |
| 4 | 10.16 | 29 | 73.66 | 54 | 137.16 | 79 | 200.66 |
| 5 | 12.7 | 30 | 76.2 | 55 | 139.7 | 80 | 203.2 |
| 6 | 15.24 | 31 | 78.74 | 56 | 142.24 | 81 | 205.74 |
| 7 | 17.78 | 32 | 81.28 | 57 | 144.78 | 82 | 208.28 |
| 8 | 20.32 | 33 | 83.82 | 58 | 147.32 | 83 | 210.82 |
| 9 | 22.86 | 34 | 86.36 | 59 | 149.86 | 84 | 213.36 |
| 10 | 25.4 | 35 | 88.9 | 60 | 152.4 | 85 | 215.9 |
| 11 | 27.94 | 36 | 91.44 | 61 | 154.94 | 86 | 218.44 |
| 12 | 30.48 | 37 | 93.98 | 62 | 157.48 | 87 | 220.98 |
| 13 | 33.02 | 38 | 96.52 | 63 | 160.02 | 88 | 223.52 |
| 14 | 35.56 | 39 | 99.06 | 64 | 162.56 | 89 | 226.06 |
| 15 | 38.1 | 40 | 101.6 | 65 | 165.1 | 90 | 228.6 |
| 16 | 40.64 | 41 | 104.14 | 66 | 167.64 | 91 | 231.14 |
| 17 | 43.18 | 42 | 106.68 | 67 | 170.18 | 92 | 233.68 |
| 18 | 45.72 | 43 | 109.22 | 68 | 172.72 | 93 | 236.22 |
| 19 | 48.26 | 44 | 111.76 | 69 | 175.26 | 94 | 238.76 |
| 20 | 50.8 | 45 | 114.3 | 70 | 177.8 | 95 | 241.3 |
| 21 | 53.34 | 46 | 116.84 | 71 | 180.34 | 96 | 243.84 |
| 22 | 55.88 | 47 | 119.38 | 72 | 182.88 | 97 | 246.38 |
| 23 | 58.42 | 48 | 121.92 | 73 | 185.42 | 98 | 248.92 |
| 24 | 60.96 | 49 | 124.46 | 74 | 187.96 | 99 | 251.46 |
| 25 | 63.5 | 50 | 127 | 75 | 190.5 | 100 | 254 |
Meters to Feet Chart
From 1 m to 100 m.
| m | ft | m | ft | m | ft | m | ft |
|---|---|---|---|---|---|---|---|
| 1 | 3.281 | 26 | 85.302 | 51 | 167.323 | 76 | 249.344 |
| 2 | 6.562 | 27 | 88.583 | 52 | 170.604 | 77 | 252.625 |
| 3 | 9.843 | 28 | 91.864 | 53 | 173.885 | 78 | 255.906 |
| 4 | 13.123 | 29 | 95.144 | 54 | 177.165 | 79 | 259.186 |
| 5 | 16.404 | 30 | 98.425 | 55 | 180.446 | 80 | 262.467 |
| 6 | 19.685 | 31 | 101.706 | 56 | 183.727 | 81 | 265.748 |
| 7 | 22.966 | 32 | 104.987 | 57 | 187.008 | 82 | 269.029 |
| 8 | 26.247 | 33 | 108.268 | 58 | 190.289 | 83 | 272.31 |
| 9 | 29.528 | 34 | 111.549 | 59 | 193.57 | 84 | 275.591 |
| 10 | 32.808 | 35 | 114.829 | 60 | 196.85 | 85 | 278.871 |
| 11 | 36.089 | 36 | 118.11 | 61 | 200.131 | 86 | 282.152 |
| 12 | 39.37 | 37 | 121.391 | 62 | 203.412 | 87 | 285.433 |
| 13 | 42.651 | 38 | 124.672 | 63 | 206.693 | 88 | 288.714 |
| 14 | 45.932 | 39 | 127.953 | 64 | 209.974 | 89 | 291.995 |
| 15 | 49.213 | 40 | 131.234 | 65 | 213.255 | 90 | 295.276 |
| 16 | 52.493 | 41 | 134.514 | 66 | 216.535 | 91 | 298.556 |
| 17 | 55.774 | 42 | 137.795 | 67 | 219.816 | 92 | 301.837 |
| 18 | 59.055 | 43 | 141.076 | 68 | 223.097 | 93 | 305.118 |
| 19 | 62.336 | 44 | 144.357 | 69 | 226.378 | 94 | 308.399 |
| 20 | 65.617 | 45 | 147.638 | 70 | 229.659 | 95 | 311.68 |
| 21 | 68.898 | 46 | 150.919 | 71 | 232.94 | 96 | 314.961 |
| 22 | 72.178 | 47 | 154.199 | 72 | 236.22 | 97 | 318.241 |
| 23 | 75.459 | 48 | 157.48 | 73 | 239.501 | 98 | 321.522 |
| 24 | 78.74 | 49 | 160.761 | 74 | 242.782 | 99 | 324.803 |
| 25 | 82.021 | 50 | 164.042 | 75 | 246.063 | 100 | 328.084 |
Feet to Meters Chart
From 1 ft to 100 ft.
| ft | m | ft | m | ft | m | ft | m |
|---|---|---|---|---|---|---|---|
| 1 | 0.3048 | 26 | 7.925 | 51 | 15.545 | 76 | 23.165 |
| 2 | 0.6096 | 27 | 8.23 | 52 | 15.85 | 77 | 23.47 |
| 3 | 0.9144 | 28 | 8.534 | 53 | 16.154 | 78 | 23.774 |
| 4 | 1.219 | 29 | 8.839 | 54 | 16.459 | 79 | 24.079 |
| 5 | 1.524 | 30 | 9.144 | 55 | 16.764 | 80 | 24.384 |
| 6 | 1.829 | 31 | 9.449 | 56 | 17.069 | 81 | 24.689 |
| 7 | 2.134 | 32 | 9.754 | 57 | 17.374 | 82 | 24.994 |
| 8 | 2.438 | 33 | 10.058 | 58 | 17.678 | 83 | 25.298 |
| 9 | 2.743 | 34 | 10.363 | 59 | 17.983 | 84 | 25.603 |
| 10 | 3.048 | 35 | 10.668 | 60 | 18.288 | 85 | 25.908 |
| 11 | 3.353 | 36 | 10.973 | 61 | 18.593 | 86 | 26.213 |
| 12 | 3.658 | 37 | 11.278 | 62 | 18.898 | 87 | 26.518 |
| 13 | 3.962 | 38 | 11.582 | 63 | 19.202 | 88 | 26.822 |
| 14 | 4.267 | 39 | 11.887 | 64 | 19.507 | 89 | 27.127 |
| 15 | 4.572 | 40 | 12.192 | 65 | 19.812 | 90 | 27.432 |
| 16 | 4.877 | 41 | 12.497 | 66 | 20.117 | 91 | 27.737 |
| 17 | 5.182 | 42 | 12.802 | 67 | 20.422 | 92 | 28.042 |
| 18 | 5.486 | 43 | 13.106 | 68 | 20.726 | 93 | 28.346 |
| 19 | 5.791 | 44 | 13.411 | 69 | 21.031 | 94 | 28.651 |
| 20 | 6.096 | 45 | 13.716 | 70 | 21.336 | 95 | 28.956 |
| 21 | 6.401 | 46 | 14.021 | 71 | 21.641 | 96 | 29.261 |
| 22 | 6.706 | 47 | 14.326 | 72 | 21.946 | 97 | 29.566 |
| 23 | 7.01 | 48 | 14.63 | 73 | 22.25 | 98 | 29.87 |
| 24 | 7.315 | 49 | 14.935 | 74 | 22.555 | 99 | 30.175 |
| 25 | 7.62 | 50 | 15.24 | 75 | 22.86 | 100 | 30.48 |
Kilometers to Miles Chart
Every kilometer from 1 to 20, then steps of 5 up to 100 km.
| km | mi | km | mi | km | mi | km | mi |
|---|---|---|---|---|---|---|---|
| 1 | 0.6214 | 10 | 6.214 | 19 | 11.806 | 60 | 37.282 |
| 2 | 1.243 | 11 | 6.835 | 20 | 12.427 | 65 | 40.389 |
| 3 | 1.864 | 12 | 7.456 | 25 | 15.534 | 70 | 43.496 |
| 4 | 2.485 | 13 | 8.078 | 30 | 18.641 | 75 | 46.603 |
| 5 | 3.107 | 14 | 8.699 | 35 | 21.748 | 80 | 49.71 |
| 6 | 3.728 | 15 | 9.321 | 40 | 24.855 | 85 | 52.817 |
| 7 | 4.35 | 16 | 9.942 | 45 | 27.962 | 90 | 55.923 |
| 8 | 4.971 | 17 | 10.563 | 50 | 31.069 | 95 | 59.03 |
| 9 | 5.592 | 18 | 11.185 | 55 | 34.175 | 100 | 62.137 |
Miles to Kilometers Chart
Every mile from 1 to 20, then steps of 5 up to 100 mi.
| mi | km | mi | km | mi | km | mi | km |
|---|---|---|---|---|---|---|---|
| 1 | 1.609 | 10 | 16.093 | 19 | 30.578 | 60 | 96.561 |
| 2 | 3.219 | 11 | 17.703 | 20 | 32.187 | 65 | 104.607 |
| 3 | 4.828 | 12 | 19.312 | 25 | 40.234 | 70 | 112.654 |
| 4 | 6.437 | 13 | 20.921 | 30 | 48.28 | 75 | 120.701 |
| 5 | 8.047 | 14 | 22.531 | 35 | 56.327 | 80 | 128.748 |
| 6 | 9.656 | 15 | 24.14 | 40 | 64.374 | 85 | 136.794 |
| 7 | 11.265 | 16 | 25.75 | 45 | 72.42 | 90 | 144.841 |
| 8 | 12.875 | 17 | 27.359 | 50 | 80.467 | 95 | 152.888 |
| 9 | 14.484 | 18 | 28.968 | 55 | 88.514 | 100 | 160.934 |
Millimeters to Inches Chart
From 1 mm to 25 mm. US tape measures split the inch into halves, quarters, eighths and sixteenths, not tenths, so the last column rounds to the nearest sixteenth of an inch.
| Millimeters | Decimal inches | Nearest 1/16 in |
|---|---|---|
| 1 | 0.03937 | 1/16 in |
| 2 | 0.07874 | 1/16 in |
| 3 | 0.1181 | 1/8 in |
| 4 | 0.1575 | 3/16 in |
| 5 | 0.1969 | 3/16 in |
| 6 | 0.2362 | 1/4 in |
| 7 | 0.2756 | 1/4 in |
| 8 | 0.315 | 5/16 in |
| 9 | 0.3543 | 3/8 in |
| 10 | 0.3937 | 3/8 in |
| 11 | 0.4331 | 7/16 in |
| 12 | 0.4724 | 1/2 in |
| 13 | 0.5118 | 1/2 in |
| 14 | 0.5512 | 9/16 in |
| 15 | 0.5906 | 9/16 in |
| 16 | 0.6299 | 5/8 in |
| 17 | 0.6693 | 11/16 in |
| 18 | 0.7087 | 11/16 in |
| 19 | 0.748 | 3/4 in |
| 20 | 0.7874 | 13/16 in |
| 21 | 0.8268 | 13/16 in |
| 22 | 0.8661 | 7/8 in |
| 23 | 0.9055 | 7/8 in |
| 24 | 0.9449 | 15/16 in |
| 25 | 0.9843 | 1 in |
Near enough on a tape measure isn't always near enough for a tool. 19 mm and 3/4 in are only 0.05 mm apart, so those spanners swap without trouble. A 13 mm spanner on a 1/2 in bolt head has 0.3 mm of play, which is enough to round off the corners if the bolt is tight.
Metric Length Units
Every metric length is the meter with a prefix in front, and each prefix is a power of ten. That makes converting between metric units a matter of moving the decimal point: 2.45 m is 245 cm, which is 2,450 mm.
| Unit | Symbol | In meters | Used for |
|---|---|---|---|
| nanometer | nm | 0.000000001 | Wavelengths of light, computer chip features |
| micrometer | µm | 0.000001 | Bacteria, the thickness of a hair (about 70 µm) |
| millimeter | mm | 0.001 | Engineering drawings, screws, rainfall |
| centimeter | cm | 0.01 | Body measurements, clothing, small objects |
| decimeter | dm | 0.1 | Rare in daily life; 1 dm³ is 1 liter |
| meter | m | 1 | Rooms, buildings, fabric, sports |
| kilometer | km | 1,000 | Road distances, running races |
The converter covers the four that come up most: millimeters, centimeters, meters and kilometers. For the others, move the decimal point. A decimeter is 10 cm, a micrometer is a thousandth of a millimeter, and a nanometer is a thousandth of a micrometer.
Prefixes don't stack. A thousandth of a millimeter is a micrometer, not a "millimillimeter". Symbols are case-sensitive too: mm is a millimeter, while Mm would be a megameter, a million meters.
Imperial and US Length Units
Imperial lengths don't step by tens. There are 12 inches in a foot, 3 feet in a yard and 1,760 yards in a mile. The British imperial and US customary systems disagree on volume (a US gallon is smaller than an imperial one), but their length units are identical. Since 1959 all of them have been defined from the meter.
| Unit | Equal to | Feet | Meters |
|---|---|---|---|
| Thou (mil) | 1/1,000 inch | 1/12,000 | 0.0000254 |
| Inch | 1/12 foot | 1/12 | 0.0254 |
| Foot | 12 inches | 1 | 0.3048 |
| Yard | 3 feet | 3 | 0.9144 |
| Chain | 22 yards | 66 | 20.1168 |
| Furlong | 10 chains | 660 | 201.168 |
| Mile | 8 furlongs | 5,280 | 1,609.344 |
The chain and furlong explain the strange 5,280. A furlong, from "furrow long", was the length of a furrow in a standard ploughed field, and in 1593 the mile was fixed at 8 of them: 8 × 660 ft = 5,280 ft. The chain lives on in cricket, where the pitch is 22 yards long, exactly one chain.
Where these units are still used:
- United States. Inches, feet and miles are the everyday units for heights, rooms, roads and speed limits. The US, Liberia and Myanmar are usually named as the only countries that have not officially adopted the metric system.
- United Kingdom. Mostly metric, but road signs give distances in miles and yards, and people describe their height in feet and inches.
- Aviation. Aircraft altitude is given in feet in most of the world, even in otherwise metric countries.
- Screens, wheels and pipes. TV and phone screens, bicycle wheels and pipe fittings are sold in inches almost everywhere.
- Shoe sizes. UK and US shoe sizes go up by a third of an inch per size, which is one barleycorn, the medieval unit the inch was once defined by.
Feet and inches have their own shorthand: a single prime for feet and a double prime for inches, so 5′ 11″ means 5 feet 11 inches. On a keyboard people usually type an apostrophe and a quotation mark instead.
Everyday Lengths in Metric and Imperial
A converted number is easier to picture when you have something to compare it with. Here are some familiar sizes, given in the unit they are normally quoted in and converted to the other system.
| What | Usually quoted as | Converted |
|---|---|---|
| Credit or debit card | 85.6 × 53.98 mm | 3.37 × 2.125 in |
| A4 sheet of paper | 210 × 297 mm | 8.27 × 11.69 in |
| US Letter sheet of paper | 8.5 × 11 in | 215.9 × 279.4 mm |
| 55-inch TV, measured on the diagonal | 55 in | 139.7 cm |
| Standard US interior door height | 80 in | 203.2 cm |
| Cricket pitch, wicket to wicket | 22 yd | 20.12 m |
| Olympic swimming pool | 50 m | 54.7 yd |
| One lap of a running track (inside lane) | 400 m | 437.4 yd |
| Football (soccer) pitch, size FIFA recommends | 105 × 68 m | 114.8 × 74.4 yd |
| American football field, end zones included | 120 × 53 1/3 yd | 109.73 × 48.77 m |
| Eiffel Tower | 330 m | 1,083 ft |
| Mount Everest | 8,848.86 m | 29,032 ft |
| Typical airliner cruising altitude | 35,000 ft | 10.67 km |
| Distance around the Earth at the equator | 40,075 km | 24,901 mi |
Mount Everest's height of 8,848.86 m is the figure China and Nepal announced together in 2020. It is often rounded to 29,032 ft. The football pitch is the size FIFA recommends for top matches; the rules allow some range either side of it.
Convert Length in Your Head
For a rough idea of a distance on a road sign or the size of a room, a round number does the job. These shortcuts are easy to remember, and the last column shows how far off each one is:
| Conversion | Shortcut | Example | Shortcut gives | Exact | Off by |
|---|---|---|---|---|---|
| Inches to cm | Multiply by 2.5 | 12 in | 30 cm | 30.48 cm | −1.6% |
| Feet to meters | Multiply by 0.3 | 10 ft | 3 m | 3.048 m | −1.6% |
| Meters to feet | Multiply by 3.3 | 10 m | 33 ft | 32.808 ft | +0.6% |
| Meters to yards | Add 10% | 100 m | 110 yd | 109.361 yd | +0.6% |
| Kilometers to miles | Multiply by 0.6 | 10 km | 6 mi | 6.214 mi | −3.4% |
| Kilometers to miles | Divide by 8, times 5 | 40 km | 25 mi | 24.855 mi | +0.6% |
| Miles to kilometers | Multiply by 1.6 | 26.2 mi | 41.92 km | 42.165 km | −0.6% |
For kilometers and miles there is a neat trick with the Fibonacci numbers (1, 2, 3, 5, 8, 13, 21, 34…), where each number is the sum of the two before it. Two numbers next to each other are close to a miles and kilometers pair: 5 mi is about 8 km, 8 mi about 13 km, and 13 mi about 21 km, which is almost exactly a half marathon. It works because the ratio between neighboring Fibonacci numbers, about 1.618, is close to 1.609.
A few anchors help too. A meter is about 3 ft 3 in, a little more than a yard. A foot is just over 30 cm. The width of an adult thumb is roughly an inch, which is where the inch came from in the first place.
Length Units That Catch People Out
The multiplication is rarely where a length conversion goes wrong. The usual trouble is a unit with two meanings, or a size that isn't what its name says.
- Nautical miles. Sea and air navigation use the nautical mile, exactly 1,852 m, which is about 15% longer than the 1,609.344 m statute mile. A knot is one nautical mile per hour. If a distance comes from a chart or a flight plan, check which mile it is.
- The US survey foot. Older US land surveys use a foot of 1200/3937 m, 2 parts per million longer than the international foot. That is about 3.2 mm per mile, which only matters in land records and mapping. It was retired at the end of 2022, but old deeds and maps still use it.
- Decimal feet. 5.5 ft is 5 ft 6 in, not 5 ft 5 in, because a foot has 12 inches, not 10. The Height Converter guide goes through this in more detail.
- Abbreviations. In SI, m is meters and mi is miles, but older documents sometimes use m for miles. In the US a mil is a thousandth of an inch (used for the thickness of plastic sheeting), while some people use "mil" as short for millimeter. Those differ by a factor of about 39.
- Nominal sizes. Some sizes are names, not measurements. A 2×4 piece of lumber is 1.5 × 3.5 inches. A 1/2 inch pipe has an outside diameter of about 0.84 inches. A 55-inch TV is 55 inches across the diagonal; at 16:9 it is about 48 inches (122 cm) wide.
- Rounding twice. Convert from the original number, not from an answer that was already rounded. Rounded factors pile up too: 1 mi × 1.609 = 1.609 km, and 1.609 × 0.621 = 0.999 mi, not 1. The converter goes through the exact size in meters each time, so it doesn't have this problem.
Convert Length in Excel and Code
For a whole column of measurements, a spreadsheet formula or a few lines of code is faster than converting them one at a time.
Excel and Google Sheets
Both have a CONVERT function. Put the first value in cell A2, enter one of these formulas next to it, and fill it down the column:
| Conversion | Formula |
|---|---|
| Meters to feet | =CONVERT(A2, "m", "ft") |
| Feet to meters | =CONVERT(A2, "ft", "m") |
| Inches to centimeters | =CONVERT(A2, "in", "cm") |
| Millimeters to inches | =CONVERT(A2, "mm", "in") |
| Kilometers to miles | =CONVERT(A2, "km", "mi") |
| Miles to nautical miles | =CONVERT(A2, "mi", "Nmi") |
| Inches to centimeters, without CONVERT | =A2 * 2.54 |
| Feet to meters, rounded to 2 decimals | =ROUND(A2 * 0.3048, 2) |
The unit codes are case-sensitive. The length codes are "m", "in", "ft", "yd" and "mi", plus "Nmi" for nautical miles and "survey_mi" for the US survey mile. In Excel, metric prefixes go in front of "m", so "km", "cm" and "mm" all work.
JavaScript and Python
The same convert-through-meters method the converter uses takes one line, plus a list of unit sizes:
// Size of one unit in meters
const METERS = { mm: 0.001, cm: 0.01, m: 1, km: 1000, in: 0.0254, ft: 0.3048, yd: 0.9144, mi: 1609.344 };
const convertLength = (value, from, to) => value * (METERS[from] / METERS[to]);
console.log(convertLength(18, 'in', 'cm')); // 45.72
console.log(convertLength(42.195, 'km', 'mi')); // 26.218757456454306
console.log(convertLength(6, 'ft', 'm')); // 1.8288000000000002
console.log(+convertLength(6, 'ft', 'm').toFixed(3)); // 1.829 # Size of one unit in meters
METERS = {"mm": 0.001, "cm": 0.01, "m": 1, "km": 1000,
"in": 0.0254, "ft": 0.3048, "yd": 0.9144, "mi": 1609.344}
def convert_length(value, from_unit, to_unit):
return value * (METERS[from_unit] / METERS[to_unit])
print(convert_length(18, "in", "cm")) # 45.72
print(convert_length(42.195, "km", "mi")) # 26.218757456454306
print(convert_length(6, "ft", "m")) # 1.8288000000000002
print(round(convert_length(6, "ft", "m"), 3)) # 1.829 Computers store decimals in binary, and numbers like 0.3048 can't be stored exactly. That's why 6 ft comes out as 1.8288000000000002 m. Round the result before you show it, as the last line does.
History of Length Units
The oldest length units come from the body. The inch was the width of a thumb, the foot was a foot, and the Roman mile was a thousand paces, where a pace was two steps. The word inch comes from the Latin uncia, meaning a twelfth, which also gave us the ounce. Since every region had its own foot and its own mile, rulers tried to pin them down: an English statute of 1324 defined the inch as three barleycorns, and an act of 1593 set the mile at 5,280 feet.
The meter came from the opposite idea, a unit taken from the Earth rather than from a person. In 1791 France decided it would be one ten-millionth of the distance from the North Pole to the equator. Surveyors spent most of the 1790s measuring the meridian from Dunkirk to Barcelona to work out how long that was, and the result was made into a platinum bar in 1799. A better bar of platinum-iridium replaced it in 1889. In 1960 the meter was redefined by a wavelength of light, and since 1983 by the speed of light itself: a meter is the distance light travels in a vacuum in 1/299,792,458 of a second.
The imperial units ended up tied to the meter too. The United States defined its yard from the meter in 1893, and in 1959 the US, the UK and other Commonwealth countries agreed on one yard of exactly 0.9144 m. That is why an inch is exactly 2.54 cm and a mile is exactly 1,609.344 m today, with no rounding.
Timeline of Length Units
| When | What happened |
|---|---|
| Ancient Rome | The mile starts as mille passus, a thousand paces of a marching soldier, or 5,000 Roman feet. |
| 1324 | An English statute of Edward II sets the inch at three grains of barley, dry and round, placed end to end. |
| 1593 | An English act of Parliament fixes the statute mile at 8 furlongs, or 5,280 feet. |
| 1620 | Edmund Gunter introduces his surveying chain of 66 feet. Ten chains make a furlong. |
| 1791 | France decides the meter will be one ten-millionth of the distance from the North Pole to the equator. |
| 1799 | A platinum bar, the Mètre des Archives, becomes the reference meter in Paris. |
| 1875 | 17 countries sign the Metre Convention and set up the International Bureau of Weights and Measures (BIPM). |
| 1889 | A new platinum-iridium bar, the International Prototype Metre, replaces the 1799 bar. |
| 1893 | The Mendenhall Order: the United States defines its yard and foot from the meter. |
| 1929 | The international nautical mile is set at exactly 1,852 meters. |
| 1930 and 1933 | British and American standards bodies adopt an "industrial inch" of exactly 25.4 mm. |
| 1959 | The international yard and pound agreement: 1 yard = 0.9144 m, so 1 inch = 2.54 cm exactly. |
| 1960 | The meter is redefined as 1,650,763.73 wavelengths of an orange-red line of krypton-86. |
| 1983 | The meter is redefined by the speed of light, the definition still in use. |
| 2022 | The US survey foot is used for the last time on December 31 and is obsolete from 2023. |