Length Converter
Convert any length measurement between metric and imperial units in real time. Choose your starting unit, type a value, and the result appears instantly — no calculation required.
How It Works
Every length conversion on this page runs through a single base-unit algorithm. The tool stores one conversion factor per unit — the number of meters that unit represents. To convert from unit A to unit B, it first multiplies your input by A's factor (converting to meters), then divides by B's factor (converting from meters to B). This two-step approach means only 8 factors are needed to support all 56 possible unit pairs.
The metric system defines length in terms of the meter (m), which is the SI base unit. The prefix system is strictly decimal: 1 kilometer = 1,000 meters, 1 centimeter = 0.01 meters, 1 millimeter = 0.001 meters. These exact relationships mean metric-to-metric conversions are always precise integer powers of 10.
Imperial and US customary units have messier relationships rooted in historical precedent. The international inch was defined in 1959 as exactly 25.4 millimeters (0.0254 m). From that anchor: 1 foot = 12 inches = 0.3048 m, 1 yard = 3 feet = 0.9144 m, 1 mile = 5,280 feet = 1,609.344 m. These are exact values, not approximations.
Worked example — Convert 5 feet 11 inches to centimeters:
5 ft 11 in = (5 × 12 + 11) = 71 inches
71 × 0.0254 = 1.8034 m = 180.34 cm
This is a common calculation for international shoe and clothing sizing, or for understanding a height stated in feet and inches when you are accustomed to centimeters.
Worked example — Convert 26.2 miles (marathon distance) to kilometers:
26.2 × 1609.344 = 42,164.8128 m = 42.1648 km
The official marathon distance is 42.195 km (42 km 195 m), a figure set in 1921.
Worked example — Convert 100 meters (sprint) to yards:
100 ÷ 0.9144 = 109.361 yards
Practical contexts for length conversion include international travel (speed limits and distances in km vs miles), architecture and engineering drawings (mm vs inches), fabric and sewing (cm vs inches), athletics (100 m, marathon), and astronomy where distances are measured in light-years or parsecs (though this tool focuses on everyday units).
For very large or very small values the result is displayed in scientific notation (e.g., 1.5e+9) to avoid unwieldy strings of zeros. The conversion engine preserves 10 significant figures before trimming trailing zeros.
Frequently Asked Questions
How many centimeters are in an inch?
Exactly 2.54 cm. This exact value was agreed internationally in 1959, fixing the relationship between the metric and imperial systems. So 1 foot = 30.48 cm and 1 yard = 91.44 cm.
How many feet are in a mile?
5,280 feet in one mile. The mile originates from the Roman mille passuum ("thousand paces" of a marching soldier), which was later standardised to 5,280 feet by English statute in 1593.
What is the difference between a kilometer and a mile?
1 mile = 1.60934 km, and 1 km = 0.62137 miles. A quick mental approximation: multiply km by 0.6 to get approximate miles, or multiply miles by 1.6 to get approximate km.
How do I convert height from feet and inches to centimeters?
Convert feet and inches to total inches first (feet × 12 + remaining inches), then multiply by 2.54. For example, 5'9" = (5×12+9) = 69 in × 2.54 = 175.26 cm.
How many millimeters are in a meter?
Exactly 1,000 mm per meter. The prefix "milli" always means one-thousandth. So 1 m = 1,000 mm = 100 cm = 0.001 km.
Why does this tool use exact conversion factors?
The factors for metric units (mm, cm, km) are exact by definition. Imperial factors (in, ft, yd, mi) are also exact since 1959 when the inch was legally defined as exactly 25.4 mm. Results may show rounding only due to floating-point arithmetic in the browser.