Unit Conversion Explained

A unit converter is one multiplication. The infrastructure around it — exact factors, a base-unit bridge, category isolation, a kelvin pivot for temperature — is where every converter earns trust or quietly produces garbage. Here is how the maths works and where the traps are.

#conversion#units#metric#imperial#us-customary#si#nist

Why a unit converter is mostly a maintenance problem

Converting between units is a single multiplication, but the infrastructure around that multiplication is where every general-purpose converter either earns trust or quietly produces garbage. There is no physical theorem that says one US gallon is 3.785 411 784 litres — that is a statutory definition. There is no theorem that says one British Thermal Unit is 1055.055 852 62 joules either; the International Table BTU is one of at least five "BTUs" that have appeared in standards over the last hundred years. The unit converter on Calc Dragon handles length, mass, volume, temperature, area, speed, time, and energy, and the design choices behind it — exact factors, a base-unit bridge, category isolation, kelvin pivot for temperature — exist for reasons that are easier to explain than to discover the hard way.

This article walks through how a general-purpose converter is built, where the conversion factors actually come from, the traps that catch people who think "I'll just google the number," and the mental anchors that let you sanity-check a result before relying on it.

The base-unit bridge: one factor per unit, not one per pair

A naïve converter could store one factor for every pair of units. For the 50-odd units in the conversion calculator that would be more than a thousand factors, most of which would be redundant and any of which could be wrong. The standard pattern is to pick one base unit per category and store each unit's factor relative to the base. Conversion then becomes two multiplications, no matter how many units you support:

result = value × (base per source unit) ÷ (base per target unit)

Calc Dragon's converter uses the SI base or coherent SI unit for each category: metre for length, kilogram for mass, litre for volume (technically derived, but every imperial and US volume sits naturally relative to it), square metre for area, metres per second for speed, second for time, and joule for energy. Temperature is the exception — more on that below.

The win is not just storage. A bug in one factor affects every conversion that touches that unit, instead of every conversion that names that unit on either side. When the same factor is used hundreds of times, you can verify it once and trust it everywhere.

Where the exact factors come from

The conversion factors in the unit converter are not approximations. Most of them are exact by definition, traceable to three documents:

  • The SI Brochure (BIPM) defines the metre, kilogram, second, kelvin, ampere, mole, and candela in terms of fixed fundamental constants since the 2019 redefinition. Every metric unit on the converter is exact by definition: 1 km = 1000 m, 1 g = 0.001 kg, 1 mL = 0.001 L.
  • The 1959 International Yard and Pound Agreement is the international treaty that fixed the yard at exactly 0.9144 m and the avoirdupois pound at exactly 0.453 592 37 kg. From those two numbers, every imperial and US customary length and mass derives exactly: 1 inch = 25.4 mm exactly, 1 foot = 0.3048 m exactly, 1 mile = 1609.344 m exactly, 1 ounce = 28.349 523 125 g exactly, 1 stone = 6.350 293 18 kg exactly.
  • NIST Special Publication 811 ("Guide for the Use of the International System of Units") is the US National Institute of Standards and Technology's reference table for non-SI units accepted for use with SI. It lists the US gallon as 3.785 411 784 L exactly (from 231 cubic inches exactly), the thermochemical calorie as 4.184 J exactly, and the International Table BTU as 1055.056 J. Calc Dragon's converter matches SP 811 for every overlapping unit and uses the full-precision value where SP 811 truncates for display.

The imperial gallon is the one big departure from US definitions. It was redefined in 1985 by the UK Weights and Measures Act as exactly 4.546 09 litres, replacing the older "ten pounds of distilled water" definition. The 1985 number is the one in the converter and the one every UK regulator uses today.

Worked examples: five conversions, one formula

Every example below uses the same formula — value × source factor ÷ target factor — applied through the category's base unit. Run any of them through the unit converter to see the same arithmetic at machine precision.

1. 100 miles to kilometres. The mile is exact at 1609.344 m, the kilometre at 1000 m. So 100 × 1609.344 ÷ 1000 = 160.9344 km. This is the canonical worked example used in every physics textbook, and the number you see on US-to-Canada road sign comparisons.

2. 1 US gallon to litres. The US gallon is exact at 3.785 411 784 L, the litre is the base unit. So 1 × 3.785 411 784 ÷ 1 = 3.785 411 784 L. Compare 1 imperial gallon to litres: 1 × 4.546 09 ÷ 1 = 4.546 09 L. The imperial gallon is about 20% larger; this matters whenever a fuel-economy figure crosses the Atlantic.

3. 100 °C to Fahrenheit. Temperature uses the kelvin pivot described below. K = 100 + 273.15 = 373.15. °F = (373.15 − 273.15) × 9/5 + 32 = 100 × 1.8 + 32 = 212 °F. The boiling point of water at standard atmospheric pressure — and one of the original anchor points of the Fahrenheit scale.

4. 1 acre to hectares. The acre is exact at 4046.856 422 4 m², the hectare at 10 000 m². So 1 × 4046.856 422 4 ÷ 10 000 = 0.404 685 642 24 hectare. Round that to 0.4047 and you have the rule of thumb every land surveyor uses. If you do a lot of area work, the dedicated area converter shows more area-specific units side by side.

5. 1 kWh to joules. A kilowatt-hour is one kilowatt sustained for one hour: 1000 W × 3600 s = 3 600 000 J = 3.6 MJ exactly. That is the unit your electricity meter records, and the reason kWh-to-J conversions come up whenever you compare an electricity bill to a physics-style calculation.

The traps that catch people

Two different gallons (and two different pints, and two different fluid ounces)

The single most common conversion error in the English-speaking world is treating "gallon" as if it had one value. A US gallon is 3.785 L; an imperial gallon is 4.546 L. The same split runs through every related volume unit, but in opposite directions. A US fluid ounce is 29.57 mL; an imperial fluid ounce is 28.41 mL — the imperial fl oz is smaller, because the imperial gallon is divided into 160 fl oz while the US gallon is divided into only 128. So a "16 oz pint" means different things on the two sides of the Atlantic, and a "20% bigger gallon" hides inside a "4% smaller fluid ounce." The volume converter labels every entry with (US) or (UK) for exactly this reason. If you are reading an American recipe in the UK or a British one in the US, do the conversion — don't trust the apparent unit equality.

The small calorie and the food Calorie

In physics and chemistry, the calorie is the energy needed to raise 1 g of water by 1 °C — 4.184 J under the thermochemical definition. In nutrition, a "calorie" on a food label is one thousand of those: a kilocalorie, 4184 J. A 200-calorie chocolate bar contains 200 kcal = 836.8 kJ of metabolisable energy, not 200 cal. The convention of capitalising "Calorie" (with a big C) to mean kilocalorie exists in old American nutrition writing but is rarely respected today, so the ambiguity has to be resolved from context. The converter exposes both units separately so there is no possible confusion: pick "kcal" for food, "cal" for chemistry.

Temperature isn't a simple multiplication

Length, mass, volume, and most other units have zero at the same place: zero metres and zero feet are the same length (zero), so converting one to the other is a single multiplication. Celsius and Fahrenheit don't share a zero — 0 °C is the freezing point of water, 0 °F is much colder. Converting between them requires both a multiplication and an addition. The converter handles this by going through kelvin, which starts at absolute zero and is therefore a true ratio scale: K = °C + 273.15, K = (°F − 32) × 5/9 + 273.15. Once every temperature is in kelvin, the same base-unit bridge works as it does for everything else, and there is no chance of fluffing the addition. The dedicated temperature converter adds Rankine and exposes the formulas more directly if you want to see the kelvin pivot in action.

The metric tonne, the short ton, and the long ton

"Ton" without qualification is dangerous. A metric tonne is 1000 kg exactly (2204.62 lb). A US short ton is 2000 lb = 907.184 74 kg exactly. A UK long ton (still found on some older legal documents and in nautical contexts) is 2240 lb = 1016.046 908 8 kg exactly. The difference between a metric tonne and a short ton is about 10%, big enough to matter in any commercial shipping context. The converter carries the metric tonne ("t"); short and long tons are deliberately excluded to force a deliberate choice. If you mean short ton, multiply the metric-tonne result by 1.10231; if you mean long ton, multiply by 0.98421.

BTU is not one number

The British Thermal Unit has at least five values in active use: thermochemical (1054.35 J), 39 °F (1059.67 J), 59 °F (1054.80 J), mean (1055.87 J), and International Table (1055.056 J). They differ by less than 0.2% individually but the discrepancies compound in energy-intensive industries — a megawatt-scale boiler rated in BTU/h will quote a meaningfully different efficiency depending on which BTU the supplier picked. The converter uses the International Table BTU (the one in ISO 31-4) because it is the most common value in HVAC catalogues and natural gas pricing. If you need the thermochemical or 59 °F BTU, do the comparison in joules first.

Squared and cubed units don't square or cube the prefix

The classic schoolboy error: "1 m = 100 cm, so 1 m² = 100 cm²." It is actually 10 000 cm². Area scales as the square of length, so the conversion factor squares too. 1 m³ = 1 000 000 cm³, not 100. The general-purpose conversion calculator uses pre-squared factors so this is invisible at the user level, but it catches people who try to convert by hand without remembering to square. The area converter walks through the squared-unit trap in more detail, including the surprising 100× gap between a hectare and a square kilometre.

Mental anchors for sanity-checking a result

A good check is to know one number per category by heart. If a conversion result clashes with the anchor, you have probably mistyped a unit or swapped the from/to. A short anchor table:

  • Length: 1 metre ≈ 3.28 feet, 1 mile ≈ 1.6 km, 1 inch = 2.54 cm exactly. So a 6-foot person is about 1.83 m, and a 5K race is about 3.1 miles. If a converter tells you a 6-foot person is 18 m tall, something is wrong.
  • Mass: 1 kg ≈ 2.205 pounds, 1 ounce ≈ 28.35 g, 1 stone = 14 lb = 6.35 kg. A 70 kg adult is about 154 lb, or 11 stone.
  • Volume: 1 US gallon ≈ 3.79 L, 1 imperial gallon ≈ 4.55 L, 1 L ≈ 33.8 US fl oz. A 20-gallon US fuel tank holds about 76 litres.
  • Temperature: Doubling Celsius and adding 30 gets you Fahrenheit to within 2°. So 20 °C ≈ 70 °F (actual: 68); 30 °C ≈ 90 °F (actual: 86). Useful when reading a foreign weather forecast.
  • Area: 1 hectare ≈ 2.47 acres, 1 acre ≈ 4047 m², 1 ft² ≈ 0.093 m². A 2000 sq ft house is about 186 m².
  • Speed: 60 mph ≈ 97 km/h, 100 km/h ≈ 62 mph, 1 m/s ≈ 2.24 mph. A 5-minute mile is 12 mph or 19.3 km/h.
  • Energy: 1 kWh = 3.6 MJ, 1 food calorie = 4.184 kJ, so a 2000 kcal daily intake is about 2.3 kWh — the same energy as running a microwave for two hours.

When a unit converter is the wrong tool

A general converter handles linear, dimensionally-clean conversions between named units. It is not the right tool for:

  • Currency. Exchange rates move; conversion factors don't. Use a live FX feed, never a hard-coded number.
  • Dimensional rearrangement. Converting miles per gallon to litres per 100 km is not a unit swap — it is also a reciprocal. 30 mpg is not 30 (some factor) L/100 km; it is 1 / (30 × factor). A dedicated fuel-economy converter does the reciprocal automatically.
  • Body measurements with non-linear scaling. Cooking conversions, pressure unit conversions involving gauge vs absolute, and humidity conversions all hide non-linearities or reference points the converter doesn't know about. Use the topic-specific tool, not a generic converter.
  • Date and time arithmetic. The converter handles time durations (seconds, minutes, hours, days, weeks) but not calendar dates — months and years vary in length, so "convert 1 month to seconds" has no single answer.
  • High-precision survey or scientific work. If you need to convert between US survey feet and international feet, or between the various definitions of the inch used before 1959, a general converter is too coarse. Reach for a domain tool that tracks the specific standard.

Why every converter on this site shares the same factors

Calc Dragon ships several focused converters — distance, weight, volume, temperature, area, speed, and time — alongside the all-in-one unit converter. They share the same factor library, so the answer you get from the dedicated weight converter for 1 lb to kg is bit-for-bit the same as the answer from the general converter: 0.453 592 37 kg exactly. The focused tools exist for usability, not because the maths differs. If you find a discrepancy between two of our converters, that is a bug — please flag it.

Caveats and the rounding floor

All conversion arithmetic runs in IEEE 754 double precision, which gives about 15–17 significant figures. The display rounds to six decimal places to keep the output readable, but the underlying number is full precision. For length, mass, area, and the metric volumes every factor is exact and so is the result; for the imperial gallon, BTU, and a handful of others the factor itself carries a real-world rounding (the imperial gallon was rounded to 4.546 09 L in 1985), and the result inherits that. For 99% of practical work this is irrelevant. The cases where it matters — survey-grade GIS, metrology labs, pharmaceutical dosing at microgram scale — need a domain tool anyway.

For everything else, the unit converter covers the ground. The maths is the easy bit; picking the right unit on each side is the part to slow down on.

Frequently asked questions

How does a general unit converter handle so many units without a huge factor table?

It uses a base-unit bridge. Each category (length, mass, volume, etc.) picks one base — metre, kilogram, litre, square metre, m/s, second, joule — and stores one factor per unit relative to the base. Every conversion is then two multiplications: result = value × source factor ÷ target factor. Fifty units in a category needs fifty factors, not 1225 pairs, and any factor can be verified once and trusted everywhere.

Where do the exact conversion factors come from?

Three documents cover almost everything. The BIPM SI Brochure defines the metric base units in terms of fixed fundamental constants. The 1959 International Yard and Pound Agreement fixed the yard at exactly 0.9144 m and the avoirdupois pound at exactly 0.453 592 37 kg, from which every imperial and US customary length and mass derives exactly. NIST Special Publication 811 is the US reference table for non-SI units accepted for use with SI and lists every unit Calc Dragon's converter uses, including the 3.785 411 784 L US gallon and the 4.184 J thermochemical calorie.

Why is a US gallon different from an imperial gallon?

They are two independently-defined units that happen to share a name. A US gallon is 3.785 411 784 L exactly (231 cubic inches). An imperial gallon is 4.546 09 L exactly (set by the 1985 UK Weights and Measures Act). The imperial gallon is about 20% larger. The same split runs through pints and fluid ounces, but in opposite directions: a US fluid ounce is larger than an imperial one because the US gallon is divided into 128 fl oz while the imperial gallon is divided into 160. Always check which gallon a source means.

Why does temperature go through kelvin?

Celsius and Fahrenheit are offset scales — 0 °C is not the absence of temperature, and 0 °F is much colder still. Converting between them needs both a multiplication and an addition, which is awkward to fit into the same code path as the other categories. Kelvin starts at absolute zero, so every other temperature unit is a simple linear transform of it. Going through kelvin makes the maths uniform and removes a class of off-by-one errors.

Is the calorie in the converter the same as the food calorie?

No. "cal" is the small thermochemical calorie used in chemistry and physics, equal to 4.184 J. The food calorie (often capitalised as "Calorie" or labelled "kcal") is one thousand of those — 4184 J. A 200-calorie chocolate bar on a nutrition label contains 200 kcal, not 200 cal. The converter exposes both units separately to remove the ambiguity: pick "kcal" for nutrition, "cal" for chemistry.

Why isn't "ton" in the converter?

Because "ton" without qualification is ambiguous and dangerous. A metric tonne is 1000 kg exactly. A US short ton is 2000 lb = 907.18 kg. A UK long ton is 2240 lb = 1016.05 kg. The three values differ by up to 10%, big enough to matter in any commercial shipping context. The converter carries only the metric tonne ("t") and forces a deliberate choice for the other definitions.

How do squared and cubed units work in the converter?

The pre-squared and pre-cubed factors are stored directly. 1 m² = 10 000 cm², not 100 — area scales as the square of length, so the conversion factor squares too. 1 m³ = 1 000 000 cm³, not 100. Doing this by hand without remembering to square (or cube) is the single most common source of off-by-100× and off-by-10 000× errors. The converter handles it transparently, but it is worth understanding the rule so the answer doesn't look surprising.

Why are speed and energy in the same converter as length and mass?

They are all linear, dimensionally clean conversions between named units, which makes them mechanically identical at the implementation level. m/s, mph, knots, and km/h all live in one category with a single base unit; J, kJ, kcal, kWh, and BTU all live in another. Keeping them in one tool means one mental model and one place to find the answer. Some categories (currency, fuel economy, calendar dates) genuinely don't fit and get separate tools instead.

Informational only. Not personalised financial, legal, or tax advice.