Unified Code for Units of Measure
The Unified Code for Units of Measure is a system of codes for unambiguously representing measurement units. Its primary purpose is machine-to-machine communication rather than communication between humans. UCUM is used by different organizations like IEEE, and standards like DICOM, LOINC, HL7, and ISO 11240:2012.
The code set includes all units defined in ISO 1000, ISO 2955-1983, ANSI X3.50-1986, HL7 and ENV 12435, and explicitly and verifiably addresses the naming conflicts and ambiguities in those standards to resolve them. It provides for representations of units in 7 bit ASCII for machine-to-machine communication, with unambiguous mapping between case-sensitive and case-insensitive representations.
A reference open-source implementation is available as a Java applet. There is also an OSGi-based implementation at Eclipse Foundation.
Base units
Units are represented in UCUM with reference to a set of seven base units. The UCUM base units are the metre for measurement of length, the second for time, the gram for mass, the coulomb for charge, the kelvin for temperature, the candela for luminous intensity, and the radian for plane angle. The UCUM base units form a set of mutually independent dimensions as required by dimensional analysis.Some of the UCUM base units are different from the SI base units. UCUM is compatible with, but not isomorphic with, SI. There are four differences between the two sets of base units:
- The gram is the base unit of mass instead of the kilogram, since in UCUM base units do not have prefixes.
- Electric charge is the base quantity for electromagnetic phenomena instead of electric current, since the elementary charge of electrons is more fundamental physically.
- The mole is dimensionless in UCUM, since it can be defined in terms of the Avogadro number,
- The radian is a distinct base unit for plane angle, to distinguish angular velocity from rotational frequency and to distinguish the radian from the steradian for solid angles.
| Name | Symbol | Measure | Dimension symbol |
| metre | m | length | L |
| second | s | time | T |
| gram | g | mass | M |
| coulomb | C | charge | Q |
| kelvin | K | thermodynamic temperature | C |
| candela | cd | luminous intensity | F |
| radian | rad | plane angle | A |
Metric and non-metric units
Each unit represented in UCUM is identified as either "metric" or "non-metric". Metric units can accept metric prefixes as in SI. Non-metric units are not permitted to be used with prefixes. All of the base units are metric.UCUM refers to units that are defined on non-ratio scales as "special units". Common examples include the bel and degree Celsius. While these are not considered metric units by UCUM, UCUM nevertheless allows metric prefixes to be used with them where this is common practice.
Binary prefixes are also supported.
| Prefix | UCUM Symbol | Factor | Power |
| tebi | Ti | 240 | |
| gibi | Gi | 230 | |
| mebi | Mi | 220 | |
| kibi | Ki | 210 |
Arbitrary units
UCUM recognizes units that are defined by a particular measurement procedure, and which cannot be related to the base units. These units are identified as "arbitrary units". Arbitrary units are not commensurable with any other unit; measurements in arbitrary units cannot be compared with or converted into measurements in any other units. Many of the recognized arbitrary units are used in biochemistry and medicine.Derived units
Any metric unit in any common system of units can be expressed in terms of the UCUM base units.| Name | Symbol | Quantity | Expression in terms of UCUM base units |
| metre per second | m/s | speed, velocity | m⋅s−1 |
| metre per second squared | m/s2 | acceleration | m⋅s−2 |
| metre per second cubed | m/s3 | jerk, jolt | m⋅s−3 |
| metre per second to the fourth | m/s4 | snap, jounce | m⋅s−4 |
| radian per second | rad/s | angular velocity | rad⋅s−1 |
| radian per second squared | rad/s2 | angular acceleration | rad⋅s−2 |
| hertz per second | Hz/s | frequency drift | s−2 |
| cubic metre per second | m3/s | volumetric flow | m3⋅s−1 |
| Name | Symbol | Quantity | Expression in terms of UCUM base units |
| coulomb per square metre | C/m2 | electric displacement field, polarization density | m−2⋅C |
| coulomb per cubic metre | C/m3 | electric charge density | m−3⋅C |
| ampere per square metre | A/m2 | electric current density | m−2⋅s−1⋅C |
| kilosiemens per metre | kS/m | electrical conductivity | m−3⋅g−1⋅s1⋅C2 |
| kilofarad per metre | kF/m | permittivity | m−3⋅g−1⋅s2⋅C2 |
| millihenry per metre | mH/m | magnetic permeability | m⋅g⋅C−2 |
| millivolt per metre | mV/m | electric field strength | m⋅g⋅s−2⋅C−1 |
| ampere per metre | A/m | magnetization, magnetic field strength | m−1⋅s−1⋅C |
| coulomb per gram | C/g | exposure | g−1⋅C |
| milliohm metre | mΩ⋅m | resistivity | m3⋅g⋅s−1⋅C−2 |
| coulomb per metre | C/m | linear charge density | m−1⋅C |
| millijoule per millitesla | mJ/mT | magnetic dipole moment | m2⋅s−1⋅C |
| square metre per millivolt second | m2/ | electron mobility | g−1⋅s⋅C |
| reciprocal millihenry | mH−1 | magnetic reluctance | m−2⋅g−1⋅C2 |
| milliweber per metre | mWb/m | magnetic vector potential | m⋅g⋅s−1⋅C−1 |
| milliweber metre | mWb⋅m | magnetic moment | m3⋅g⋅s−1⋅C−1 |
| millitesla metre | mT⋅m | magnetic rigidity | m⋅g⋅s−1⋅C−1 |
| ampere radian | A⋅rad | magnetomotive force | C⋅rad⋅s−1 |
| metre per millihenry | m/mH | magnetic susceptibility | m−1⋅g−1⋅C2 |
| Name | Symbol | Quantity | Expression in terms of UCUM base units |
| millijoule per kelvin | mJ/K | heat capacity, entropy | m2⋅g⋅s−2⋅K−1 |
| millijoule per gram kelvin | mJ/ | specific heat capacity, specific entropy | m2⋅s−2⋅K−1 |
| milliwatt per metre kelvin | mW/ | thermal conductivity | m⋅g⋅s−3⋅K−1 |
| kelvin per milliwatt | K/mW | thermal resistance | m−2⋅g−1⋅s3⋅K |
| reciprocal kelvin | K−1 | thermal expansion coefficient | K−1 |
| kelvin per metre | K/m | temperature gradient | m−1⋅K |