Unit Converter

Enter a value in length, weight, volume or temperature. The result appears in your chosen unit and in every other unit of the same kind, along with the ratio used.

-
-

What the converter supports

The converter handles 4 categories and 28 units in total. Length, weight and volume each convert between every pair of units in the same category. Temperature converts between the three scales listed below. The counts in this table are taken straight from the data the tool runs on, so they cannot drift out of date.

CategoryBase unitUnitsSymbols
Lengthm9mm, cm, m, km, in, ft, yd, mi, nmi
Weightkg6mg, g, kg, t, oz, lb
VolumeL10mL, L, tsp, tbsp, floz, cup, pt, qt, gal, ukgal
Temperature°C3°C, °F, K
Total28

How the calculation works

For length, weight and volume, every value is routed through one base unit (meters, kilograms or liters). The formula is: input x (base-unit value of the input unit) / (base-unit value of the target unit). Converting 5 feet to meters is 5 x 0.3048 / 1 = 1.524 m. Using a base unit means each unit needs only one stored factor, rather than a separate factor for every pair, which removes a whole class of typing mistakes. The line under the result, such as "1 ft = 0.3048 m", shows the ratio used. All units in the same category are also shown at once so you can pick whichever reads most naturally.

The factors are exact definitions, not rounded approximations. The international inch is exactly 25.4 mm, and the international pound is exactly 0.45359237 kg (fixed by the 1959 international yard and pound agreement). From those: 1 foot = 12 inches = 0.3048 m, 1 yard = 3 feet = 0.9144 m, 1 mile = 5,280 feet = 1,609.344 m, and 1 avoirdupois ounce = 1/16 pound = 28.349523125 g. The US liquid gallon is defined as 231 cubic inches, which is exactly 3.785411784 liters. The nautical mile is exactly 1,852 m. Results are displayed to 10 significant digits, which hides floating-point noise such as 0.30000000000000004.

Reference table: every unit and its definition

This table lists each unit's size in its category's base unit, generated from the same data the converter uses.

SymbolUnitEquals (in base unit)
mmmillimeter (mm)0.001 m
cmcentimeter (cm)0.01 m
mmeter (m)1 m
kmkilometer (km)1,000 m
ininch (in)0.0254 m
ftfoot (ft)0.3048 m
ydyard (yd)0.9144 m
mimile (mi)1,609.344 m
nminautical mile (nmi)1,852 m
mgmilligram (mg)0.000001 kg
ggram (g)0.001 kg
kgkilogram (kg)1 kg
ttonne (t)1,000 kg
ozounce (oz)0.0283495231 kg
lbpound (lb)0.45359237 kg
mLmilliliter (mL)0.001 L
Lliter (L)1 L
tspteaspoon (US tsp)0.0049289216 L
tbsptablespoon (US tbsp)0.0147867648 L
flozfluid ounce (US fl oz)0.0295735296 L
cupcup (US cup)0.2365882365 L
ptpint (US pt)0.473176473 L
qtquart (US qt)0.946352946 L
galgallon (US gal)3.785411784 L
ukgalgallon (UK gal)4.54609 L

Length conversion table

1 ofequalsof
in2.54cm
ft30.48cm
yd0.9144m
mi1.609344km
nmi1.852km
km0.6213711922mi
m3.280839895ft
cm0.3937007874in

Inches and feet turn up in screen sizes, tire sizes and body height in the United States and a few other countries. Miles appear on road signs in the US and the UK, and nautical miles (1,852 m) measure distance at sea and in the air. A monitor is sold by its diagonal: a 27-inch monitor has a diagonal of 27 x 2.54 = 68.58 cm. Its width and height depend on the aspect ratio and have to be worked out separately.

Weight conversion table

1 ofequalsof
oz28.34952313g
lb0.45359237kg
lb453.59237g
kg2.204622622lb
kg35.27396195oz
t2,204.622622lb

The ounce here is the ordinary avoirdupois ounce, a unit of weight. The troy ounce used for precious metals (about 31.1035 g) is a different unit and is not in this tool. The "fluid ounce" in the volume list is a unit of volume, not weight. The shared word "ounce" makes this the most common mix-up in cooking conversions. Here, t is the metric tonne of 1,000 kg.

Volume conversion table

1 ofequalsof
tsp4.928921594mL
tbsp14.78676478mL
floz29.57352956mL
cup236.5882365mL
pt473.176473mL
qt0.946352946L
gal3.785411784L
ukgal4.54609L

Same name, different size. The US gallon is 3.785 L and the imperial (UK) gallon is 4.546 L, about 20% larger. A car rated at 40 miles per imperial gallon gets 40 x 3.785411784 / 4.54609 = about 33.3 miles per US gallon, so fuel-economy figures from the two systems cannot be compared directly. The cup is also not universal. The cup in this tool is the US customary cup, 236.588 mL. The cup printed on US nutrition labels is rounded to 240 mL, and recipes from Australia, New Zealand and Canada often assume a 250 mL cup. For baking, where proportions matter, look for gram weights rather than cup measures.

Temperature: why multiplication alone is not enough

Length, weight and volume have a true zero that means "none", so a single multiplication converts them. Celsius and Fahrenheit place zero at different points, so converting needs an offset as well as a scale factor:

A one-degree Celsius step equals a 1.8-degree Fahrenheit step, since water's freezing and boiling points are 100 degrees apart on one scale and 180 on the other. So a temperature difference of 10 degrees C is 18 degrees F, but a temperature reading of 20 degrees C is 68 degrees F, not 36. Forgetting the 32 is the most common temperature error. Kelvin has the same step size as Celsius but starts at absolute zero, so the tool warns you if you enter something colder than that.

Reference pointCelsius (°C)Fahrenheit (°F)Kelvin (K)
Absolute zero-273.15-459.670
Both scales agree-40-40233.15
Water freezes (1 atm)032273.15
Typical body temperature36.597.7309.65
Comfortable room2271.6295.15
Water boils (1 atm)100212373.15
Moderate oven180356453.15
Hot oven220428493.15

Worked examples

  1. A US oven temperature. 350 degrees F gives (350 - 32) x 5/9 = 176.67 degrees C. Most ovens are set in 5 or 10 degree steps, so 175 or 180 degrees C is the practical setting. Going the other way, 180 degrees C is 180 x 9/5 + 32 = 356 degrees F.
  2. Height and weight in US units. 5 ft 9 in is 69 inches, so 69 x 2.54 = 175.26 cm. 180 lb is 180 x 0.45359237 = 81.65 kg. In the other direction, 70 kg is 70 / 0.45359237 = 154.32 lb.
  3. A running distance. A marathon of 42.195 km is 42.195 / 1.609344 = 26.22 miles, and 10 km is 6.21 miles.
  4. Gallons. Two US gallons are 2 x 3.785411784 = 7.5708 L, while two imperial gallons are 9.0922 L.

Common mistakes and limits

Unit confusion has caused real accidents. In 1983 an Air Canada jet ran out of fuel in flight after fuel was calculated in pounds when kilograms were required, and in 1999 NASA lost the Mars Climate Orbiter because thrust data in one unit system was read as another. The lesson is simply to carry the unit with the number.

Getting the most out of the results

Related tools

Frequently Asked Questions

Does temperature conversion work differently from the other units?

Yes. Length, weight and volume are proportional, so one multiplication does the job. Celsius and Fahrenheit have different zero points, so the formula includes an addition: °F = °C x 9/5 + 32. The difference between two temperatures, though, only needs the 1.8 ratio.

Which units come up most often in recipes?

US recipes usually use cups, teaspoons, tablespoons, fluid ounces, ounces, pounds and degrees Fahrenheit. Most other countries use milliliters, grams, kilograms and degrees Celsius. Because the size of a cup varies by country, check which country a recipe comes from.

How many centimeters are in an inch exactly?

Exactly 2.54 cm, or 25.4 mm. This was fixed by an international agreement in 1959 and is a definition, not a measurement. A foot is 12 inches, which is exactly 30.48 cm.

How different are the US and imperial gallons?

The US gallon is about 3.785 L and the imperial gallon is 4.546 L, so the imperial gallon is roughly 20% larger. This matters most when comparing fuel economy in miles per gallon.

What happens if I enter a temperature below absolute zero?

Absolute zero (-273.15 °C, 0 K, -459.67 °F) is the lowest possible temperature, so a lower input shows a warning. The arithmetic is still carried out so that you can see the result.

How do I read a result like 1.23000e-7?

Values smaller than 0.000001 or larger than 10^15 are shown in scientific notation. The part after the e is the power of ten, so 1.23000e-7 means 1.23 x 10^-7, or 0.000000123.

This tool is for reference. For medicine, engineering or legal metrology, confirm the original unit and the official standard.