How unit conversion works: exact factors, rounding and the usual traps
Why most unit factors are exact, why temperature needs an offset, when to round, and which look-alike gallons, tons, megabytes and calories catch people out.
A unit conversion multiplies your number by a fixed factor. Temperature also adds an offset, because its scales start from different zero points. Most everyday factors are exact by definition, so the arithmetic is rarely the problem. Mistakes come from picking the wrong variant of a unit, treating a temperature change like a temperature, and rounding too early.
Every conversion passes through one base unit
StillKit stores one number for each unit: how many of its quantity's base unit it equals. Length uses the meter, mass the kilogram, volume the cubic meter and digital storage the byte. A foot is stored as 0.3048 m and an inch as 0.0254 m.
To convert, a converter multiplies your value by the first unit's factor, which gives the base unit, then divides by the second unit's factor. Three feet become 3 × 0.3048 = 0.9144 m, and 0.9144 ÷ 0.0254 = 36 in. Because every unit is tied to the same base, 11 length units need 11 stored factors instead of a separate ratio for each of the 55 possible pairs.
Each converter page works an example in both directions for the two units it opens on. The Length converter page says "To convert 5 meters to feet, multiply by 3.280839895: 5 × 3.280839895 ≈ 16.4042 ft" and "To convert 5 feet to meters, multiply by 0.3048: 5 × 0.3048 = 1.524 m". An equals sign means the answer shown is the whole result of the sum. The ≈ sign means the answer is rounded to 6 significant digits. Factors are printed to 10 significant digits; the converter itself calculates with the full stored value. Below the examples, a table lists what 1 of every unit equals in those two units.
The inch, the foot and the pound are exact by definition
Since 1959 the international yard has been exactly 0.9144 m and the pound exactly 0.45359237 kg. The inch, foot, mile and ounce are fixed fractions or multiples of those two, so their metric values are exact as well.
| Unit | Exact value |
|---|---|
| Inch (1/36 yard) | 2.54 cm |
| Foot (1/3 yard) | 0.3048 m |
| Mile (1,760 yards) | 1,609.344 m |
| Nautical mile | 1,852 m |
| Pound | 0.45359237 kg |
| Avoirdupois ounce (1/16 pound) | 28.349523125 g |
| US liquid gallon (231 cubic inches) | 3.785411784 L |
| Imperial gallon | 4.54609 L |
| Thermochemical calorie | 4.184 J |
| Standard atmosphere | 101,325 Pa |
The reverse factors are another matter. One meter is 1 ÷ 0.3048 = 3.280839895… ft, a decimal with no last digit, so no stored number holds it exactly. The Mass converter shows the same pattern: its example turns pounds into kilograms with the exact 0.45359237, but kilograms into pounds with 2.204622622, a factor cut off after 10 digits. A degree is π/180 radians, which cannot be written exactly either. Such values are stored to the limit of the browser's number format, far finer than any ruler or scale can measure.
Some older US land records use the US survey foot, defined as 1200/3937 m. It is about 2 parts per million longer than the international foot that StillKit uses, roughly 3 mm over a mile.
Temperature needs an offset; a temperature change does not
Celsius and Fahrenheit differ in two ways. One Celsius degree spans 1.8 Fahrenheit degrees, and the zero points differ: water freezes at 0 °C and at 32 °F. So a converter multiplies, then shifts: °F = °C × 1.8 + 32. StillKit does both steps through kelvin, where 0 °C is 273.15 K and 0 °F is about 255.372 K.
A change in temperature has no zero point to shift, so only the factor applies. If tomorrow will be 10 °C warmer, it will be 18 °F warmer. Converting that 10 as a temperature gives 50 °F, which is wrong by 32 degrees. StillKit keeps a separate converter for differences, with units written Δ°C, Δ°F, ΔK and Δ°R. Use the Temperature difference converter for tolerances, thermostat swings and "how much warmer" questions, and the Temperature converter for readings on a thermometer.
Temperatures also do not divide like lengths. A day at 20 °C is not twice as warm as one at 10 °C: in kelvin the two readings are 293.15 K and 283.15 K, about 3.5% apart. Ratios make physical sense only on the absolute scales, kelvin and Rankine, which start at absolute zero. The Temperature converter refuses anything colder than that point, 0 K or −273.15 °C, with the message "Temperature is below absolute zero."
Round once, at the end, to the precision you measured
Browsers calculate with binary floating-point numbers. They keep about 15 to 17 significant digits and cannot store most decimal fractions exactly. Dividing 0.3048 by 0.0254 in a browser gives 12.000000000000002, not 12. The Significant digits (3–15) setting, 12 by default, rounds that noise away and still shows more precision than almost any measurement has.
Significant digits count from the first nonzero digit, so 0.0012345 rounded to 3 significant digits is 0.00123. Choose the number your measurement deserves. A shelf about 6 ft long is about 1.8 m, not 1.8288 m, because the extra digits claim a precision nobody measured.
Rounding before you convert causes a larger error. Someone 5 ft 10 in tall who types 5.83 into the Length converter, with From set to feet (ft) and To set to centimeters (cm), gets 177.6984 cm. Entering 70 with From set to inches (in) gives exactly 177.8 cm. In a chain of conversions, start each one from the original figure, not from a rounded result.
Two input rules prevent silent mistakes. Values must use a decimal point and no thousands separators, so "1,000" and "2,5" are rejected with a message instead of being guessed at. Scientific notation such as 1.5e3 is accepted. To convert a list of measurements:
- Open the converter for your quantity, such as the Length converter.
- Paste your numbers into Values, one per line (up to 200).
- Choose the unit you have under From and the unit you need under To, for example meters (m) and feet (ft). Any two units in the lists can be paired.
- Set Significant digits (3–15) to suit your measurements, then select Convert.
Look-alike units that catch people out
Gallons, pints and fluid ounces
A US liquid gallon is 3.785411784 L and an imperial gallon is 4.54609 L, about 20% more. The fluid ounces go the other way: a US fluid ounce (29.5735295625 mL) is larger than an imperial one (28.4130625 mL). A US pint holds 16 US fluid ounces, 473.176473 mL, while an imperial pint holds 20 imperial fluid ounces, 568.26125 mL. Fuel economy inherits the difference, so 40 miles per imperial gallon is about 33.3 miles per US gallon.
The Volume converter uses US liquid measures and names imperial units separately. US dry measures are a third system and are not included. The same converter lists kitchen cups and spoons, which differ too: a US customary cup is 236.5882365 mL, a metric cup 250 mL and an imperial cup 284.130625 mL. US nutrition labels use a 240 mL cup, which is not in the list. An Australian tablespoon is 20 mL, against 15 mL for a metric one.
Short, long and metric tons
A US short ton is 2,000 lb, or 907.18474 kg. A long ton, the old imperial ton, is 2,240 lb, or 1,016.0469088 kg. A metric tonne is 1,000 kg. The long ton is 12% heavier than the short one, so a quote in "tons" needs its system named.
Decimal and binary megabytes
In SI units a megabyte (MB) is 1,000,000 bytes. The binary unit, the mebibyte (MiB), is 1,048,576 bytes, which is 2 to the power 20. Drive makers count in powers of 1,000, while some operating systems count in powers of 1,024 and still print "GB". A drive sold as 500 GB holds 500,000,000,000 bytes, which is about 465.66 GiB. The smaller figure on your screen is the same capacity in a different unit, as the Data size converter shows when you convert 500 from gigabytes (GB) to gibibytes (GiB).
Network speeds are rated in bits per second, written with a lowercase b. Since a byte is 8 bits, a 100 Mb/s connection moves at most 12.5 MB/s, and less once protocol overhead is counted.
Calories and kilocalories
The Calorie on a food label, often written with a capital C, is a kilocalorie: 1,000 small calories. Two definitions of the small calorie are in use. The thermochemical calorie is exactly 4.184 J, and the International Table calorie is exactly 4.1868 J, about 0.07% larger. StillKit's converters use the thermochemical value, so 1 kcal converts to 4.184 kJ. On a 500 kcal meal the two definitions differ by about 0.3 kcal.
Ounces and pounds that are not what they seem
An ounce can be an avoirdupois ounce of mass (28.349523125 g), a troy ounce for precious metals (31.1034768 g) or a fluid ounce of volume. A pound of mass also differs from a pound-force. The Mass converter lists avoirdupois ounces and troy ounces as separate units, fluid ounces are in the Volume converter and pounds force are in the Force converter, so match the unit names on your label.
What a converter cannot decide for you
- It cannot turn a volume into a mass. Cups of flour to grams needs the flour's density, and sugar needs a different one.
- It does not turn gauge pressure into absolute pressure. A tire gauge reads above the surrounding air, so 32 psi becomes about 220.6 kPa, still a gauge reading.
- It cannot tell which regional unit a document meant. If a contract says "gallons" or "tons" without a system, ask the person who wrote it.