In cosmology, the equation of state of a perfect fluid is characterized by a dimensionless number , equal to the ratio of its pressure to its energy density :
It is closely related to the thermodynamic equation of state and ideal gas law.
The perfect gas equation of state may be written as
where is the mass density, is the particular gas constant, is the temperature and is a characteristic thermal speed of the molecules. Thus