Science

Boyle's Law Calculator

Solve P1V1 = P2V2 for any unknown variable. Supports multiple pressure units (atm, kPa, mmHg, bar, psi) and volume units (L, mL, m³).

Quick Answer

P1V1 = P2V2 at constant temperature. Enter any 3 of P1, V1, P2, V2 to solve for the 4th.

Calculate

Select which variable to solve for, then enter the three known values.

P1
1 atm
V1
10 L
P2
2 atm
V2
5 L
Product P·V (constant)
10 atm·L

About This Tool

The Boyle's Law Calculator solves the equation P1V1 = P2V2 for any one of the four variables: initial pressure (P1), initial volume (V1), final pressure (P2), or final volume (V2). This relationship describes how a gas behaves when compressed or expanded at constant temperature, making it one of the most practically useful gas laws in chemistry and physics. The calculator supports multiple unit systems for both pressure and volume, performing all conversions automatically behind the scenes.

Understanding Boyle's Law

Robert Boyle published his discovery in 1662 after conducting meticulous experiments with a J-shaped glass tube partially filled with mercury. He observed that when the pressure on a trapped volume of air was doubled, the volume was halved, and vice versa. This inverse proportionality between pressure and volume at constant temperature became known as Boyle's Law. In continental Europe, it is sometimes called the Boyle-Mariotte Law, as French physicist Edme Mariotte independently discovered the same relationship in 1676. The law can be expressed as PV = k (a constant) for a given amount of gas at a fixed temperature, or equivalently as P1V1 = P2V2 when comparing two different states.

Mathematical Derivation

Boyle's Law is a special case of the ideal gas law PV = nRT. When the number of moles (n) and temperature (T) are constant, the product nRT is a constant k, so PV = k. This means that for any two states of the same gas at the same temperature: P1V1 = nRT = P2V2. The law can be rearranged to solve for any unknown: V2 = P1V1/P2, or P2 = P1V1/V2. The relationship is hyperbolic; plotting pressure vs. volume produces a hyperbola, while plotting pressure vs. 1/volume produces a straight line through the origin.

Unit Conversions

One common pitfall in gas law calculations is mixing incompatible units. This calculator supports five pressure units (atm, kPa, mmHg, bar, psi) and three volume units (L, mL, m³). The conversion factors used are: 1 atm = 101.325 kPa = 760 mmHg = 1.01325 bar = 14.696 psi, and 1 L = 1000 mL = 0.001 m³. All inputs are converted to base units (atm and L) internally before the calculation is performed, and results are converted back to your selected output units.

Real-World Applications

Boyle's Law governs countless everyday phenomena and engineering applications. Scuba divers must understand it to avoid decompression sickness: as a diver ascends, the decreasing water pressure causes dissolved gases in the blood to expand. Syringes and vacuum pumps operate on Boyle's principle. In medicine, ventilators use pressure-volume relationships to inflate and deflate the lungs. Automotive engines compress fuel-air mixtures according to Boyle's Law during the compression stroke. Even the simple act of breathing involves Boyle's Law, as the diaphragm changes lung volume to create pressure differentials that draw in or expel air.

Limitations and Deviations

Boyle's Law assumes ideal gas behavior, which means it becomes inaccurate under certain conditions. At very high pressures (above approximately 10 atm for most gases), the volume of the gas molecules themselves becomes significant relative to the container volume, causing the actual volume to be larger than Boyle's Law predicts. At very low temperatures (near the boiling point of the gas), intermolecular attractive forces become significant, causing the actual volume to be smaller than predicted. The van der Waals equation (P + a/V²)(V - b) = nRT corrects for both effects using gas-specific constants a and b. For most laboratory and everyday conditions, however, Boyle's Law provides excellent accuracy.

Relationship to Other Gas Laws

Boyle's Law is one of several empirical gas laws that together form the ideal gas law. Charles's Law describes the volume-temperature relationship at constant pressure. Gay-Lussac's Law describes the pressure-temperature relationship at constant volume. Avogadro's Law relates volume to the amount of gas at constant temperature and pressure. The combined gas law merges Boyle's, Charles's, and Gay-Lussac's Laws into P1V1/T1 = P2V2/T2, and adding Avogadro's contribution gives the full ideal gas law PV = nRT. Understanding Boyle's Law is therefore foundational to mastering gas behavior in chemistry and physics.

Frequently Asked Questions

What is Boyle's Law?
Boyle's Law states that for a fixed amount of gas at constant temperature, the pressure and volume are inversely proportional. Mathematically, P1V1 = P2V2, where P1 and V1 are the initial pressure and volume, and P2 and V2 are the final pressure and volume. This means that if you compress a gas (decrease its volume), its pressure increases proportionally, and vice versa. The law was discovered by Robert Boyle in 1662 and is one of the fundamental gas laws in chemistry and physics.
When does Boyle's Law apply?
Boyle's Law applies when two conditions are met: the temperature remains constant (isothermal process), and the amount of gas does not change (closed system). It works best for ideal gases at moderate temperatures and pressures. Real gases deviate from Boyle's Law at very high pressures (where molecular volume becomes significant) or very low temperatures (near the liquefaction point). For most everyday applications involving gases like air, nitrogen, or oxygen at room temperature, Boyle's Law provides excellent approximations.
How do I use P1V1 = P2V2 to solve problems?
To use Boyle's Law, identify which three of the four variables (P1, V1, P2, V2) you know, then solve for the unknown. For example, if a gas at 1 atm occupies 10 L and is compressed to 2 atm, you solve for V2: V2 = P1V1/P2 = (1)(10)/2 = 5 L. Make sure all pressures are in the same units and all volumes are in the same units before calculating. This calculator handles unit conversions automatically so you can mix units freely.
What are real-world examples of Boyle's Law?
Boyle's Law explains many everyday phenomena: a balloon shrinks when you take it underwater (increased water pressure compresses the air), a syringe draws fluid when you pull the plunger (increasing volume decreases internal pressure), scuba divers must ascend slowly because air in their lungs expands as water pressure decreases, and aerosol cans work because compressed gas expands when released. In medicine, Boyle's Law governs how ventilators and blood pressure cuffs work.
What is the difference between Boyle's Law and the Ideal Gas Law?
Boyle's Law (P1V1 = P2V2) is a special case of the Ideal Gas Law (PV = nRT) where temperature and amount of gas are held constant. The Ideal Gas Law is more general and can handle changes in temperature and moles simultaneously. Boyle's Law is simpler and more convenient when you only need to analyze the pressure-volume relationship at constant temperature. Both laws assume ideal gas behavior and become less accurate at extreme conditions.
Can Boyle's Law be used for liquids or solids?
No, Boyle's Law applies only to gases. Liquids and solids are nearly incompressible, meaning their volume changes very little with pressure changes. Water, for example, compresses by only about 0.005% per atmosphere of applied pressure. Gases, in contrast, are highly compressible because their molecules are far apart with lots of empty space between them. The compressibility of gases is exactly what makes the inverse pressure-volume relationship of Boyle's Law possible.

Was this tool helpful?