Fugacity is closely related to the chemical potential . In a pure substance,  is equal to the Gibbs energy  for a mole of the substance, and
where  and  are the temperature and pressure,  is the volume per mole and  is the entropy per mole.