Unit Converter - Metric, Imperial, Cooking & Fuel

Conversion Details

Free unit converter for length, weight, volume, temperature, pressure, energy and data. Convert cups to ml, inches to cm, lbs to kg and mpg to L/100km.

Select category

Enter value

Choose units

View conversion

Formulas and sources

Each formula this calculator uses, where it comes from, and what it leaves out. "How it works" shows the same formula with your own numbers.

Conversion by a factor

Every category except temperature; in fuel economy, only between two distance-per-fuel units

Result = Value × (From ÷ To)
Result
the converted value
Value
the number you typed
From
the size of one From unit in the category’s base unit (meter, kilogram, liter…)
To
the size of one To unit in the same base unit

Each unit holds one factor to its category’s base unit, so a pair’s factor is the ratio of two. "How it works" prints that factor for your pair to 12 significant digits. The arithmetic runs at full double precision; the Decimals setting rounds only what is shown.

Source: Uses the method in NIST SP 811, Appendix B [1]: multiply by the factor, divide to go back, and build a derived unit’s factor from its parts.

Where the factors come from

Length, area, volume, weight, speed, flow, pressure, energy, power and force

Each factor is a definition from the sources below: the inch is 0.0254 m, the pound 0.45359237 kg and the US gallon 231 cubic inches. 72 of the units match a row of NIST SP 811’s table at its printed digits. Metric sizes use the SI prefixes. The mile, acre and furlong use the international foot of exactly 0.3048 m; the US survey foot was retired at the end of 2022.

Source: NIST SP 811, Appendix B.8 [2] and Chapter 5 [3]; NIST Handbook 44, Appendix C [4]; the SI prefixes as NIST lists them [5].

Energy units

Energy

The small calorie and the food Calorie are the thermochemical calorie, 4.184 J, and a thousand of it; the International Table calorie is 4.1868 J. The BTU is the International Table BTU, and the therm the US therm. The electron volt is 1.602176634 × 10⁻¹⁹ J, exact since 2019.

Source: NIST SP 811, Chapter 5 [3], Appendix B.8 [2] and its footnotes 9 and 24 [1]; the electron volt: [6].

Data and data rates

Data and data transfer rate

A byte is 8 bits. KB, MB, GB and the rest are powers of ten (1 MB is 1,000,000 bytes), as the SI prefixes always are. KiB, MiB, GiB, TiB and PiB are powers of two (1 MiB is 1,048,576 bytes), the binary names that BIPM points to IEC 80000-13 for.

Source: The byte as NIST’s glossary defines it [7]; the SI prefixes and the binary names: BIPM [8] and NIST [9].

Year and month

Time

Year (365.25 days) is the Julian year, 31,557,600 s, a hundredth of the Julian century NIST uses for the light-year; a calendar year of 365 days is 0.07% shorter. Decade, century and millennium are multiples of it. Month (avg., 30.4375 days) is a twelfth of that year.

Source: The Julian century: NIST SP 811, Appendix B, footnote 18 [1]. The average month is CalcTrail’s own; no publisher.

Cooking measures

Volume

The US cup is 8 US fluid ounces, about 236.6 ml, and the US tablespoon and teaspoon are exact fractions of it. The metric tablespoon (15 ml) and teaspoon (5 ml) are the sizes the FDA uses for nutrition labels, which also use a 240 ml cup. The metric cup (250 ml) and the stick of butter (half a US cup) follow a widely used convention.

Source: NIST Handbook 44 [4]; the FDA’s labeling rule [10]. The metric cup and the stick of butter: widely used; no primary source found.

Temperature scales

Temperature

°C = (°F − 32) ÷ 1.8 °F = °C × 1.8 + 32 K = °C + 273.15 °C = (°R − 491.67) ÷ 1.8

A reading is converted through degrees Celsius. A value below absolute zero is refused. A change converts by the size of a degree alone: 1 °C is 1 K; 1 °F or 1 °R is 5/9 K.

Source: Uses the formulas in NIST SP 811, Appendix B.8 [2]; changes follow its section 8.5 [11].

Gas Mark

Temperature

°F = 250 + 25 × Mark °F = 275 + 25 × log2(Mark)
Mark
the Gas Mark, above 0

The first line holds from Mark 1 up, the second below it (½ is 250 °F, ¼ is 225 °F). Marks below ¼ carry the same halving rule on, CalcTrail’s own extension. Mark 4 is 350 °F, about 176.7 °C; printed charts round the Celsius figure.

Source: Widely used; no primary source found. Searched for a Gas Council, British Standards or government definition of the marks.

Fuel economy

Fuel economy, between L/100 km and a distance per fuel

Result = K ÷ Value
Result
the converted value
Value
the number you typed
K
235.214583333 for US mpg, 282.480936332 for UK mpg, 100 for km/L

More miles per gallon is fewer liters per 100 km, so the relation is inverse. K is 100 × liters per gallon ÷ kilometers per mile (US gallon 3.785411784 L, UK gallon 4.54609 L, mile 1.609344 km). NIST rounds the US figure to 235.215. Between two distance-per-fuel units the factor rule above applies.

Source: Uses the relation in NIST SP 811, Appendix B.5 [1].

Display rounding

Auto shows up to four decimals from 1 to 999, two from 1,000, none from a million, about four significant figures below 1, and exponential form from 10^15 up and below 10^-9. The Decimals setting caps the places at 2, 4, 6 or 8. It rounds by decimals, not by the significant digits of the value you typed.

Source: CalcTrail’s own display rule; no publisher. NIST SP 811 rounds by significant digits instead (Appendix B.7.2) [1].

Sources

  1. National Institute of Standards and Technology. NIST Guide to the SI, Appendix B: Conversion Factors, B.2, B.3, B.5 and B.7.2, and footnotes 9, 18 and 24. Special Publication 811 (2008), web page updated August 18, 2025.
  2. National Institute of Standards and Technology. NIST Guide to the SI, Appendix B.8: Factors for Units Listed Alphabetically, the conversion factors, the temperature rows and the gon. Special Publication 811 (2008), web page updated August 18, 2025.
  3. National Institute of Standards and Technology. NIST Guide to the SI, Chapter 5: Units Outside the SI, §5.2 and §5.3: the degree, nautical mile, knot, bar, torr, atmosphere and calorie. Special Publication 811 (2008), web page updated December 8, 2025.
  4. National Institute of Standards and Technology. NIST Handbook 44, Appendix C: General Tables of Units of Measurement. 2026 edition.
  5. National Institute of Standards and Technology, Office of Weights and Measures. Metric (SI) Prefixes. Web page updated August 13, 2025.
  6. National Institute of Standards and Technology. The NIST Reference on Constants, Units, and Uncertainty: CODATA recommended values, electron volt. 2022 CODATA recommended values, read October 5, 2026.
  7. National Institute of Standards and Technology, Computer Security Resource Center. Glossary: byte. Web page, read October 5, 2026.
  8. Bureau International des Poids et Mesures (BIPM). The International System of Units (SI), section 3.2, p. 139: SI prefixes and binary multiples. 9th edition (2019), version 4.01, June 2026.
  9. National Institute of Standards and Technology. Prefixes for binary multiples. Web page, no date shown; read October 5, 2026.
  10. US Food and Drug Administration. Code of Federal Regulations, Title 21, §101.9: Nutrition labeling of food, §101.9(b)(5)(viii), household measures. eCFR, current as of October 1, 2026.
  11. National Institute of Standards and Technology. NIST Guide to the SI, Chapter 8: Comments on Some Quantities and Their Units, §8.5, Temperature interval and temperature difference. Special Publication 811 (2008), web page updated August 18, 2025.

What this calculator does not cover

  • It changes units, not what is measured. It does not turn a volume into a weight, which needs the density of the ingredient.
  • It has no currency, density, torque, acceleration or Mach units.
  • A value converted and converted back returns to the digits shown, not always to the last binary digit: 12 in to cm and back is 11.999999999999998 before rounding.

Sources checked on .

Help

Quick Start Guide

  1. Select category: Pick a category from the icon grid; point at an icon to see its name. On a phone, choose it from the Category list.
  2. Enter value: Type the number you want to convert.
  3. Choose units: Select the From and To units.
  4. View conversion: The result updates as you type, with your value in every unit of the category listed alongside it.
  5. Swap units: Press S or click the swap button to reverse the conversion.
  6. Or type the whole conversion: Type a line such as "12 in to cm" into Quick Parse and press Enter. To pick a unit from a list instead, type / or press Units.

Frequently Asked Questions

Yes. The Quick Parse box takes a whole conversion on one line and sets the category and both units for you. Write it the way you would say it, such as "12 in to cm", "5 km -> mi", "68 f to c" or "1 stick of butter to ml", with to, in, into, -> or = between the units. Unit names, symbols and spelled-out aliases work ("100 Mbps to MB", "20 °C to °F", "1,000 sq ft to m²"), and so do fractions ("1/2 cup to ml") and heights ("5 ft 11 in to cm"). If you are not sure how a unit is written, type / or press Units and pick it from a list. The box stays in step with the dropdowns, so changing either one updates the other.
Multiply inches by 2.54. For example, 12 inches = 30.48 cm. You can also select Length in this converter, enter your value in inches, and select cm as the output unit for instant results.
Multiply pounds by 0.45359237, the pound’s exact definition. For example, 150 lbs = 68.04 kg. Use the Weight category and select lbs to kg for an instant conversion.
Most factors are exact definitions published by NIST: a mile is exactly 1,609.344 meters and an inch exactly 0.0254 meters. A few units follow a widely used convention instead (the metric cup, the stick of butter and the Gas Mark scale), and the average month is CalcTrail’s own; the Formulas and sources panel says which. Every conversion runs at full double precision, so converting a value and converting it straight back returns it to within the last digit. What you see is rounded for readability: the Decimals control sets that to 2, 4, 6 or 8 places, or leave it on Auto to scale the decimals to the size of the result.
The converter supports categories for length, weight, temperature, area, volume, flow rate, speed, data, data transfer rate, pressure, energy, frequency, angle, time, power, force, and fuel economy. Pick a category, then use the Preset Pairs below the fields for one-click conversions. Fuel economy is the one category where the relationship is inverse rather than proportional: more miles per gallon means fewer liters per 100 km. So mpg (US and UK), L/100km and km/L convert correctly in both directions.
Gas Mark is a British oven scale. On the common reading, Gas Mark 1 is 275 °F and each mark above it adds 25 °F, so Gas Mark 4 is 350 °F, which is 176.7 °C. Printed charts round the Celsius figure, for example to 180 °C for Gas Mark 4. Below Gas Mark 1 the marks halve with each 25 °F step (1/2 is 250 °F, 1/4 is 225 °F), and the converter follows that scale. The scale is a convention; no official definition was found. Select Temperature and choose Gas Mark as the From unit.
No. A US cup is 8 US fluid ounces, about 237 ml (NIST Handbook 44), while a metric cup is 250 ml, so a metric cup is about 6 percent larger. Both are listed separately in the Volume category, along with US and metric tablespoons and teaspoons, so you convert against the standard your recipe was written in rather than assuming they match. A stick of butter is also there, defined as half a US cup.
Not directly, and no converter can do it honestly without knowing what is in the cup. A cup of flour and a cup of sugar weigh substantially different amounts because they have different densities, so volume and weight are not interchangeable without an ingredient. This converter keeps volume and weight as separate categories for that reason, rather than quietly picking a density for you.
A US gallon (3.785 liters) and a UK/Imperial gallon (4.546 liters) are different sizes: the UK gallon is about 20% larger. The same applies to pints and fluid ounces. Volume units are labeled (US) or (UK) so you convert against the correct standard.
Speeds are counted in bits and file sizes in bytes, and a byte is 8 bits, so a "100 Mbps" connection moves at most 12.5 MB a second. Here 1 MB is 1,000,000 bytes, as the SI prefixes mean and drive makers count. Some systems count 1,048,576 bytes to the megabyte, which shows the same speed as about 11.9 MB a second. The Data Transfer Rate category converts between all of these speeds, MiB/s included.
An ounce (oz) is a weight, 28.35 grams. A fluid ounce (fl oz) is a volume: 29.57 ml in the US and 28.41 ml in the UK. So 8 oz of flour and 8 fl oz of milk are different amounts, and ounces sit in the Weight category while fluid ounces sit in Volume. If you type "8 oz to ml" into Quick Parse, it tells you to use fl oz. Gold and silver are weighed in troy ounces, 31.10 grams, which are listed separately.
No. The Calorie on a food label is a kilocalorie, 4,184 joules, while the small calorie of chemistry is 1,000 times smaller, 4.184 joules. So a 200-Calorie snack is 836.8 kJ, and the Energy category lists the two apart. In Quick Parse, "kcal" or "Cal" is the food Calorie and "cal" the small one; a bare "calories" asks which you mean.
It depends on where the figure comes from. A US (short) ton is 2,000 lb, a UK (long) ton is 2,240 lb, and a metric ton, or tonne, is 1,000 kg, about 2,204.6 lb. The Weight category lists all three, and if you type just "ton" into Quick Parse it asks which one you mean rather than guessing.
Divide the total distance by the total fuel instead of averaging the mpg figures. Two 100-mile legs at 20 mpg and 40 mpg use 5 and 2.5 gallons, so the trip averaged 200 / 7.5 = 26.7 mpg, not 30. In L/100km a plain average does work for legs of equal distance: 11.76 and 5.88 average 8.82 L/100km, which converts to the same 26.7 mpg.
Converting the unit does not change which one it is. A tire gauge reading of 32 psi is 220.6 kPa on a metric gauge, and both leave out the pressure of the air around the tire. To turn a gauge reading into an absolute one, add the atmospheric pressure. The standard atmosphere is 101.325 kPa (14.696 psi); the actual figure varies with the weather and your height. That is a separate step from converting units.
They are two different horsepowers. Mechanical horsepower (hp), 550 foot-pounds a second, is 745.7 watts. Metric horsepower (PS) is 735.5 watts. So 100 PS is 98.6 hp. The Power category lists both, along with kilowatts.
For any practical purpose, yes. A torr is exactly 1/760 of a standard atmosphere, while a millimeter of mercury is defined from the density of mercury. The two differ by about 0.000014%, far less than any gauge or blood pressure cuff can show. The Pressure category lists both, so you can use the one your source names.
Yes. Enter a value and the Multi-Unit View sits directly beneath the main result, listing every unit in that category at once, with nothing to open and no extra click. Click any unit to make it the target. The Decimals control above the list sets how many decimal places every value on the page uses, the headline result included; leave it on Auto to scale the decimals to the size of the number.
Click the swap button between the From and To units, or press the 'S' key on your keyboard. This instantly reverses the conversion direction, useful when you want to see the reverse calculation.
Yes. Each category keeps the four unit pairs you used most recently and shows them as one-click chips in a Recent Conversions row beneath the unit selectors. They are saved in your browser on the device you used, so they stay private to that device rather than following you to another browser or phone.

Related Calculators

Last updated