ChemistryStates of matter
Gas Laws: Boyle's, Charles's and the Ideal Gas Law Explained

The gas laws are a set of simple rules that describe how the pressure, volume, temperature and amount of a gas change together. A balloon that is squeezed or warmed follows them, and so does the air in a car tire. Each law was found by experiment between the 1660s and the early 1800s, and they were later combined into one equation.
Contents
What are the gas laws?
A gas is a state of matter in which particles move freely and spread out to fill any container. Because the particles are so far apart, their behavior can be described with a few measurable quantities: pressure (P), volume (V), temperature (T) and amount of gas (n). The gas laws describe how changing one of these affects the others while the rest are held steady.
Each law fixes two quantities and tests a third. Boyle’s law says that at constant temperature, pressure and volume are inversely related. Charles’s law says that at constant pressure, volume and temperature are directly related. Gay-Lussac’s law links pressure and temperature at constant volume, and Avogadro’s law links volume and amount at constant pressure and temperature. Every law is an observation about a fixed amount of gas under controlled conditions.
Pressure is the force per unit area that gas particles exert on the walls of their container. The SI unit is the pascal (Pa), and one standard atmosphere is 101,325 Pa (101.325 kPa), close to the average pressure at sea level. Volume is measured in cubic meters (m³) in SI units, although chemists often use liters, where 1 L = 0.001 m³. Amount is measured in moles (mol), a count of particles explained on the mole page.
Temperature must be in kelvin (K) for the gas laws to work. The kelvin scale starts at absolute zero, 0 K, which equals −273.15 °C (−459.67 °F). Because the scale starts where particle motion would stop, a doubling of kelvin temperature really does double the average particle energy. A doubling of a Celsius value does not, which is why the laws give wrong answers when Celsius numbers are used directly.
How pressure, volume and temperature depend on each other
The gas laws rest on one simple idea from kinetic theory: gas particles are in constant, random motion and collide with the walls of their container. Pressure is the total force of those collisions spread over the container’s surface. If the number of collisions per second rises, or each collision hits harder, the pressure rises as well.
Squeezing a gas at constant temperature shows this clearly. The particles are now crowded into a smaller space, so they hit the walls more often. Each collision is no harder than before, but there are more of them on every square centimeter each second, so the pressure goes up. This is why a bicycle pump becomes harder to push as the air inside is compressed.
Heating a gas at constant pressure speeds up the particles. Faster particles strike the walls harder and more often, so a flexible container must expand to keep the pressure the same. A balloon left in a warm room gets bigger, and the same balloon in a freezer shrinks. This is Charles’s law in action, and it works the same way for hot-air balloons.
Heating a gas in a rigid, sealed container at constant volume also speeds up the particles, so the pressure rises instead. Gay-Lussac’s law describes this case. Adding more gas at the same pressure and temperature makes a flexible container larger, because there are more particles to fill it. That observation is Avogadro’s law: equal volumes of gases at the same temperature and pressure contain equal numbers of particles.
These effects are linked. The laws were tested by changing one quantity while holding the others steady, and each law describes the result of one such controlled experiment. Taken together, they show that the four quantities are never independent for a gas.
The formulas and a worked example
Each law can be written as a simple equation. For a fixed amount of gas at constant temperature, Boyle’s law is written like this.
P1 × V1 = P2 × V2
Pressure times volume is constant at constant temperature. Charles’s law uses volume and temperature at constant pressure, and Gay-Lussac’s law uses pressure and temperature at constant volume.
V1 / T1 = V2 / T2
Volume divided by absolute temperature is constant at constant pressure. The temperatures must be in kelvin, so 20 °C must first be converted to 293 K.
The three laws combine into one relationship, called the combined gas law, for a fixed amount of gas.
P1 × V1 / T1 = P2 × V2 / T2
Each symbol is a quantity with a unit: P in pascals or kilopascals, V in liters or cubic meters, and T in kelvin. Only the ratios matter, so the same pressure unit or volume unit must be used on both sides of the equation.
Worked example: a sample of air occupies 2.0 L at 100 kPa and 300 K. What is its volume at 150 kPa and 300 K? The temperature is unchanged, so use Boyle’s law: 100 kPa × 2.0 L = 150 kPa × V2. This gives V2 = 200 ÷ 150 = 1.3 L (about 1.33 L). The pressure rose by a factor of 1.5, so the volume fell by the same factor, to 1/1.5 of its original value. This is the inverse relationship in action.
When the amount of gas also changes, the ideal gas law brings n into the relationship:
PV = nRT
P is pressure (Pa), V is volume (m³), n is amount (mol), T is temperature (K) and R is the gas constant, 8.314 J/(mol·K). Using 8.314 J/(mol·K) requires SI units throughout. The ideal gas law page works through the equation in more detail.
Everyday examples
The gas laws explain many things people notice without thinking about them.
- Tire pressure. A tire checked on a cold morning reads lower than the same tire on a hot afternoon, because the air inside is cooler and its pressure drops at roughly constant volume. This is Gay-Lussac’s law. Drivers are usually advised to check pressure when tires are cold.
- Balloons. A balloon carried from a warm room into cold air shrinks, following Charles’s law. The gas inside has not escaped; it has simply become denser and taken up less room.
- Breathing. The chest muscles enlarge the chest cavity, which lowers the pressure inside the lungs. Air flows in until the pressure matches the air outside. Breathing out reverses the process, which is Boyle’s law at work.
- Aerosol cans. An aerosol contains a gas under pressure. Its label warns against heating the can because the pressure inside rises quickly and the can can burst.
- Scuba diving. As a diver rises, the water pressure falls and the air in the lungs expands, following Boyle’s law. Divers are trained never to hold their breath while ascending, because the expanding air can damage the lungs.
Ideal gases and where the laws fail
The gas laws describe an ideal gas, a model in which particles have no volume of their own and feel no attraction to one another. Real gases come close to this model at ordinary room conditions. Helium, nitrogen and oxygen at normal pressure follow the ideal gas law to within a fraction of a percent, and the model is good enough for most calculations.
Real gases deviate at high pressure, because the particles are crowded and their own volume matters. They also deviate at low temperature, because the particles move slowly enough for weak attractions, the intermolecular forces, to pull them together. Water vapor deviates more than nitrogen, since its molecules attract each other more strongly.
The van der Waals equation corrects the ideal gas law for both effects. Two constants, a for attraction and b for particle volume, are added to the equation.
(P + an2 / V2)(V − nb) = nRT
The constants a and b depend on the gas. Students at GCSE and AP level usually use the ideal gas law, and the van der Waals form is shown mainly to explain why real gases behave differently.
Who discovered the gas laws
The gas laws were built up over about 150 years, and each step came from measurements made by different people. Robert Boyle, the Irish-born chemist and natural philosopher, published the pressure and volume relationship in 1662, after experiments with a J-shaped glass tube partly filled with mercury. His assistant Robert Hooke helped with the apparatus, and Robert Boyle is credited with the law in English-speaking countries. The French physicist Edme Mariotte found the same relationship independently in 1676.
Jacques Charles studied how gases expand when heated around 1787, and Joseph Louis Gay-Lussac published the temperature and volume results in 1802. Gay-Lussac also showed that pressure rises with temperature at constant volume. Their work established the link between gas volume and temperature in degrees above a fixed starting point.
In 1811 the Italian scientist Amedeo Avogadro proposed that equal volumes of gases at the same temperature and pressure hold equal numbers of molecules. In 1834 Benoît Paul Émile Clapeyron combined Boyle’s, Charles’s and Gay-Lussac’s laws into one equation, which became the ideal gas law. Later, the kinetic theory of gases explained the laws by treating gases as huge numbers of moving particles.
Common mistakes and exam tips
Students most often lose marks by using Celsius instead of kelvin. A change from 20 °C to 40 °C is not a doubling, because the kelvin values are 293 K and 313 K. Convert every temperature before using a ratio.
A second common error is mixing up direct and inverse relationships. Boyle’s law is inverse: halving the volume doubles the pressure. Charles’s law is direct: doubling the kelvin temperature doubles the volume. Writing the constant quantity first, such as “constant T”, helps choose the right equation.
Units also cause mistakes. Pressure may be given in kPa, atm or mmHg, and volume in mL or L. Convert to matching units first, and use SI units when the value of R is needed. Finally, remember that the laws describe a fixed amount of gas; if gas is added or leaks out, the amount n changes and the simple ratios no longer hold.
More about Gas laws
- QuestionWhat Is Avogadro's Law? Formula, Meaning and Examples
- QuestionWhat Is Boyle's Law? Formula, Graph and Examples
- QuestionWhat Is Charles's Law? Formula and Real-Life Examples
- QuestionWhat Is STP in Chemistry? Standard Temperature and Pressure
- QuestionWhat Is the Ideal Gas Law? PV = nRT Explained With Examples
Frequently asked questions
What are the three main gas laws?
The three main gas laws are Boyle’s law, Charles’s law and Gay-Lussac’s law. Each one holds one quantity constant and links the other two: Boyle’s at constant temperature, Charles’s at constant pressure and Gay-Lussac’s at constant volume. Avogadro’s law adds the amount of gas to the set.
What is the ideal gas law?
The ideal gas law is PV = nRT, where P is pressure in pascals, V is volume in cubic meters, n is amount in moles and T is temperature in kelvin. The gas constant R is 8.314 J/(mol·K). It combines Boyle’s, Charles’s and Avogadro’s laws into one equation.
What is the value of the gas constant R?
The gas constant R is about 8.314 J/(mol·K) in SI units. In liter and atmosphere units it is 0.08206 L·atm/(mol·K). The same constant appears in both forms, and only the unit system changes.
Why must temperature be in kelvin for the gas laws?
The gas laws depend on ratios, so the temperature scale must start at zero, where particle motion would stop. Absolute zero is 0 K, which equals −273.15 °C. Using Celsius gives wrong answers because 0 °C is not zero on this scale.
Why do real gases not follow the gas laws exactly?
Real gas particles take up a small volume of their own and attract each other slightly. These effects matter at high pressure, when particles are crowded, and at low temperature, when they move slowly enough to attract. The van der Waals equation corrects for both effects.
Sources and further reading
- OpenStax, "Chemistry 2e"
- NIST, "CODATA Fundamental Physical Constants"
- Encyclopaedia Britannica, "Gas laws"
Cite this page
“Gas Laws: Boyle's, Charles's and the Ideal Gas Law Explained.” Atoms & Forces, https://science.bigworldlist.com/chemistry/gas-laws/.