The ideal gas law is a mathematical expression that describes the behaviour of an ideal gas.
So far, all the gas laws mentioned in the previous sections work reasonably well when the experiments are done at low pressures (≤ 1 atm) where the following assumptions about gas particles are valid:

 They are in constant random motion.
 They are point masses with zero volume.
 They are very small compared to the space between them, i.e. they are far apart from one another.
 There is no intermolecular forces of attraction or repulsion between them.
 No energy is gained or lost from collisions.
Gases that are made up of such particles are called ideal gases. We can therefore mathematically describe the properties of ideal gases by combining Boyle’s law, Charles’ law and Avogadro’s law as follows:
Boyle’s law:
Charles’ law:
Avogadro’s law:
Combining the above laws and rearranging,
where n is defined as the number of moles of gas instead of the earlier arbitrary description of amount of gas and R is the universal gas constant with a value of 8.3145 J K^{1} mol^{1}. Eq14 is called the ideal gas law. Note that the individual laws still stand, e.g. GayLussac’s law of p = k_{3}T at constant volume for a given mass of gas, where .
Since p_{1}V_{1} = n_{1}RT_{1} and p_{2}V_{2} = n_{2}RT_{2}, Avogadro’s law can also be expressed as
Eq14 and eq15 are also known as equations of state as they interrelate a gas’ physical properties, leading to the knowledge of its physical state. Although these two equations work reasonably well at low pressures where gases behave ideally, they need to be modified to describe the physical state of gases at high pressures or low temperatures. Gases that are under such nonideal conditions are called real gases.
Question
The pressure of a gas in a constantvolume vessel containing 4.000 moles of Pentane and 1.000 mole of Hexane at 80.00°C is 146.8 kPa. Find the pressure of the gas at 45.00°C given:

 Boiling point of pentane: 36.00°C
 Boiling point of hexane: 68.00°C
 Volume of 4 moles of liquid pentane and/or 1 mole of liquid hexane is negligible compared to the volume of the vessel
Answer
Assuming gaseous pentane and gaseous hexane behave ideally, using eq15