How length conversion works
Every unit is defined as an exact number of meters. Since 1959 the inch is exactly 2.54 centimeters, and the foot, yard and mile follow from it, as listed in NIST Handbook 44, Appendix C. The converter turns your value into meters and then into the unit you want, with exact decimals.
- x
- The value you enter
- f(u)
- Meters in one unit u, for example f(in) = 0.0254
| 1 inch | 2.54 cm |
|---|---|
| 1 foot = 12 inches | 30.48 cm |
| 1 yard = 3 feet | 0.9144 m |
| 1 mile = 5,280 feet | 1.609344 km |
| 1 nautical mile | 1,852 m |
Worked example
How tall is 170 cm in feet and inches?
| 170 cm in inches170 ÷ 2.54 | 66.92913386 in |
|---|---|
| Whole feet66.92913386 ÷ 12, rounded down | 5 ft |
| Inches left over66.92913386 − 5 × 12 | 6.929133858 in |
| 170 cm | 5 ft 6.9 in |
The other way, 6 feet is 182.88 cm, and a 10 km run is 6.213711922 miles.
Common conversions
| 1 cm | 0.3937007874 in |
|---|---|
| 1 m | 3.280839895 ft |
| 1 km | 0.6213711922 mi |
| 1 mi | 1.609344 km |
| 1 ft | 0.3048 m |
| 1 yd | 0.9144 m |
Reading the result
- The headline is your value in the unit you chose, shown to 10 significant digits.
- 1 unit equals gives the factor both ways, so you can convert other values in your head.
- The same amount in every unit lists your value in all nine units.
Round the result to the precision of the measurement. A height measured to the nearest centimeter does not become more precise in inches.
Assumptions
- The international inch, foot, yard and mile of 1959 (1 in = 2.54 cm exactly).
- The international nautical mile of 1,852 m.
- Results are exact decimals, shown to 10 significant digits.
Limitations
- The US survey foot (1200/3937 m), retired at the end of 2022 but still found in older land records, is not included. It differs by about 2 parts per million.
- Negative lengths are not accepted.
- Area and volume need squared or cubed factors. For liquids use the volume converter.
Frequently asked questions
How many centimeters are in an inch?
Exactly 2.54. The inch has been defined this way since 1959.
How do I convert cm to feet and inches?
Divide by 2.54 to get inches, then divide by 12. The whole number is feet and the remainder is inches: 170 cm is 5 ft 6.9 in.
How many kilometers are in a mile?
Exactly 1.609344. One kilometer is about 0.6213711922 miles, so a marathon of 42.195 km is 26.21875746 miles.
Is a nautical mile the same as a mile?
No. A nautical mile is 1,852 m, or 1.150779448 statute miles. It is used at sea and in aviation.
Sources
Definitions and rules referenced on this page. Calcendium is not affiliated with these publishers.
- NIST Handbook 44 (2026), Appendix C: General Tables of Units of Measurement
National Institute of Standards and Technology · United States · Checked October 24, 2026
Exact definitions: 1 inch = 2.54 cm, 1 yard = 0.9144 m, 1 mile = 1.609344 km, 1 nautical mile = 1852 m, 1 pound = 0.45359237 kg, 1 pound = 16 ounces, 1 stone = 14 pounds, 1 US gallon = 231 cubic inches, 1 cup = 8 fluid ounces, 1 tablespoon = ½ fluid ounce = 3 teaspoons.
- NIST Guide to the SI (Special Publication 811), Appendix B.8: Factors for Units Listed Alphabetically
National Institute of Standards and Technology · International · Checked October 24, 2026
Exact conversion factors, including the imperial gallon (4.54609 L) and the temperature relations t/°C = (t/°F − 32) ÷ 1.8 and T/K = (t/°F + 459.67) ÷ 1.8.