13.3 The Ideal Gas Law
Learning Objectives
By the end of this section, you will be able to:
- State the ideal gas law in terms of molecules and in terms of moles.
- Use the ideal gas law to calculate pressure change, temperature change, volume change, or the number of molecules or moles in a given volume.
- Use Avogadro’s number to convert between number of molecules and number of moles.

In this section, we continue to explore the thermal behavior of gases. In particular, we examine the characteristics of atoms and molecules that compose gases. (Most gases, for example nitrogen, , and oxygen, , are composed of two or more atoms. We will primarily use the term “molecule” in discussing a gas, but note that this discussion also applies to monatomic gases, such as helium.)
Gases are easily compressed. We can see evidence of this in Table 13.2, where you will note that gases have the largest coefficients of volume expansion. The large coefficients mean that gases expand and contract very rapidly with temperature changes. In addition, you will note that most gases expand at the same rate, or have the same . This raises the question as to why gases should all act in nearly the same way, when liquids and solids have widely varying expansion rates.
The answer lies in the large separation of atoms and molecules in gases, compared to their sizes, as illustrated in Figure 13.18. Because atoms and molecules have large separations, forces between them can be ignored, except when they collide with each other during collisions. The motion of atoms and molecules (at temperatures well above the boiling temperature) is fast, such that the gas occupies all of the accessible volume and the expansion of gases is rapid. In contrast, in liquids and solids, atoms and molecules are closer together and are quite sensitive to the forces between them.

To get some idea of how pressure, temperature, and volume of a gas are related to one another, consider what happens when you pump air into an initially deflated tire. The tire’s volume first increases in direct proportion to the amount of air injected, without much increase in the tire pressure. Once the tire has expanded to nearly its full size, the walls limit volume expansion. If we continue to pump air into it, the pressure increases. The pressure will further increase when the car is driven and the tires move. Most manufacturers specify optimal tire pressure for cold tires. (See Figure 13.19.)

In many common circumstances, including, for example, room temperature air, the gas particles have negligible volume and do not interact with each other, aside from perfectly elastic collisions. In such cases, the gas is called an ideal gas, and the relationship between the pressure, volume, and temperature is given by the equation called the ideal gas law. An equation such as the ideal gas law, which relates behavior of a physical system in terms of its thermodynamic properties, is called an equation of state.
The ideal gas law can be derived from basic principles, but was originally deduced from experimental measurements of Charles’ law (that volume occupied by a gas is proportional to temperature at a fixed pressure) and from Boyle’s law (that for a fixed temperature, the product is a constant). In the ideal gas model, the volume occupied by its atoms and molecules is a negligible fraction of . The ideal gas law describes the behavior of real gases under most conditions. (Note, for example, that is the total number of atoms and molecules, independent of the type of gas.)
Let us see how the ideal gas law is consistent with the behavior of filling the tire when it is pumped slowly and the temperature is constant. At first, the pressure is essentially equal to atmospheric pressure, and the volume increases in direct proportion to the number of atoms and molecules put into the tire. Once the volume of the tire is constant, the equation predicts that the pressure should increase in proportion to the number N of atoms and molecules.
Moles and Avogadro’s Number
It is sometimes convenient to work with a unit other than molecules when measuring the amount of substance. The mole (abbreviated mol) is the SI unit for the amount of a substance. This number is also Avogadro’s number, in recognition of Italian scientist Amedeo Avogadro (1776–1856), who developed the concept of the mole, based on the hypothesis that equal volumes of gas, at the same pressure and temperature, contain equal numbers of molecules, independent of the type of gas. This hypothesis has been confirmed. Originally defined1 as the number of atoms in 12 grams of carbon-12, as of 2019, a mole is defined as exactly 6.02214076 × 1023 elementary entities, so that to three significant figures Avogadro’s number is

The active ingredient in a Tylenol pill is 325 mg of acetaminophen . Find the molar mass of acetaminophen, and from this, the number of moles and the number of molecules of acetaminophen in a single pill.
We first need to calculate the molar mass (the mass of one mole) of acetaminophen. To do this, we need to multiply the number of atoms of each element by the element’s atomic mass.
Then we need to calculate the number of moles in 325 mg.
Then use Avogadro’s number to calculate the number of molecules.
The density of air at standard conditions and is . At what pressure is the density if the temperature and number of molecules are kept constant?
The best way to approach this question is to think about what is happening. If the density drops to half its original value and no molecules are lost, then the volume must double. If we look at the equation , we see that when the temperature is constant, the pressure is inversely proportional to volume. Therefore, if the volume doubles, the pressure must drop to half its original value, and
The Ideal Gas Law Restated Using Moles
A very common expression of the ideal gas law uses the number of moles, , rather than the number of atoms and molecules, . We start from the ideal gas law,
and multiply and divide the equation by Avogadro’s number . This gives
Note that is the number of moles. We define the universal gas constant , and obtain the ideal gas law in terms of moles.
The ideal gas law can be considered to be another manifestation of the law of conservation of energy (see Conservation of Energy). Work done on a gas results in an increase in its energy, increasing pressure and/or temperature. This increased energy can also be viewed as increased internal kinetic energy, given the gas’s atoms and molecules.
The Ideal Gas Law and Energy
Let us now examine the role of energy in the behavior of gases. When you inflate a bike tire by hand, you do work by repeatedly exerting a force through a distance. This energy goes into increasing the pressure of air inside the tire and increasing the temperature of the pump and the air.
The ideal gas law is closely related to energy: the dimensions on both sides are those of energy, with units of joules when using SI units. The right-hand side of the ideal gas law in is . This term is proportional to the amount of translational kinetic energy of atoms or molecules at an absolute temperature , as we shall see formally in Kinetic Theory: Atomic and Molecular Explanation of Pressure and Temperature. The left-hand side of the ideal gas law is , which also has the units of joules. Pressure is force per unit area, so pressure multiplied by volume is force times displacement, or energy. The important point is that there is energy in a gas related to both its pressure and its volume. The energy can be changed when the gas is doing work as it expands—something we explore in Heat and Heat Transfer Methods—similar to what occurs in gasoline or steam engines and turbines.
Liquids and solids have densities about 1000 times greater than gases. Explain how this implies that the distances between atoms and molecules in gases are about 10 times greater than the size of their atoms and molecules.
Atoms and molecules are close together in solids and liquids. In gases they are separated by empty space. Thus gases have lower densities than liquids and solids. Density is mass per unit volume, and volume is related to the size of a body (such as a sphere) cubed. So if the distance between atoms and molecules increases by a factor of 10, then the volume occupied increases by a factor of 1000, and the density decreases by a factor of 1000.
Test Prep for AP Courses
A fixed amount of ideal gas is kept in a container of fixed volume. The absolute pressure P, in pascals, of the gas is plotted as a function of its temperature T, in degrees Celsius. Which of the following are properties of a best fit curve to the data? Select two answers.
- Having a positive slope
- Passing through the origin
- Having zero pressure at a certain negative temperature
- Approaching zero pressure as temperature approaches infinity
(a), (c)

This figure shows a clear plastic container with a movable piston that contains a fixed amount of gas. A group of students is asked to determine whether the gas is ideal. The students design and conduct an experiment. They measure the three quantities recorded in the data table below.
| Trial | Absolute Gas Pressure (x10m5 Pa) | Volume (m3) | Temp. (K) | ||
|---|---|---|---|---|---|
| 1 | 1.1 | 0.020 | 270 | ||
| 2 | 1.4 | 0.016 | 270 | ||
| 3 | 1.9 | 0.012 | 270 | ||
| 4 | 2.2 | 0.010 | 270 | ||
| 5 | 2.8 | 0.008 | 270 | ||
| 6 | 1.2 | 0.020 | 290 | ||
| 7 | 1.5 | 0.016 | 290 | ||
| 8 | 2.0 | 0.012 | 290 | ||
| 9 | 2.4 | 0.010 | 290 | ||
| 10 | 3.0 | 0.008 | 290 | ||
| 11 | 1.3 | 0.020 | 310 | ||
| 12 | 1.6 | 0.016 | 310 | ||
| 13 | 2.1 | 0.012 | 310 | ||
| 14 | 2.6 | 0.010 | 310 | ||
| 15 | 3.2 | 0.008 | 310 |
- Select a set of data points from the table and plot those points on a graph to determine whether the gas exhibits properties of an ideal gas. Fill in blank columns in the table for any quantities you graph other than the given data. Label the axes and indicate the scale for each. Draw a best-fit line or curve through your data points.
- Indicate whether the gas exhibits properties of an ideal gas, and explain what characteristic of your graph provides the evidence.
- The students repeat their experiment with an identical container that contains half as much gas. They take data for the same values of volume and temperature as in the table. Would the new data result in a different conclusion about whether the gas is ideal? Justify your answer in terms of interactions between the molecules of the gas and the container walls.
Section Summary
- The ideal gas law relates the pressure and volume of a gas to the number of gas molecules and the temperature of the gas.
- The ideal gas law can be written in terms of the number of molecules of gas: where is pressure, is volume, is temperature, is number of molecules, and is the Boltzmann constant
- A mole is the number of atoms in a 12-g sample of carbon-12.
- The number of molecules in a mole is called Avogadro’s number ,
- A mole of any substance has a mass in grams equal to its molecular weight, which can be determined from the periodic table of elements.
- The ideal gas law can also be written and solved in terms of the number of moles of gas: where is number of moles and is the universal gas constant,
- The ideal gas law is generally valid at temperatures well above the boiling temperature.
Conceptual Questions
Find out the human population of Earth. Is there a mole of people inhabiting Earth? If the average mass of a person is 60 kg, calculate the mass of a mole of people. How does the mass of a mole of people compare with the mass of Earth?
Under what circumstances would you expect a gas to behave significantly differently than predicted by the ideal gas law?
A constant-volume gas thermometer contains a fixed amount of gas. What property of the gas is measured to indicate its temperature?
Problems & Exercises
The gauge pressure in your car tires is at a temperature of when you drive it onto a ferry boat to Alaska. What is their gauge pressure later, when their temperature has dropped to ?
1.62 atm
Convert an absolute pressure of to gauge pressure in (This value was stated to be just less than in Example 4. Is it?)
Suppose a gas-filled incandescent light bulb is manufactured so that the gas inside the bulb is at atmospheric pressure when the bulb has a temperature of . (a) Find the gauge pressure inside such a bulb when it is hot, assuming its average temperature is (an approximation) and neglecting any change in volume due to thermal expansion or gas leaks. (b) The actual final pressure for the light bulb will be less than calculated in part (a) because the glass bulb will expand. What will the actual final pressure be, taking this into account? Is this a negligible difference?
(a) 0.136 atm
(b) 0.135 atm. The difference between this value and the value from part (a) is negligible.
To test a balloon, it is placed in a lab and filled with helium. The temperature of the helium is and the pressure is 1.00 atmosphere. The pressure in the lab is maintained. Assume the membrane of the balloon provides a negligible inward pressure, so it is not considered significant. (a) What is the pressure inside the balloon if the helium is replaced with helium that is at ? and the balloon is filled until it has a volume of 20.0 times its original volume? (b) What is the gauge pressure? (Assume the pressure in the lab remains at 1.00 atmosphere during the experiment.)
Confirm that the units of are those of energy for each value of : (a) , (b) , and (c) .
(a)
(b)
(c)
In the text, it was shown that for gas at STP. (a) Show that this quantity is equivalent to as stated. (b) About how many atoms are there in one (a cubic micrometer) at STP? (c) What does your answer to part (b) imply about the separation of atoms and molecules?
Calculate the number of moles in the 2.00-L volume of air in the lungs of the average person. Note that the air is at (body temperature).
An airplane passenger has of air in his stomach just before the plane takes off from a sea-level airport. What volume will the air have at cruising altitude if cabin pressure drops to
(a) What is the volume (in ) of Avogadro’s number of sand grains if each grain is a cube and has sides that are 1.0 mm long? (b) How many kilometers of beaches in length would this cover if the beach averages 100 m in width and 10.0 m in depth? Neglect air spaces between grains.
(a)
(b)
An expensive vacuum system can achieve a pressure as low as at . How many atoms are there in a cubic centimeter at this pressure and temperature?
The number density of gas atoms at a certain location in the space above our planet is about and the pressure is in this space. What is the temperature there?
A bicycle tire has a pressure of at a temperature of and contains 2.00 L of gas. What will its pressure be if you let out an amount of air that has a volume of at atmospheric pressure? Assume tire temperature and volume remain constant.
A high-pressure gas cylinder contains 50.0 L of toxic gas at a pressure of and a temperature of . Its valve leaks after the cylinder is dropped. The cylinder is cooled to dry ice temperature to reduce the leak rate and pressure so that it can be safely repaired. (a) What is the final pressure in the tank, assuming a negligible amount of gas leaks while being cooled and that there is no phase change? (b) What is the final pressure if one-tenth of the gas escapes? (c) To what temperature must the tank be cooled to reduce the pressure to 1.00 atm (assuming the gas does not change phase and that there is no leakage during cooling)? (d) Does cooling the tank appear to be a practical solution?
(a)
(b)
(c) 2.16 K
(d) No. The final temperature needed is much too low to be easily achieved for a large object.
Find the number of moles in 2.00 L of gas at and under of pressure.
Calculate the depth to which Avogadro’s number of table tennis balls would cover Earth. Each ball has a diameter of 3.75 cm. Assume the space between balls adds an extra 25.0% to their volume and assume they are not crushed by their own weight.
41 km
(a) What is the gauge pressure in a car tire containing 3.60 mol of gas in a 30.0 L volume? (b) What will its gauge pressure be if you add 1.00 L of gas originally at atmospheric pressure and ? Assume the temperature returns to and the volume remains constant.
(a) In the deep space between galaxies, the density of atoms is as low as and the temperature is a frigid 2.7 K. What is the pressure? (b) What volume (in ) is occupied by 1 mol of gas? (c) If this volume is a cube, what is the length of its sides in kilometers?
(a)
(b)
(c)
Adapted from College Physics 2e by OpenStax (openstax.org), licensed under CC BY-NC-SA 4.0. Changes were made. License: CC-BY-NC-SA-4.0.