Gas pressure and volume are inversely related at constant temperature: as volume decreases, pressure increases, and vice versa. This relationship, known as Boyle’s Law, is one of the fundamental gas laws and is expressed mathematically as P₁V₁ = P₂V₂. The calculator below lets you solve for any one of these four values when the other three are known, using the ideal gas assumption.
Formula
Boyle’s Law states that for a fixed amount of gas at constant temperature, the product of pressure and volume is constant:
P₁ × V₁ = P₂ × V₂
- P₁ = initial pressure (atm, kPa, mmHg, etc.)
- V₁ = initial volume (L, mL, m³, etc.)
- P₂ = final pressure (same unit as P₁)
- V₂ = final volume (same unit as V₁)
The key is that pressure and volume units must match on both sides; temperature and amount of gas must remain constant. The calculator above uses atmospheres and liters, but you can convert to any consistent unit pair.
Worked Example
Using the default values: P₁ = 1.0 atm, V₁ = 2.0 L, P₂ = 2.0 atm, V₂ = 1.0 L. Check that the product is equal:
P₁ × V₁ = 1.0 atm × 2.0 L = 2.0 atm·L
P₂ × V₂ = 2.0 atm × 1.0 L = 2.0 atm·L
Both products are 2.0 atm·L, so the values satisfy Boyle’s Law. In practice, you would enter three known values and solve for the fourth. For example, if you have 2.0 L of gas at 1.0 atm and compress it to 1.0 L, the new pressure is:
P₂ = (P₁ × V₁) / V₂ = (1.0 × 2.0) / 1.0 = 2.0 atm
The calculator above shows the entered values directly; to solve for a missing value, you would adjust the unknown input until the products match. In a dedicated solver, you’d isolate the variable. This example confirms the inverse relationship.
Assumptions
- The gas behaves ideally (no intermolecular forces, negligible molecular volume).
- Temperature remains constant throughout the process.
- The amount of gas (number of moles) does not change.
- Pressure and volume units are consistent on both sides of the equation.
Background: The Discovery of Boyle’s Law
Robert Boyle published the law in 1662, building on earlier work by Richard Towneley and Henry Power. Boyle used a J-shaped glass tube sealed at one end, trapping air with mercury. By adding mercury, he increased the pressure on the trapped air and observed that the volume decreased proportionally. His data showed that pressure and volume were inversely related, a conclusion that was revolutionary at a time when gases were not well understood. Boyle’s Law was one of the first quantitative descriptions of gas behavior and laid the groundwork for the ideal gas law, which combines Boyle’s Law with Charles’s Law (volume-temperature), Gay-Lussac’s Law (pressure-temperature), and Avogadro’s Law (volume-moles).
How It Works: The Kinetic Molecular Theory
The kinetic molecular theory explains Boyle’s Law at the particle level. Gas particles are in constant, random motion, colliding with the walls of their container. Pressure is the force of those collisions per unit area. When the volume of a container is reduced, the particles have less space to move, so they hit the walls more frequently. At constant temperature, the average kinetic energy (and thus speed) of the particles remains the same, so each collision has the same force. More collisions per second means higher pressure. Conversely, increasing the volume gives particles more room, so they collide less often, resulting in lower pressure. This is why compressing a gas increases its pressure, and expanding it decreases pressure.
Common Problems and Misconceptions
One common mistake is forgetting to keep temperature constant. If you compress a gas quickly, it heats up (adiabatic compression), and Boyle’s Law no longer applies directly. The law only holds for isothermal processes. Another error is mixing pressure units—for example, using atm for P₁ and kPa for P₂ without converting. Always convert to the same unit before applying the formula. Also, students often confuse Boyle’s Law with Charles’s Law, which relates volume and temperature at constant pressure. A classic misconception is that pressure and volume are linearly related; they are inversely proportional, so a graph of P vs. V is a hyperbola, not a straight line. A graph of P vs. 1/V is linear.
Real-World Applications and Comparisons
Boyle’s Law is not just a textbook concept; it has practical applications in many fields:
- Scuba diving: As a diver descends, water pressure increases, reducing the volume of air in the lungs and tanks. Divers must equalize pressure to avoid lung injury.
- Syringes and pumps: Pulling the plunger increases volume, decreasing pressure, which draws fluid in. Pushing the plunger decreases volume, increasing pressure, which expels fluid.
- Breathing: The diaphragm moves down to increase chest volume, lowering pressure in the lungs, which draws air in. Exhaling reverses the process.
- Balloons: A helium balloon shrinks in cold air (temperature effect) but also responds to pressure changes—it expands at high altitudes where atmospheric pressure is lower.
- Industrial compression: Compressors rely on Boyle’s Law to increase gas pressure for storage and transport.
Compared to other gas laws, Boyle’s Law focuses solely on pressure and volume, while Charles’s Law deals with volume and temperature, and Gay-Lussac’s Law with pressure and temperature. The ideal gas law (PV = nRT) combines all these, and is more general, but Boyle’s Law is a special case when n and T are constant.
Safety and Practical Considerations
When working with gases in a laboratory, always follow your lab method, the safety data sheet (SDS) and your supervisor. Boyle’s Law calculations are for study and planning only. Never use them to design pressure vessels or gas handling systems without proper engineering oversight. High-pressure gases are dangerous; a sudden release of pressure can cause explosions or injury. Also, remember that real gases deviate from ideal behavior at high pressures and low temperatures. For most everyday calculations, the ideal gas assumption is adequate, but for precise work, use the van der Waals equation or other real gas models.
Frequently Asked Questions
What is the difference between Boyle’s Law and Charles’s Law?
Boyle’s Law describes the inverse relationship between pressure and volume at constant temperature. Charles’s Law describes the direct relationship between volume and temperature at constant pressure. In Charles’s Law, as temperature increases, volume increases proportionally (V₁/T₁ = V₂/T₂). Both are special cases of the ideal gas law.
Does Boyle’s Law apply to all gases?
Boyle’s Law is an idealization. It works well for real gases at low pressures and high temperatures, where intermolecular forces and molecular volume are negligible. At high pressures or low temperatures, real gases deviate, and the product PV is not exactly constant. For example, nitrogen at 200 atm shows a noticeable deviation.
Why does pressure increase when volume decreases?
According to kinetic theory, gas particles are in constant motion and collide with container walls. When volume decreases, the same number of particles occupy a smaller space, so they collide with the walls more frequently. More collisions per unit area per second means higher pressure, assuming the particles’ speed (temperature) stays the same.
Can Boyle’s Law be used to find the volume of a gas at a different pressure?
Yes, if you know the initial pressure and volume and the final pressure, you can solve for the final volume using V₂ = (P₁ × V₁) / P₂. This is useful in many lab situations, such as adjusting gas volumes to standard conditions (STP).
What happens if temperature changes during compression?
If temperature changes, Boyle’s Law does not apply directly. You would need to use the combined gas law (P₁V₁/T₁ = P₂V₂/T₂) or the ideal gas law. In rapid compression, temperature can rise significantly, so you must account for that effect.
Why is Boyle’s Law important in scuba diving?
As a diver descends, water pressure increases by about 1 atm per 10 meters of depth. According to Boyle’s Law, the volume of air in the lungs and in the diving tank decreases. Divers must breathe compressed air at the ambient pressure to avoid lung overexpansion or collapse. This is why divers must never hold their breath while ascending.
Related
Formula used
in p1 | Initial pressure | atm | 1.0 | 0 in v1 | Initial volume | L | 2.0 | 0 in p2 | Final pressure | atm | 2.0 | 0 in v2 | Final volume | L | 1.0 | 0 out p1c | Calculated initial pressure | atm | p1 | 3 out v1c | Calculated initial volume | L | v1 | 3 out p2c | Calculated final pressure | atm | p2 | 3 out v2c | Calculated final volume | L | v2 | 3
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Gas Volume: Definition, Units, and How to Calculate It
- pH of Phosphoric Acid: What It Is and Why It Matters
- Phosphoric Acid Formula: H₃PO₄ Explained0.2000 mol/L
- Phosphoric Acid Formula and Production0.2000 mol/L
- pH of 1M Phosphoric Acid: Exact Value & Why0.2000 mol/L
- Phosphoric Acid Formula: H₃PO₄ Explained0.2000 mol/L