Component (thermodynamics)
In thermodynamics, a component is a chemically-independent constituent of
a system. The number of components represents the minimum number of independent species necessary to define the composition of all phases of the system.
Calculating the number of components in a system is necessary, for example, when applying Gibbs' phase rule in determination of the number of degrees of freedom of a system.
The number of components is equal to the number of distinct chemical species (constituents), minus the number of chemical reactions between them, minus the number of any constraints (like charge neutrality or balance of molar quantities).
Examples
Water
A system that contains water in the liquid state also contains hydronium cations and hydroxyl anions according to the reaction:
The number of components in such a system is
CaCO3 - CaO - CO2 system
This is an example of a system with several phases, which at ordinary temperatures are two solids and a gas. There are three chemical species (CaCO3, CaO and CO2) and one reaction CaCO3 CaO + CO2. The number of components is then 3 - 1 = 2.