Unit Converter — Length, Mass, Volume, Area, Time, Speed
Convert between length, mass, volume, area, time, and speed units using dimensional analysis. See the conversion factor and a step-by-step breakdown.
The core idea: multiply by a factor equal to 1
Most units — length, mass, volume, area, time, speed — share the same zero point, so converting between them is a single multiplication:
The trick behind this is dimensional analysis: the conversion factor is really a fraction that equals 1 (like 1.609344 km / 1 mi), constructed so the old unit cancels out and only the new unit remains.
Worked example: 5 miles to kilometers
Using the factor 1 mi = 1.609344 km:
The "mi" in the numerator and denominator cancel, leaving only km.
Worked example: 10 kilograms to pounds
Using the factor 1 kg ≈ 2.20462262 lb:
Reverse conversions: divide instead of multiply
If 1 mile equals 1.609344 km, converting the other way means dividing by that same factor rather than multiplying by a new one: 1 km ÷ 1.609344 ≈ 0.621 mi. Dividing and multiplying by the reciprocal give the same result — pick whichever is easier to compute by hand.
Area and volume need a squared or cubed factor
Area and volume conversions are the one place a plain linear factor gives the wrong answer, because both (or all three) dimensions scale together:
- Area: 1 m = 100 cm, so 1 m² = 100² = 10,000 cm² — not 100.
- Volume: 1 m = 100 cm, so 1 m³ = 100³ = 1,000,000 cm³ — not 100, and not 10,000.
Worked example: 1 square meter to square centimeters
Worked example: 2 hours to seconds
Time conversions often chain two factors together: 1 hour = 60 minutes, and 1 minute = 60 seconds, so 1 hour = 60 × 60 = 3,600 seconds.
Worked example: speed (km/h to m/s)
Speed combines a length factor and a time factor into one: converting km/h to m/s multiplies by the length factor (1 km = 1,000 m) and divides by the time factor (1 h = 3,600 s), giving an overall factor of 1,000/3,600 ≈ 0.277778.
How precise is the result?
This calculator carries the conversion at high internal precision (decimal.js, not floating-point Number math) and displays up to 8 significant digits, trimming trailing zeros — so 10,000 cm² displays as 10000, not 10000.0000, while 10 kg → lb keeps all 8 meaningful digits (22.046226) instead of rounding early and compounding error in a later step.
Common conversion factors
| Conversion | Factor |
|---|---|
| mile → km | × 1.609344 |
| inch → cm | × 2.54 |
| foot → m | × 0.3048 |
| kg → lb | × 2.20462262 |
| liter → US gallon | × 0.264172 |
| hour → second | × 3600 |
Common mistakes
- Multiplying instead of dividing when converting in the reverse direction.
- Forgetting to square or cube the factor for area or volume conversions.
- Mixing up US and UK (imperial) gallons or other unit variants, which use different factors for the same unit name.
- Applying a plain multiply-by-factor approach to temperature, which needs an additional add/subtract step since temperature scales don't share a zero point.
Related calculators
For temperature, the same multiply-by-factor approach does not work on its own — the temperature converter needs an extra add/subtract step because Celsius, Fahrenheit, and Kelvin don't share a zero point. This converter is also a direct application of the unit rate idea (a ratio of one quantity per unit of another) and of ratio scaling covered in percentage.
Frequently asked questions
- How does unit conversion work?
- Multiply the value by a conversion factor — a fraction equal to 1, like 1.609344 km per mile, chosen so the old unit cancels out and only the new unit remains. This is called dimensional analysis.
- How is converting length or mass different from converting temperature?
- Length, mass, volume, area, time, and speed all share the same zero point across their units, so converting is one multiplication. Temperature scales have different zero points, so converting temperature needs a multiply AND an add or subtract step.
- How do I convert in the reverse direction?
- Divide by the factor instead of multiplying (or, equivalently, multiply by its reciprocal). If 1 mile equals 1.609344 km, then 1 km equals 1 divided by 1.609344, or about 0.621 miles.
- Why do area and volume need a squared or cubed factor?
- Because both dimensions (or all three, for volume) scale together. If 1 meter is 100 centimeters, 1 square meter is 100 squared, or 10,000, square centimeters — not just 100.
- What is the most common mistake when converting area or volume?
- Using the plain linear factor instead of squaring it (for area) or cubing it (for volume). This under-converts the result by a large margin, since the true factor is much bigger than the linear one.
- Why do US and UK gallons give different results?
- US and UK (imperial) gallons are different physical volumes, so they use different conversion factors — a US gallon is smaller than a UK gallon. This calculator uses the US gallon; mixing the two systems silently gives a wrong answer.
- Can I convert between categories, like length to mass?
- No — conversion factors only make sense within the same physical quantity. Converting 5 kg to kilometers is meaningless, since mass and length measure different things; the calculator only offers units within the category you pick.