How Modern Converts computes conversions

This page explains where the numbers on this site come from, so you can decide for yourself whether to trust them. Modern Converts is an independent project with no vendor or manufacturer behind it, and the unit table, the formulas and this check are maintained together; see About.

One anchor unit per quantity

Every measurement category has one anchor unit, normally the SI unit: the pascal for pressure, the cubic metre per second for volume flow rate, the volt-ampere for apparent power. Each unit in the category is defined by a single ratio to that anchor. A conversion from unit A to unit B is therefore A → anchor → B, and the factor shown on a page is the product of those two ratios. Categories that mix metric and imperial units carry one extra ratio between the metric anchor and the imperial anchor, for example 1 in = 0.0254 m, which is exact by definition.

The unit table is built on the open-source convert-units library and used as-is; the site adds the display names, formulas, tables and explanatory text.

Exact arithmetic, rounding only at the end

The ratios are chained with arbitrary-precision decimal arithmetic (the decimal.js library), not with binary floating point, so a factor such as 1 m³/h = 1/3600 m³/s is carried as an exact fraction until it is printed. Factors quoted in formulas, in the step-by-step guides and in page descriptions are rounded to 6 significant digits. The calculator shows more digits; the underlying value is the same.

Checked against NIST SP 811

The table below is not a static list: it is computed from the live unit table every time the site is built, and an automated test with the same rows must pass before any release. Right now 21 of 21 factors agree with the reference at 6 significant digits. Where a unit has more than one legitimate definition, the note says which one the site uses.

ConversionReferenceThis siteSource and definition
1 inm0.02540.0254NIST SP 811 B.8: exact; international inch
1 ftm0.30480.3048NIST SP 811 B.8: exact; international foot
1 mikm1.6093441.60934NIST SP 811 B.8: exact; international mile
1 lbkg0.453592370.453592NIST SP 811 B.8: exact; avoirdupois pound
1 ozg28.3495228.3495NIST SP 811 B.8: avoirdupois ounce
1 psiPa6894.7576894.76NIST SP 811 B.8: pound-force per square inch
1 mmHgPa133.3224133.322NIST SP 811 B.8: conventional millimeter of mercury
1 inHgPa3386.3893386.39NIST SP 811 B.8: conventional inch of mercury
1 barPa100000100000NIST SP 811 B.8: exact
1 hpW745.6999745.7NIST SP 811 B.8: mechanical horsepower, 550 ft·lbf/s
1 kWhJ36000003600000NIST SP 811 B.8: exact
1 calJ4.1844.184NIST SP 811 B.8: thermochemical calorie (the International Table calorie is 4.1868 J)
1 gall3.7854123.78541NIST SP 811 B.8: US liquid gallon, not the imperial gallon
1 lbfN4.4482224.44822NIST SP 811 B.8: pound-force
1 lbf-ftNm1.3558181.35582NIST SP 811 B.8: pound-force foot
1 knotm/s0.51444440.514444NIST SP 811 B.8: international knot
1 mphkm/h1.6093441.60934NIST SP 811 B.8: exact
1 acm24046.8564046.86NIST SP 811 B.8: international acre (the US survey acre is 4046.873 m²)
1 ham21000010000NIST SP 811 B.8: exact
1 kBbyte10001000IEC 80000-13: decimal kilobyte
1 KiBbyte10241024IEC 80000-13: binary kibibyte

Definitions worth knowing

  • Inch, foot, yard and mile are the international definitions (1 in = 25.4 mm exactly), not the US survey units.
  • The gallon is the US liquid gallon (3.785 L). The imperial gallon (4.546 L) is not offered.
  • The calorie is the thermochemical calorie, 4.184 J exactly. Food labels that say "calorie" mean the kilocalorie, 4.184 kJ.
  • The millimetre of mercury is the conventional mmHg, 133.322 Pa; the torr is 1/760 of a standard atmosphere, 133.322 Pa as well at this precision.
  • Horsepower is the mechanical horsepower, 745.7 W, not the metric horsepower (735.5 W).
  • Data units follow IEC 80000-13: kB, MB, GB are decimal (1 kB = 1000 bytes); KiB, MiB, GiB are binary (1 KiB = 1024 bytes).
  • Temperature scales are offsets, not ratios, so those pages show the formula instead of a factor: K = °C + 273.15, °F = °C × 9/5 + 32, °R = °F + 459.67, following the SI Brochure.

What this site is not

It is a reference for converting between units. It is not a calibrated instrument and not a source for legal metrology; if a contract, a regulation or a safety calculation depends on a conversion, check it against the primary source listed below.

Reporting an error

If a factor, a formula or a description is wrong, email [email protected] with the page URL. Corrections ship in the next deployment, and the sitemap date of the affected page is updated so search engines re-crawl it.

References

  1. NIST Special Publication 811 (2008), Guide for the Use of the International System of Units (SI), Appendix B: Conversion Factors
  2. BIPM, The International System of Units (SI Brochure), 9th edition (2019)
  3. NIST Handbook 44, Appendix C: General Tables of Units of Measurement
  4. IEC 80000-13, Quantities and units — Part 13: Information science and technology (binary prefixes)
  5. convert-units, the open-source unit table this site builds on