The pressure and volume relationship formula is Boyle’s Law: P₁V₁ = P₂V₂, meaning at constant temperature and fixed amount of gas, pressure multiplied by volume is a constant. If you know the initial pressure and volume and any one new value, the calculator below finds the missing one instantly.
Formula
Boyle’s Law is written as:
P₁V₁ = P₂V₂
where:
- P₁ = initial pressure (any unit, as long as both pressures use the same unit)
- V₁ = initial volume (any unit, as long as both volumes use the same unit)
- P₂ = final pressure
- V₂ = final volume
The product P×V stays constant only when temperature and the number of gas molecules are unchanged. This is why the calculator has no temperature input—Boyle’s Law assumes isothermal conditions.
Worked Example
Using the default values from the calculator: P₁ = 101.325 kPa, V₁ = 2.5 L, and suppose you want the final pressure when the volume is compressed to V₂ = 1.25 L.
Step 1: Write the formula: P₂ = P₁V₁ / V₂
Step 2: Plug in numbers: P₂ = (101.325 kPa × 2.5 L) / 1.25 L
Step 3: Multiply: 101.325 × 2.5 = 253.3125 kPa·L
Step 4: Divide: 253.3125 / 1.25 = 202.65 kPa
The calculator shows 202.650 kPa for the final pressure when you enter V₂ = 1.25 L. Notice that halving the volume doubles the pressure—that inverse proportionality is the heart of Boyle’s Law.
Assumptions
- The gas behaves ideally (no intermolecular forces, negligible molecular volume).
- Temperature is constant throughout the process.
- The amount of gas (number of moles) does not change.
- Pressure and volume units are consistent—the calculator uses kPa and liters, but any pair works if both sides use the same units.
When to Use Boyle’s Law
Boyle’s Law applies to any situation where a fixed amount of gas is compressed or expanded at constant temperature. Common real-world examples include:
- Syringes: pulling the plunger increases volume and decreases pressure, drawing fluid in.
- Scuba diving: as a diver descends, water pressure increases, compressing air in the tank and lungs (divers must exhale while ascending).
- Balloons: squeezing a balloon reduces its volume and raises the pressure inside.
- Bicycle pumps: compressing air in the pump cylinder raises its pressure enough to inflate a tire.
In the lab, Boyle’s Law is used to predict how a gas will behave when transferred between containers of different sizes, or when calibrating equipment that relies on gas compression.
How to Read the Result
The calculator gives you the missing value directly. If you enter initial pressure, initial volume, and final volume, the first output (P₂) is the final pressure. If you instead enter final pressure, the second output (V₂) is the final volume. Because the law is symmetric, you can also use it to find an initial value if you know the final state.
Check the units: if you mix kPa and atm, or liters and mL, the result will be off by a factor of 1000 or 101.325. Always convert to the same unit before calculating.
Common Mistakes and Misconceptions
- Forgetting to convert units: Using mL for one volume and L for the other gives a wrong answer. Convert everything to the same unit first.
- Assuming temperature stays constant: Compressing a gas quickly heats it up (adiabatic compression). Boyle’s Law only holds for slow, isothermal processes.
- Thinking pressure and volume are linearly related: They are inversely proportional—doubling pressure halves volume, not halves it by a fixed amount.
- Using absolute pressure vs. gauge pressure: In most scientific contexts, use absolute pressure (gauge pressure + atmospheric pressure). For example, a tire gauge reads 200 kPa gauge, but the absolute pressure is about 301 kPa at sea level.
Limits of Boyle’s Law
Boyle’s Law is an ideal-gas approximation. Real gases deviate at high pressures (where molecules are forced close together) and low temperatures (where intermolecular attractions become significant). For most everyday and teaching purposes, the error is small. For precise work, use the van der Waals equation or other real-gas equations of state.
Frequently Asked Questions
What is the difference between Boyle’s Law and Charles’s Law?
Boyle’s Law relates pressure and volume at constant temperature (P₁V₁ = P₂V₂). Charles’s Law relates volume and temperature at constant pressure (V₁/T₁ = V₂/T₂). They are two of the four individual gas laws; combined with Gay-Lussac’s Law (P/T constant) and Avogadro’s Law (V/n constant), they form the ideal gas law PV = nRT.
Can I use Boyle’s Law if the temperature changes?
No. Boyle’s Law requires constant temperature. If temperature changes, you must use the combined gas law (P₁V₁/T₁ = P₂V₂/T₂) or the ideal gas law. The calculator above assumes isothermal conditions.
Why does the product P×V stay constant?
For a fixed amount of gas at constant temperature, the average kinetic energy of the molecules doesn’t change. Reducing the volume increases the frequency of collisions with the container walls, raising pressure. The product P×V equals nRT (from the ideal gas law), and since n, R, and T are constant, P×V is constant.
What units should I use for pressure and volume?
Any consistent units work. Common pairs are atm with liters, kPa with liters, or mmHg with milliliters. Just make sure both pressures use the same unit and both volumes use the same unit. The calculator uses kPa and liters by default, but you can enter any values as long as you keep the units consistent.
Does Boyle’s Law apply to liquids?
No. Liquids are nearly incompressible; their volume changes very little with pressure. Boyle’s Law applies only to gases. For liquids, pressure changes have negligible volume effects under normal conditions.
How do I find the final pressure if I only know the volume change?
If you know the initial pressure and the ratio of final to initial volume (V₂/V₁), you can use P₂ = P₁ × (V₁/V₂). For example, if the volume is compressed to half its original, the pressure doubles. The calculator does this automatically when you enter the final volume.