Unit Converter — Convert length, weight, temperature, and more
This comprehensive guide explains unit conversion fundamentals and provides practical tools and formulas for converting lengths, weights, volumes, temperatures and other common units. You'll also find quick links to calculators for BMI, Age, and Currency—handy utilities to use while working with numbers.
1. Fundamentals of Unit Conversion
Unit conversion is the process of converting a quantity expressed in one set of units to an equivalent quantity in another set of units. This is essential in science, engineering, commerce and everyday life. Conversion relies on known ratios or formulas between units.
Basic principles
- Identity: units represent the same physical quantity (length with length, mass with mass).
- Conversion factor: a multiplier used to change units (for example, 1 inch = 2.54 centimeters → conversion factor 2.54).
- Dimensional consistency: ensure units cancel properly when multiplying/dividing.
How to convert (simple method)
To convert from unit A to unit B: multiply by the conversion factor that relates A to B. If you have 10 inches and want centimeters, do 10 × 2.54 = 25.4 cm.
2. Length and Distance
Length is one of the most common units to convert. Here are standard conversions:
- 1 meter (m) = 100 centimeters (cm) = 1000 millimeters (mm)
- 1 kilometer (km) = 1000 meters
- 1 inch (in) = 2.54 centimeters (cm)
- 1 foot (ft) = 12 inches = 0.3048 meters
- 1 yard (yd) = 3 feet = 0.9144 meters
- 1 mile = 1760 yards ≈ 1609.344 meters
Examples
Convert 5 miles to kilometers: 5 × 1.609344 = 8.04672 km.
Convert 72 inches to meters: 72 × 2.54 = 182.88 cm → 1.8288 m.
Useful tips
- Use metric units for scientific work—they are decimal-based and easier to scale.
- Watch for imperial vs metric contexts; packaging, construction and road signs may mix systems.
3. Weight and Mass
Weight (or mass) conversions are also common. The base SI unit for mass is the kilogram (kg).
- 1 kilogram = 1000 grams
- 1 gram = 1000 milligrams
- 1 pound (lb) = 0.45359237 kilograms = 453.59237 grams
- 1 ounce (oz) = 1/16 pound = 28.349523125 grams
- 1 stone = 14 pounds = 6.35029318 kilograms (used in UK)
Examples
Convert 150 pounds to kilograms: 150 × 0.45359237 = 68.0388555 kg.
Practical considerations
When dealing with recipes, shipping, or fitness metrics (like BMI), round sensibly and present values with appropriate precision (usually 2–3 significant digits for everyday use).
4. Volume and Capacity
Volume units measure three-dimensional space. Common conversions:
- 1 liter (L) = 1000 milliliters (mL)
- 1 cubic meter (m³) = 1000 liters
- 1 US gallon ≈ 3.785411784 liters
- 1 US quart = 0.946352946 liters
- 1 US pint = 0.473176473 liters; 1 US cup = 236.5882365 mL
- 1 Imperial gallon (UK) = 4.54609 liters (different from US gallon)
Examples
Convert 2.5 US gallons to liters: 2.5 × 3.785411784 = 9.46352946 L.
5. Temperature
Temperature conversion is unique because it involves both scaling and shifting. Main scales: Celsius (°C), Fahrenheit (°F), Kelvin (K).
Formulas
- °C to °F: (°C × 9/5) + 32 = °F
- °F to °C: (°F − 32) × 5/9 = °C
- °C to K: °C + 273.15 = K (Kelvin)
- °F to K: (°F − 32) × 5/9 + 273.15 = K
Examples
Convert 25 °C to °F: (25 × 9/5) + 32 = 77 °F.
Convert 98.6 °F to °C: (98.6 − 32) × 5/9 = 37 °C.
6. Area
Common area units and conversions:
- 1 square meter (m²) = 10.7639104 square feet (ft²)
- 1 hectare (ha) = 10,000 m² = 2.47105381 acres
- 1 acre = 4046.8564224 m²
Examples
Convert 5 acres to square meters: 5 × 4046.8564224 = 20234.282112 m².
7. Speed and Velocity
Common conversions include:
- 1 meter/second (m/s) = 3.6 kilometers/hour (km/h)
- 1 knot = 1 nautical mile per hour = 1.852 km/h
- 1 mile/hour (mph) ≈ 1.609344 km/h
Example
Convert 60 mph to m/s: 60 × 1.609344 = 96.56064 km/h → 96.56064 / 3.6 = 26.8224 m/s.
8. Pressure
Pressure units often used in meteorology, engineering and tires:
- 1 pascal (Pa) = 1 N/m²
- 1 bar = 100,000 Pa
- 1 atm (standard atmosphere) = 101,325 Pa ≈ 1.01325 bar
- 1 psi (pound per square inch) ≈ 6894.757293168 Pa
Example
Convert 14.7 psi (approx. atmospheric pressure at sea level) to Pa: 14.7 × 6894.757293168 ≈ 101352.97 Pa (about 1 atm).
9. Energy and Power
Common energy units: joule (J), calorie (cal), kilowatt-hour (kWh).
- 1 calorie (thermochemical) = 4.184 joules
- 1 kilocalorie (kcal) = 4184 J (food calorie often labeled "Cal")
- 1 kWh = 3,600,000 J
Examples
Convert 500 kcal to kJ: 500 × 4.184 = 2092 kJ.
10. Data Storage
Digital storage uses bytes and multiples:
- 1 byte (B)
- 1 kilobyte (KB) = 1024 bytes (binary) or 1000 bytes (decimal) depending on context
- 1 megabyte (MB) = 1024 KB
- 1 gigabyte (GB) = 1024 MB
- 1 terabyte (TB) = 1024 GB
Tip
Be aware of marketing vs operating system conventions: storage manufacturers often use decimal (1000), while OS and many programmers use binary (1024).
11. Practical Conversion Examples and Formulas
This section collects commonly used conversion formulas for quick reference.
Length
cm = inches * 2.54
inches = cm / 2.54
meters = inches * 0.0254
Weight
kg = pounds * 0.45359237
pounds = kg / 0.45359237
ounces = pounds * 16
Temperature
C = (F - 32) * 5/9
F = (C * 9/5) + 32
K = C + 273.15
12. BMI Calculator — Calculate your Body Mass Index
The Body Mass Index (BMI) estimates body fat based on weight and height. It is a simple screening tool for adults.
Formula
BMI = weight(kg) / (height(m))^2
BMI categories (WHO)
- Underweight: < 18.5
- Normal weight: 18.5–24.9
- Overweight: 25–29.9
- Obesity: ≥ 30
Examples
If a person weighs 70 kg and is 1.75 m tall: BMI = 70 / (1.75^2) = 22.86 (Normal weight).
Use Tool — Quick calculator:
13. Age Calculator — Calculate age in years, months, and days
An age calculator computes the difference between two dates—commonly birthdate to today—to yield years, months and days.
How it works
Algorithm steps:
- Start with current date and birth date.
- Subtract years, adjust months/days if negative by borrowing from months/years.
- Return the result as Y years, M months, D days.
Practical uses
- Legal age verification
- Eligibility checks for services
- Medical records and milestone reminders
Use Tool — Quick calculator:
14. Currency Converter — Convert between different currencies
Currency conversion translates amounts between different national currencies using exchange rates. Rates fluctuate constantly, so use up-to-date data.
Basic formula
amount_in_target = amount_in_source * exchange_rate(source→target)
Example
If 1 USD = 0.92 EUR, converting 100 USD → EUR = 100 × 0.92 = 92 EUR.
Considerations
- Use live rates for accurate conversions (APIs: exchangeratesapi, openexchangerates, bank feeds).
- Include fees and spreads when converting money in practice—banks and services often charge commissions.
- Historical rates matter for accounting and tax reporting.
Use Tool — Quick calculator:
15. Precision, Rounding and Significant Figures
When converting units, think about appropriate precision. Use rounding rules based on context: engineering often requires more significant digits; daily life usually 2–3 digits suffice.
- Round final answers, not intermediate calculations if possible.
- State units clearly with numbers (e.g., 2.50 kg).
16. Common Pitfalls and How to Avoid Them
- Mixing systems: accidentally combining SI and imperial units in formulas.
- Forgetting offsets: temperature conversions require shifts (°C↔°F).
- Confusing mass and weight: mass is amount of matter (kg), weight is force (newtons) under gravity.
- Relying on stale exchange rates: currency rates change continuously.
17. Building a Simple Unit Converter (Concept)
If you want to implement a basic converter in code, the strategy is:
- Normalize input units to a base unit (e.g., meters for length).
- Perform conversion math in base units.
- Convert from base to target units and format output.
Pseudocode (length conversion)
// Input: value, fromUnit, toUnit
baseValue = value * factor(fromUnit -> base)
result = baseValue / factor(toUnit -> base)
print result
18. Use Cases and Practical Applications
Unit converters are used in many domains:
- Engineering and construction to ensure measurements match designs
- Healthcare for dosing and BMI calculations
- Travel and shipping for weights and volumes
- Science for experimental data normalization
- Finance for currency conversions and accounting
19. Accessibility and UX Tips for Converter Tools
- Label units clearly and allow typing as well as dropdown selection.
- Show conversion steps or the conversion factor on demand for transparency.
- Allow batch conversion (multiple values) for power users.
- Provide presets for common conversions (e.g., miles→km, lb→kg).
20. Conclusion
Mastering unit conversion means understanding conversion factors, dimensional analysis, and the context that determines precision and appropriate units. Whether you're converting lengths for a DIY project, calculating BMI for health, determining age precisely, or converting currency for a trip, the rules are straightforward and tools make the work fast and reliable.
If you'd like, I can generate ready-to-use HTML widgets for each tool (Unit Converter, BMI, Age, Currency) that you can embed on your website, or produce code snippets in JavaScript/Python to power these calculators.