Keep on studying while the schools are closed! Click here to save 50% on our revision guides!

Looking for revision notes that are specific to the exam board you are studying? If so, click the links below to view our condensed, easy-to-understand revision notes for each exam board, practice exam question booklets, mindmap visual aids, interactive quizzes, PowerPoint presentations and a library of past papers directly from the exam boards.

The Ideal Gas Equation

The physical properties of gases are dependent upon 4 variables which are the following:

  1. Pressure – P
  2. Volume – V
  3. Temperature – T (Kelvin)
  4. Number of moles – n 

Several laws describe the changes in the state of gas by defining variable or constant quantities:

  • Boyle’s Law – variable pressure and volume; constant temperature and number of moles;
  • P1 x V1 = P2 x V2
  • Charles’s Law – variable temperature and volume; constant pressure and number of moles;
  • Gay-Lussac’s Law – variable temperature and pressure; constant volume and number of moles;
  • Avogadro’s Law – variable number of moles and volume; constant pressure and temperature.

The Ideal Gas Law

An ideal gas is a theoretically characterized gaseous substance that consists of lots of randomly moving particles with interactions of perfectly elastic collisions. The concept is essential since it obeys the ideal gas law, which will be discussed shortly. 

Obviously, there is no such concept as an “ideal gas,” but at room temperature and atmospheric pressure, all gases follow the relation of the ideal gas law quite well. For that reason, the ideal gas law has universal applicability and is essential for solving the problems regarding moles or masses of gaseous substances.

Therefore, several assumptions must be considered in the case of ideal gases:

  • Ideal gases are composed of constantly and randomly moving particles;
  • Molecules which ideal gases are composed of act as rigid spheres;
  • All collisions (between the molecules, and between the molecules and the wall of the container) are perfectly elastic, and no kinetic energy is lost during the collision process;
  • Pressure arises due to the collisions;
  • Intermolecular forces between the gas molecules are completely negligible;
  • The volume occupied by the molecules is entirely negligible.

If we combine all 4 variables, pressure (P), volume (V), temperature (T), and the number of moles (n), we get the following mathematical expression:

PV/nT = constant

This constant is defined by the universal gas constant, which is denoted by R

So, the equation above can be rearranged into its most common form:

The Ideal Gas Law

R – universal gas constant; was experimentally determined using the concept that any 1mol of gas occupies 22.4L at the pressure of 1atm and temperature of 273K. 

Scientists have adopted specific conditions since the volumes of gases are dependent upon the temperature and pressure, and the only way to relate volumes of different gases is to measure them at the same conditions. 

These standard conditions, also referred to as standard temperature and pressure (STP) of a gas was determined to be the following:

P = 1.00atm

T = 273K

R = 0.0821 L∙atm/K∙mol = 0.0821 L∙atm∙K-1∙mol-1

Let’s consider each of the variables of the ideal gas equation.

Pressure – P

The pressure is given in atmosphere, or atm. It can also be measured in various units, including pascals, bars, torr, etc. 

Be aware that you must always convert the pressure to atm to properly plug the values in the ideal gas equation. 

1atm = 1bar = 760torr = 101,325 Pa = 100kPa

Volume – V

Volume is given liters, or L, so make sure that you convert the units to liters before you use the ideal gas equation. 

1L = 1,000mL = 0.001m3 = 1,000cm3 = 1dm3

To calculate the volume of a gas using the ideal gas equation, you can use the following formula:

V = nRT/P

Number of Moles – n 

The number of moles is, of course, used in moles. To calculate the number of moles, you simply use the concept that 1mol of any gas occupies 22.4L of volume. So, you just divide the given volume of a particular gas by 22.4L to get the amount of that gas in moles. 

To calculate the number of moles of an ideal gas using the ideal gas equation, you can use the following formula:

The Gas Constant – R

As we already discussed above, the value of R is given in units “L∙atm∙K-1∙mol-1.”

R = 0.0821 L∙atm∙K-1∙mol-1

Temperature – T

Temperature is given in Kelvin; therefore, do not forget to convert Celsius or Fahrenheit temperature to Kelvin. 

The following conversions might be useful for you:

Kelvin Temperature = Celsius Temperature + 273

Kelvin Temperature = (Fahrenheit Temperature + 460) x 5/9

The Ideal Gas Law and Molar Mass

Using the ideal gas law, you can calculate the molar mass of a particular gaseous compound. 

As we know, the number of moles (n) is equal to the mass of a compound (m) divided by its molar mass (M):

n = m/M

As we already discussed above, the number of moles can be calculated from the ideal gas law using the following equation:

If we solve for M, we get the following equation:

Let’s consider several problems to better understand the concept of the ideal gas law.

Sample Problem:


It might seem a little bit confusing to choose the proper equation for the problem that you are asked to solve. In reality, it is quite easy to use the needed equation if you try to understand the concept of each one. 

The most important thing while solving the problem is to identify the values that you are given. For instance, does the problem provide information about pressure and temperature or volume and number of moles?

As long as you get the idea of what the particular problem is asking for, you can quickly decide which equation would be suitable for that specific scenario. 

If there are only two values given, you are most probably asked to calculate something using the 4 equations that we have discussed in the beginning of the article (Boyle’s law, Charles’s law, Gay-Lussac’s law, or Avogadro;s law).

Be aware that if the problem provides details about 2 terms (e.g., temperature and pressure) you can only calculate either temperature or pressure using the 4 laws mentioned above.

If the problem asks you to calculate some other value that is not given in the problem, you might need to use the ideal gas law since the ideal gas equation combines all terms in one equation and makes it possible to calculate, for instance, the number of moles when you are just given temperature and pressure. 

All the equations discussed throughout the article are summarized in the table below:

Boyle’s LawP1 x V1 = P2 x V2Variable pressure and volumeConstant number of moles and temperature
Charles’s LawV1/T1= V2 /T2Variable volume and temperatureConstant number of moles and pressure
Gay-Lussac’s LawP1/T1= P2/T2Variable pressure and temperatureConstant number of moles and volume
Avogadro’s LawV1/n1= V2/n2Variable volume and number of molesConstant pressure and temperature
The Ideal Gas LawPV = nRTVariable pressure, volume, number of moles and temperature


The quantities that are used in a particular equation are called variable quantitis, and the ones that are not mentioned in the equation are called constant quantities. 

For instance, in the ideal gas law, all the quantities (pressure, volume, number of moles, and temperature) are variable. 

On the other hand in case of the 4 laws mentioned above, 2 quantities are variable and 2 quantities are constant. 


OpenStax. (2015). “OpenStax, Chemistry.” Retrieved from: