Guide
Converting between metric and imperial lengths
By Logappradeep · ServiceNow developer
Length is the most common unit conversion people need: a running distance in miles versus kilometers, a screen size in inches, a room in feet, a part tolerance in millimeters. The metric system scales by powers of ten, while US customary units use factors like 12 inches to a foot and 5,280 feet to a mile, which makes mental conversion error-prone.
Exact definitions
Since 1959, imperial and US customary lengths have been defined exactly in terms of the meter, so these factors are not approximations:
- 1 inch = 2.54 cm exactly (25.4 mm)
- 1 foot = 12 inches = 0.3048 m exactly
- 1 mile = 5,280 feet = 1,609.344 m exactly
- 1 kilometer = 1,000 m, 1 meter = 100 cm = 1,000 mm
The meter itself is defined as the distance light travels in a vacuum in 1/299,792,458 of a second, which makes it reproducible anywhere.
How conversion works
The converter turns your value into meters using the source unit's factor, then divides by the target unit's factor. Converting through one base unit avoids needing a separate factor for every pair. For example:
- A 5 km run: 5,000 m ÷ 1,609.344 = 3.1069 miles.
- A height of 6 feet: 6 × 0.3048 = 1.8288 m, or 182.88 cm.
- A 27-inch monitor diagonal: 27 × 2.54 = 68.58 cm.
Results are shown to four decimal places.
Common uses
- Fitness and travel distances between kilometers and miles.
- Furniture, rooms and building plans between feet and meters.
- Screen sizes, paper sizes and hardware dimensions between inches and millimeters.
- CSS and print work, where 1 CSS inch is defined as 96 CSS pixels and 2.54 cm.
Pitfalls
Feet-and-inches notation. A height like 5′11″ is 5 feet plus 11 inches, which is 71 inches or 180.34 cm. Entering 5.11 feet is wrong; 5.11 feet is about 5 feet 1.3 inches.
Not every mile is the same. The statute mile used on roads is 1,609.344 m. The nautical mile used in aviation and shipping is exactly 1,852 m, about 15% longer.
The US survey foot. Until the end of 2022, US land surveying used a survey foot of 1200/3937 m, about two parts per million longer than the international foot. The difference is negligible for everyday use but adds up to meters over state-wide coordinate systems, so older survey data may need care.
Rounding chains. Converting a rounded value again, for example miles to km to feet, compounds rounding error. Convert from the original measurement whenever you can.
Conversion runs instantly in your browser, and your last value and units are remembered.