When Avogadro's Law is considered, all four state variables can be combined into one equation. Furthermore, the "constant" that is used in the above gas laws becomes the Universal Gas Constant (R).

To better understand the Ideal Gas Law, you should first see how it is derived from the above gas laws.

and

This is simply a restatement of Avogadro's Law and the Combined Gas Law.

We can now combine the laws together.

Let R be a constant, and write the proportion in the form of an equation.

Rearranging the fraction gives one form of the ideal gas law.

The ideal gas law is the most useful law, and it should be memorized. If you know the ideal gas law, you do not need to know any other gas laws, for it is a combination of all the other laws. If you know any three of the four state variables of a gas, the unknown can be found with this law. If you have two gases with different state variables, they can be compared.

There are three ways of writing the ideal gas law, but all of them are simply algebraic rearrangements of each other.

This is the most common form.

This form is useful for predicting the effects of changing a state variable. To maintain a constant value of R, an change in the numerator must result in a proportional change in the denominator, and vice versa. If, for example, the pressure is decreased in a constant-volume container, you can use this form to easily predict that the temperature must decrease.

Because R is the same constant for all gases, this equation can be used to relate two gases to each other.

;Rules for Using the Ideal Gas Law

Always convert the temperature to kelvins (K).

Always convert mass to moles (mol).

Always convert volume to liters (L).

It is preferable to convert pressure to kilopascals (kPa). R, the Universal Gas Constant, would be 8.314 (L·kPa)/(mol·K).

The Kinetic Molecular Theory attempts to explain the gas laws. It describes the behavior of microscopic gas molecules to explain the macroscopic behavior of gases. According to this theory, an ideal gas is composed of continually moving molecules of negligible volume. The molecules move in straight lines unless they collide into each other or the walls of their container.

The pressure of the gas on the container is explained as the force the molecules exert on the walls during a collision. Pressure is equal to the average force of collisions divided by the total surface area of the container.

The temperature of the gas is proportional to the average kinetic energy of the molecules. denotes the average kinetic energy of the molecules, and is the Boltzmann constant (1.388 x 10-23).

The gas laws are now explained by the microscopic behavior of gas molecules:

Boyle's Law: The pressure of a gas is inversely proportional to its volume. A container's volume and surface area are obviously proportional. Based on the pressure equation, an increase in volume (and thus surface area) will decrease pressure.

Charles' Law: the volume of a gas is proportional to its temperature. As the volume (and surface area) increases, the pressure will decrease unless the force also increase. When pressure is constant, the volume and temperature must be proportional. The temperature equation above explains why: the energy of the molecules (and their collision force) is proportional to temperature.

Gay-Lussac's Law: The temperature of a gas is directly proportional to its pressure. An increase in temperature will increase the kinetic energy of the molecules (shown by the temperature equation). Greater kinetic energy causes the molecules to move faster. Their collisions with the container will have more force, which increases pressure.

Avogadro's Law: Equal volumes of all ideal gases (at the same temperature and pressure) contain the same number of molecules. According to the Kinetic Molecular Theory, the size of individual molecules is negligible compared to distances between molecules. Even though different gases have different sized molecules, the size difference is negligible, and the volumes are the same.

Suppose there are molecules, each with mass , in a cubic container with side length . Even though the molecules are moving in all directions, we may assume, on average, that one third of the molecules are moving along the x-axis, one third along the y-axis, and one third along the z-axis. We may assume this because the motion of the molecules is random, so no direction is preferred.

Suppose the average speed of the molecules is . Let a specific wall of the container be labeled A. Because the collisions in Kinetic Molecular Theory are perfectly elastic, the speed after a collision is . Therefore, the average change in momentum (the product of mass and velocity) per collision is .

Each molecule, on average, travels a distance of between two consecutive collisions with wall A. Therefore, it will collide times per second with wall A.

The average change in momentum per molecule per second.

Therefore, this is the total change in momentum per second for the molecules that collide into wall A. This is the momentum per second that was exerted onto wall A. Because force equals the change in momentum over time, this value is the force exerted on wall A.

Pressure is defined as force per unit area, so this is the pressure of the gas.

Because the volume of the container is , we can rearrange the equation.

The kinetic energy of a single particle is given by this equation.

Substitute kinetic energy into the equation.

Substitute the temperature equation (from the previous section).

Avogadro's number is equal to the number of molecules per mole.

By definition, the ideal gas constant is equal to the Boltzmann constant times Avogadro's number.

In an ideal gas, there are no intermolecular attractions, and the volume of the gas particles is negligible. However, there is no real gas that can perfectly fits this behavior, so the Ideal Gas Law only approximates the behavior of gases. This approximation is very good at high temperatures and low pressures.

At high temperature the molecules have high kinetic energy, so intermolecular attractions are minimized. At low pressure the gas occupies more volume, making the size of the individual molecules negligible. These two factors make the gas behave ideally.

At low temperature or high pressure, the size of the individual molecules and intermolecular attractions becomes significant, and the ideal gas approximation becomes inaccurate.

In calculations for a gas above a liquid, the vapor pressure of the liquid must be considered.

A eudiometer is a device that measures the downward displacement of a gas. The apparatus for this procedure involves an inverted container or jar filled with water and submerged in a water basin. The lid of the jar has an opening for a tube through which the gas to be collected can pass. As the gas enters the inverted container, it forces water to leave the jar (displacing it downward). To fill the entire container with gas, there must enough gas pumped into the container to expel all of the water.

Gas is created by burning a substance that releases methane. The eudiometer on the right was full of water before the gas was created. By measuring the change in volume, the amount of gas can be calculated.

As seen in this diagram, the downward displacement involves water. Therefore, in the container where the gas is collected, there is unwanted water vapor. To account for the water vapor, subtract the pressure of water vapor from the pressure of the gases in the container to find the pressure of the collected gas. This is simply a restatement of Dalton's Law of Partial Pressure:

Between the Combined Gas Law and the Ideal Gas Law, which one accounts for chemical change? Explain.

Calculate the density of hydrogen at a temperature of 298 K and pressure of 100.0 kPa.

What volume does 5.3 moles of oxygen take up at 313 K and 96.0 kPa?

Hydrogen and sulfur chemically combine to form the gas hydrogen sulfide, according to the reaction: H2 (g) + S(s) → H2S(g). How many liters of hydrogen are required to form 7.4 L of hydrogen sulfide (at STP: 273 K, 101.3 kPa)?