The ideal gas equation is an equation of state that relates the state variables pressure, volume, temperature, and the number of moles of a hypothetical gas. This equation is a combination of four empirical laws, namely Boyle’s Law, Charles’s Law, Avogadro’s Law, and Gay-Lussac’s Law. When the proportionalities of the above four empirical laws are combined, it results in a single proportionality constant known as the universal gas constant.
This gas constant is the same for all real gases under certain conditions. The value of the universal gas constant is
but, when the ideal gas equation is used in chemical calculations, the value of the universal gas constant is
The ideal gas equation describes the nature of any real gas when its density is low enough or its temperature is high enough that it is far from liquefaction.
In real-world situations, the ideal gas law is applied to a sample of gas with a constant number of molecules; for instance, the gas may be in a sealed container. If the number of moles are constant, then the ratio of pressure multiplied by volume to the temperature of a gas is constant. In such cases, the ratio of pressure multiplied by volume to the temperatures in two different states of the gas can be equated. Here, the temperature must be expressed in kelvin, and the pressure must be absolute pressure, which is the sum of gauge pressure and the atmospheric pressure.
The ideal gas equations can also be expressed in terms of Boltzmann's constant as
Here, kB is Boltzmann’s constant, and NA is Avogadro's number. The ideal gas equation can be derived using the kinetic theory of gases. The ideal gas equation is closely related to energy. The units on both sides of the equation are joules.