# Temperature Units

There are two closely related UnitDimensions related to temperature in *Mathematica*: absolute temperature units and temperature difference units.

### Absolute Temperature versus Temperature Difference

Quantity expressions that have UnitDimensions with represent an absolute temperature, while those with dimensions of represent the difference between absolute temperatures. It is important to know that the two are related, but not directly interchangeable.

Unit conversion and multiplication are non-commutative operations for absolute temperatures, which means conversion and then multiplication will not necessarily result in the same result as multiplication and then conversion. Here is an example.

Out[1]= | |

Out[2]= | |

Temperature difference units, however, can be freely multiplied and converted.

Out[3]= | |

Out[4]= | |

### Adding Temperatures

Plus will operate on the sum of temperature units and temperature difference units, and on the sum of temperature difference units, but not always on the sum of just temperature units.

Calculate the sum of an absolute temperature and a temperature difference.

Out[5]= | |

Calculate the sum of two temperature differences.

Out[6]= | |

A sum cannot generally be calculated for two different absolute temperatures.

Out[7]= | |

However, the sum of two measures of absolute temperature, with the same unit, can be calculated.

Out[8]= | |

A sum can also be calculated for two different absolute temperatures, if both are SI measures (i.e. have a base of kelvins).

Out[9]= | |

## Multiplying Temperatures

Multiplication and unit conversions are non-commutative for absolute temperatures.

Out[10]= | |

Out[11]= | |

Because of this non-commutative trait, multiplication of different absolute temperatures may not evaluate.

Out[12]= | |

When working with absolute temperatures, it is imperative to first standardize the units, to allow for proper unit conversions.

Out[13]= | |

The single-argument form of

UnitConvert will convert any temperature to kelvins.

Out[15]= | |

Out[16]= | |