Metric vs Imperial: Complete Conversion Guide
Two Systems, One World
Most of the world uses the metric system (meters, kilograms, Celsius). The United States, Liberia, and Myanmar primarily use the imperial system (feet, pounds, Fahrenheit). If you work across borders — and most developers do — you need to convert between them confidently.
Use the Unit Converter for instant, accurate conversions.
Length
| Metric | Imperial | Conversion Formula |
|---|---|---|
| 1 millimeter (mm) | 0.03937 inches | in = mm × 0.03937 |
| 1 centimeter (cm) | 0.3937 inches | in = cm × 0.3937 |
| 1 meter (m) | 3.2808 feet | ft = m × 3.2808 |
| 1 meter (m) | 1.0936 yards | yd = m × 1.0936 |
| 1 kilometer (km) | 0.6214 miles | mi = km × 0.6214 |
| 1 inch (in) | 2.54 cm | cm = in × 2.54 |
| 1 foot (ft) | 0.3048 m | m = ft × 0.3048 |
| 1 yard (yd) | 0.9144 m | m = yd × 0.9144 |
| 1 mile (mi) | 1.6093 km | km = mi × 1.6093 |
Quick Estimates
- 1 inch ≈ width of a thumb
- 1 meter ≈ 3 feet 3 inches
- 1 kilometer ≈ 0.6 miles (roughly two-thirds of a mile)
- 100 km/h ≈ 62 mph
Weight / Mass
| Metric | Imperial | Conversion Formula |
|---|---|---|
| 1 gram (g) | 0.03527 ounces | oz = g × 0.03527 |
| 1 kilogram (kg) | 2.2046 pounds | lb = kg × 2.2046 |
| 1 ounce (oz) | 28.3495 g | g = oz × 28.3495 |
| 1 pound (lb) | 0.4536 kg | kg = lb × 0.4536 |
| 1 stone (st) | 6.3503 kg | kg = st × 6.3503 |
| 1 metric tonne | 1.1023 US tons | ton = t × 1.1023 |
Quick Estimates
- 1 kg ≈ 2.2 lb
- 100 g ≈ 3.5 oz
- A typical car weighs about 1.5 tonnes (≈ 3300 lb)
Temperature
This is the trickiest conversion because the zero points differ.
| Metric (°C) | Imperial (°F) | Context |
|---|---|---|
| -40 °C | -40 °F | Where both scales meet |
| 0 °C | 32 °F | Freezing point of water |
| 20 °C | 68 °F | Comfortable room temperature |
| 37 °C | 98.6 °F | Normal body temperature |
| 100 °C | 212 °F | Boiling point of water |
Conversion Formulas
°F = (°C × 9/5) + 32
°C = (°F - 32) × 5/9
Quick Mental Math
- To convert Celsius to Fahrenheit: double it, subtract 10%, add 32.
- Example: 20°C → 40 → 36 → 68°F ✓
- To convert Fahrenheit to Celsius: subtract 32, halve it, add 10%.
- Example: 68°F → 36 → 18 → 19.8°C ≈ 20°C ✓
Volume
| Metric | Imperial (US) | Conversion Formula |
|---|---|---|
| 1 milliliter (mL) | 0.03381 fl oz (US) | fl oz = mL × 0.03381 |
| 1 liter (L) | 0.2642 US gallons | gal = L × 0.2642 |
| 1 US fluid ounce | 29.5735 mL | mL = fl oz × 29.5735 |
| 1 US cup | 236.588 mL | mL = cup × 236.588 |
| 1 US pint | 473.176 mL | mL = pt × 473.176 |
| 1 US quart | 946.353 mL | mL = qt × 946.353 |
| 1 US gallon | 3.7854 L | L = gal × 3.7854 |
Imperial vs US Liquid Measures
The UK imperial system differs from the US system:
| Unit | US | UK (Imperial) |
|---|---|---|
| Fluid ounce | 29.57 mL | 28.41 mL |
| Pint | 473 mL | 568 mL |
| Gallon | 3.785 L | 4.546 L |
A UK pint is about 20% larger than a US pint — important when ordering beer.
Area
| Metric | Imperial | Conversion Formula |
|---|---|---|
| 1 sq centimeter (cm²) | 0.155 sq in | in² = cm² × 0.155 |
| 1 sq meter (m²) | 10.7639 sq ft | ft² = m² × 10.7639 |
| 1 sq kilometer (km²) | 0.3861 sq mi | mi² = km² × 0.3861 |
| 1 hectare | 2.4711 acres | acre = ha × 2.4711 |
Why Developers Need Both
Screen Sizes and DPI
CSS uses pixels, but physical dimensions often come in inches or centimeters. When designing for print or high-DPI screens, you may need to convert:
- DPI (dots per inch) ↔ dpcm (dots per centimeter): 1 inch = 2.54 cm, so
dpcm = DPI / 2.54 - A 27-inch monitor diagonal is 68.58 cm
API Data
Many international APIs return metric values. If your frontend serves US users, you'll need to convert before display. Always store in metric and convert at the presentation layer:
function displayDistance(km: number, locale: string): string {
if (locale === 'en-US') {
return `${(km * 0.6214).toFixed(1)} mi`
}
return `${km.toFixed(1)} km`
}
Common Mistakes
- Confusing mass and weight. A kilogram is mass; a pound is technically force. In everyday use they're interchangeable, but in physics calculations they are not.
- Using US gallons for UK recipes. A UK gallon is 4.546 L vs the US 3.785 L — a 20% difference.
- Forgetting absolute zero. Temperature conversion must account for offset (the +32 or -32), not just the ratio.
- Rounding too early. Chain conversions accumulate error. Convert in one step:
kg → lbnotkg → g → oz → lb.
Related Resources
- Unit Conversion Tips: How to Convert Accurately Every Time
- Unit Conversion Cheat Sheet — printable reference card
- Unit Converter Tool — instant browser-based conversions