How Our Unit Conversion Calculators Work
Conversion methodology · Last reviewed November 2026
Accuracy is the reason this site exists, so this page explains exactly how every result is produced, where the numbers come from, and where the tools have limits.
1. The mathematical formulas we use
Each category (length, mass, volume and so on) has one base unit, usually the SI unit — the meter, kilogram, liter or second. Every other unit stores a single factor that says how many base units it equals. A conversion is always two steps:
- To the base unit: base value = input × factor of the “from” unit
- To the target unit: result = base value ÷ factor of the “to” unit
Example: 12 inches to centimeters → 12 × 0.0254 = 0.3048 m → 0.3048 ÷ 0.01 = 30.48 cm. Because every pair passes through the same base, converting there and back always returns your original value.
Some quantities are not simple multiples and use dedicated formulas instead of a factor:
- Temperature needs an offset as well as a scale: °F = °C × 9 ÷ 5 + 32, and K = °C + 273.15.
- Fuel economy in liters per 100 km is the reciprocal of distance per volume: L/100 km = 235.214583 ÷ US mpg (approximately).
- Area and volume use the length factor squared or cubed — 1 ft² = 0.3048² = 0.09290304 m².
2. Where our conversion factors come from
Factors are taken from the published definitions of the units, primarily:
- BIPM — The International System of Units (SI Brochure), which defines the seven SI base units and accepted non-SI units.
- NIST Special Publication 811 — Guide for the Use of the International System of Units, including its appendix of conversion factors.
- NIST Metric and SI information and NIST SP 330 (the US edition of the SI).
US customary units follow the 1959 international yard and pound agreement, under which these values are exact by definition:
| Unit | Exact value |
|---|---|
| 1 inch | 2.54 cm |
| 1 foot | 0.3048 m |
| 1 mile | 1,609.344 m |
| 1 pound (avoirdupois) | 0.45359237 kg |
| 1 ounce (avoirdupois) | 28.349523125 g |
| 1 US gallon | 3.785411784 L |
| 1 imperial gallon | 4.54609 L |
| 1 nautical mile | 1,852 m |
3. Exact versus approximate conversions
An exact conversion is one where the relationship is a definition, such as 1 inch = 2.54 cm. Any rounding you see comes only from displaying the answer.
An approximate conversion depends on a measured or conventional value — for example the length of a year (we use the Julian year of 365.25 days), an average month, or rules of thumb like “1 kg ≈ 2.2 lb”. Our guides label shortcuts as estimates and always show the exact factor alongside them.
4. How decimal rounding works
Calculations use standard double-precision floating-point arithmetic (about 15–16 significant digits). Only the displayed number is rounded:
- Main converter: results are shown to up to 10 significant digits, with trailing zeros removed.
- Very large or small values: numbers of 1 trillion or more, or smaller than 0.0001, switch to scientific notation (e.g. 1.5e−7).
- Guide tables and examples: rounded to 4 decimal places, or 6 for values below 1, for readability.
Round only your final answer. Rounding intermediate steps and then multiplying again compounds the error.
5. How we test our calculators
- Every category is checked by entering values and confirming a valid result appears for each one.
- Results are compared against reference values that can be verified by hand, such as 0 °C = 32 °F, −40 °C = −40 °F, 1 mile = 1.609344 km and 1 lb = 453.59237 g.
- Round-trip checks: converting A → B and back must return the original value.
- Guide pages compute their tables and worked examples from the same formula shown on the page, so the text and numbers cannot drift apart.
- These checks are repeated whenever the conversion data or pages change.
6. How to report an incorrect calculation
If a result looks wrong, please tell us through the contact page or email hbatchi2002@gmail.com. Include the page address, the value you entered, both units, the result you expected and its source. Confirmed errors are corrected and the affected pages re-checked.
7. Limitations
- Results are for general and educational use. Verify independently for medical dosing, structural, aviation, legal-metrology or other safety-critical work.
- Volume and mass cannot be converted into each other without the material's density (a cup of flour and a cup of water weigh different amounts).
- Some unit names mean different things in different places — US vs imperial gallons, pints and fluid ounces; food vs troy ounces; statute vs nautical miles. Check which one your source uses.
- Digital storage labels use binary multiples (1 KB = 1,024 bytes), while data transfer rates use decimal multiples (1 kbps = 1,000 bits/s).
- Months and years use fixed averages, not calendar dates, so they are unsuitable for date arithmetic.
- Floating-point arithmetic can produce tiny differences in the last displayed digit for some inputs.