Units & Conversions

You can convert from one unit of measurement to another using the in operator.

3m in cm
1024kB in megabytes
3 years in months
[1, 1000, 10000]cm in m

101325 kg/(m*s^2)
8.314 m^3*Pa/mol/K

Units

BaseUnit
Lengthmeter (m), inch (in), foot (ft), yard (yd), mile (mi), link (li), rod (rd), chain (ch), angstrom, mil
Surfacearea m2, sqin, sqft, sqyd, sqmi, sqrd, sqch, sqmil, acre, hectare
Volumem3, litre (l, L, lt, liter), cc, cuin, cuft, cuyd, teaspoon, tablespoon
Liquidvolume minim, fluiddram (fldr), fluidounce (floz), gill (gi), cup (cp), pint (pt), quart (qt), gallon (gal), beerbarrel (bbl), oilbarrel (obl), hogshead, drop (gtt)
Anglesrad (radian), deg (degree), grad (gradian), cycle, arcsec (arcsecond), arcmin (arcminute)
Timesecond (s, secs, seconds), minute (min, mins, minutes), hour (h, hr, hrs, hours), day (days), week (weeks), month (months), year (years), decade (decades), century (centuries), millennium (millennia)
Frequencyhertz (Hz)
Massgram(g), tonne, ton, grain (gr), dram (dr), ounce (oz), poundmass (lbm, lb, lbs), hundredweight (cwt), stick, stone
Electriccurrent ampere (A)
Temperaturekelvin (K), celsius (degC), fahrenheit (degF), rankine (degR)
Amountof substance mole (mol)
Luminousintensity candela (cd)
Forcenewton (N), dyne (dyn), poundforce (lbf), kip
Energyjoule (J), erg, Wh, BTU, electronvolt (eV)
Powerwatt (W), hp
PressurePa, psi, atm, torr, bar, mmHg, mmH2O, cmH2O
Electricityand magnetism ampere (A), coulomb (C), watt (W), volt (V), ohm, farad (F), weber (Wb), tesla (T), henry (H), siemens (S), electronvolt (eV)
Binarybits (b), bytes (B)

Prefixes

NameAbbreviationValue
decada1e1
hectoh1e2
kilok1e3
megaM1e6
gigaG1e9
teraT1e12
petaP1e15
exaE1e18
zettaZ1e21
yottaY1e24
ronnaR1e27
quettaQ1e30
NameAbbreviationValue
decid1e-1
centic1e-2
millim1e-3
microu1e-6
nanon1e-9
picop1e-12
femtof1e-15
attoa1e-18
zeptoz1e-21
yoctoy1e-24
rontor1e-27
quectoq1e-30

The following binary prefixes are available. They can be used with units bits (b) and bytes (B).

NameAbbreviationValue
kibiKi1024
mebiMi1024^2
gibiGi1024^3
tebiTi1024^4
pebiPi1024^5
exiEi1024^6
zebiZi1024^7
yobiYi1024^8
NameAbbreviationValue
kilok1e3
megaM1e6
gigaG1e9
teraT1e12
petaP1e15
exaE1e18
zettaZ1e21
yottaY1e24