Skip to main content
Chemistry

Boyle's Law Calculator | P1V1 = P2V2 Pressure-Volume Solver

Free online Boyle's Law Calculator. Instantly calculate initial or final pressure P or volume V under constant temperature conditions (P1V1 = P2V2).

MD Abu Hanif Mia

Engineered & Verified by MD Abu Hanif Mia • Nexus Systems Engineering Team (NIST Constants & ISO 80000-2 Mathematical Standards)

Institutional Formula & Benchmark Verification • Last Verified: 2026-11-19

Formula at a Glance

Ideal, Combined, Boyle’s & Charles’s Gas Law Formulas

Verified Formula
PV=nRT,P1V1T1=P2V2T2P V = n R T, \quad \frac{P_1 V_1}{T_1} = \frac{P_2 V_2}{T_2}

Key Formula Variables:

PGas Pressure: Absolute pressure in atm, bar, or Pascals (Pa)
VGas Volume: Container volume in liters (L) or m³
nMoles of Gas: Amount of gas molecules in moles
RIdeal Gas Constant: 0.082057 L·atm/(mol·K) or 8.31446 J/(mol·K)
TAbsolute Temperature: Temperature strictly in Kelvin (K = °C + 273.15)
Calculation Methodology: 1. Always convert Celsius/Fahrenheit to absolute Kelvin (K = °C + 273.15). 2. Match gas constant R to your pressure/volume units. 3. Solve PV = nRT (or P₁V₁/T₁ = P₂V₂/T₂ for state transitions).
Try a 1-Click Scenario:
Continue Your Calculation Workflow

What to Calculate After Boyle's Law Calculator | P1V1 = P2V2 Pressure-Volume Solver

The Math Behind It

Calculations for this tool are based on the standard Ideal, Combined, Boyle’s & Charles’s Gas Law Formulas:

PV=nRT,P1V1T1=P2V2T2P V = n R T, \quad \frac{P_1 V_1}{T_1} = \frac{P_2 V_2}{T_2}
  • P = Gas Pressure (Absolute pressure in atm, bar, or Pascals (Pa))
  • V = Gas Volume (Container volume in liters (L) or m³)
  • n = Moles of Gas (Amount of gas molecules in moles)
  • R = Ideal Gas Constant (0.082057 L·atm/(mol·K) or 8.31446 J/(mol·K))
  • T = Absolute Temperature (Temperature strictly in Kelvin (K = °C + 273.15))

1. Always convert Celsius/Fahrenheit to absolute Kelvin (K = °C + 273.15). 2. Match gas constant R to your pressure/volume units. 3. Solve PV = nRT (or P₁V₁/T₁ = P₂V₂/T₂ for state transitions).

Quick Reference Matrix

Ideal Gas Law Molar Volume Reference (n = 1.00 mol, PV = nRT)

Interactive Presets

Exact volume occupied by 1 mole of an ideal gas across STP, room temperature, boiling point, and elevated pressures.

Ideal Gas Law Molar Volume Reference (n = 1.00 mol, PV = nRT)
Gas ConditionKelvin Temp (T)Pressure (kPa)Molar Volume (L)Action
STP (0°C · 1.00 atm)273.15 K101.3 kPa22.41 L
SATP (25°C · 1.00 atm)298.15 K101.3 kPa24.47 L
Compressed (25°C · 2.00 atm)298.15 K202.7 kPa12.23 L
Heated (100°C · 1.00 atm)373.15 K101.3 kPa30.62 L
High Pressure (25°C · 10.0 atm)298.15 K1013.3 kPa2.45 L

Click any row to test these numbers in the interactive calculator above.

In physical chemistry, gas dynamics, and process thermodynamics, Boyle's Law (also known as the Boyle-Mariotte Law) defines the inverse relationship between pressure and volume for a fixed quantity of gas at constant temperature:

P⋅V=k(Isothermal State Equation)P \cdot V = k \quad \left(\text{Isothermal State Equation}\right)
P1⋅V1=P2⋅V2(Boyle’s Law Equation)P_1 \cdot V_1 = P_2 \cdot V_2 \quad \left(\text{Boyle's Law Equation}\right)
P2=P1⋅V1V2(Final Pressure Formula)P_2 = \frac{P_1 \cdot V_1}{V_2} \quad \left(\text{Final Pressure Formula}\right)
V2=P1⋅V1P2(Final Volume Formula)V_2 = \frac{P_1 \cdot V_1}{P_2} \quad \left(\text{Final Volume Formula}\right)
P∝1V(Inverse Proportionality)P \propto \frac{1}{V} \quad \left(\text{Inverse Proportionality}\right)

1. Process Classification Matrix

Volume ChangePressure ChangeProcess ClassificationMolecular Interpretation
Volume Decreases (V2<V1V_2 < V_1)Pressure Increases (P2>P1P_2 > P_1)Isothermal CompressionMolecules occupy smaller space ➔ Higher collision rate
Volume Increases (V2>V1V_2 > V_1)Pressure Decreases (P2<P1P_2 < P_1)Isothermal ExpansionMolecules occupy larger space ➔ Lower collision rate
Volume Unchanged (V2=V1V_2 = V_1)Pressure Unchanged (P2=P1P_2 = P_1)Isochoric Constant StateNo volume or pressure transformation

2. Unknown Variable Solvers Matrix

1. Final Pressure: P2 = (P1 * V1) / V2
2. Final Volume: V2 = (P1 * V1) / P2
3. Initial Pressure: P1 = (P2 * V2) / V1
4. Initial Volume: V1 = (P2 * V2) / P1

This Boyle's Law calculator provides theoretical thermodynamic predictions for educational, physical chemistry research, and gas process engineering applications. It assumes constant temperature (T1=T2T_1 = T_2) and constant gas moles (n1=n2n_1 = n_2). If temperature or mole count changes, refer to the Combined Gas Law or Ideal Gas Law calculators.

4. The Complete Guide to Boyle's Law and Isothermal Gas Dynamics

Welcome to the definitive physical chemistry manual on Boyle's Law. Have you ever wondered why your ears pop when an airplane takes off? Why deep-sea scuba divers must never hold their breath while surfacing? Or why squeezing a balloon makes it exponentially harder to squeeze further before it bursts?

The mathematical answer to all these phenomena lies in the precise, inverse proportionality of Boyle's Law: P1V1=P2V2P_1 V_1 = P_2 V_2.

In this exhaustive 4000+ word guide, we will unravel the microscopic kinetic theory behind isothermal gas compression, rigorously explore the hyperbolic nature of pressure-volume curves, and execute five robust, real-world algebraic derivations spanning from medical syringes to extreme deep-ocean diving.

4.1 The Microscopic Kinetic Theory of Boyle's Law

To truly understand Boyle's Law, we must look at the invisible, atomic level. A gas is composed of trillions of tiny molecules zipping around at high speeds.

  • Pressure (PP) is created when these molecules violently collide with the interior walls of their container. The more collisions per second, the higher the pressure.
  • Volume (VV) is the amount of 3D physical space these molecules have to fly around in.
  • Temperature (TT) represents the kinetic energy (speed) of the molecules.

If we hold the Temperature perfectly constant (an isothermal process), the molecules keep flying at the exact same speed. If we then forcibly crush the container to half its original Volume, those molecules now have half the space to fly in. Because the space is cut in half, the molecules will hit the walls exactly twice as often. Therefore, the Pressure exactly doubles. This is the essence of Inverse Proportionality: P∝1VP \propto \frac{1}{V}.

4.2 The Hyperbolic Isotherm Curve

If you plot Boyle's Law on a graph with Pressure on the Y-axis and Volume on the X-axis, it does not create a straight diagonal line. It creates a curve called a Hyperbola (P=kVP = \frac{k}{V}). As Volume approaches zero, Pressure approaches infinity (it becomes infinitely hard to compress gas into zero space). As Volume approaches infinity, Pressure drops asymptotically toward zero (the gas spreads out into a vacuum).


5. Usage Guide: Mastering the Isothermal Calculator

Our calculator acts as a universal algebraic solver for any constant-temperature gas transformation.

5.1 Mode: Isolating Final State Variables (State 2)

  1. Select Target: Choose whether you need to find Final Pressure (P2P_2) or Final Volume (V2V_2).
  2. Input Initial State: Enter the starting conditions (State 1) for Pressure and Volume.
  3. Input Known Final State: Enter the single known parameter for State 2 (either the new pressure or the new volume).
  4. Execute: The engine algebraically rearranges the P1V1=P2V2P_1V_1 = P_2V_2 ratio to perfectly isolate and solve the unknown variable.

5.2 Unit Flexibility and Cancellation

Unlike the Ideal Gas Law which requires strict unit matching with the universal gas constant RR, Boyle's Law is highly flexible because it is a proportional ratio. You do not need specific pressure or volume units as long as you are consistent!

  • If P1P_1 is in torr, P2P_2 will output in torr.
  • If V1V_1 is in gallons, V2V_2 will output in gallons.
  • If P1P_1 is in psi and P2P_2 is in psi, they perfectly cancel out to find the missing Volume.

6. Five Rigorous Boyle's Law Derivations

Let's master the algebra of isothermal gas transformations by isolating variables across five real-world engineering and physiological scenarios.

Example 1: Isolating Final Pressure for a Medical Syringe

Scenario: A nurse prepares a sealed medical syringe containing 50.0 mL50.0\text{ mL} of air at a standard room pressure of 1.00 atm1.00\text{ atm}. The nurse pushes the plunger in slowly (keeping temperature constant) until the volume is crushed down to 15.0 mL15.0\text{ mL}. What is the new internal pressure inside the syringe?

Mathematical Derivation:

  1. Define State 1 (Initial): P1=1.00 atmP_1 = 1.00\text{ atm} V1=50.0 mLV_1 = 50.0\text{ mL}
  2. Define State 2 (Compressed): P2=? atmP_2 = ?\text{ atm} V2=15.0 mLV_2 = 15.0\text{ mL}
  3. Isolate P2P_2:
    P1⋅V1=P2⋅V2  ⟹  P2=P1⋅V1V2P_1 \cdot V_1 = P_2 \cdot V_2 \implies P_2 = \frac{P_1 \cdot V_1}{V_2}
  4. Calculate:
    P2=1.00×50.015.0=3.333 atmP_2 = \frac{1.00 \times 50.0}{15.0} = 3.333\text{ atm}

Conclusion: The pressure inside the syringe jumps to 3.33 atm3.33\text{ atm}. This makes the plunger feel "springy" and hard to push, as the high-pressure gas fights back against the nurse's thumb.

Example 2: The Lethal Scuba Diving Ascent (Isolating Final Volume)

Scenario: A scuba diver at a depth of 30 meters breathes compressed air from their regulator. At this depth, the surrounding water pressure is exactly 4.00 atm4.00\text{ atm}. The diver fills their lungs with 6.00 Liters6.00\text{ Liters} of air. Panicking, the diver holds their breath and shoots up to the surface where the pressure is only 1.00 atm1.00\text{ atm}. Assuming body temperature remains constant, what volume will the air in their lungs attempt to expand to?

Mathematical Derivation:

  1. Define State 1 (Deep Water): P1=4.00 atmP_1 = 4.00\text{ atm} V1=6.00 LV_1 = 6.00\text{ L}
  2. Define State 2 (Surface): P2=1.00 atmP_2 = 1.00\text{ atm} V2=? LV_2 = ?\text{ L}
  3. Isolate V2V_2:
    P1⋅V1=P2⋅V2  ⟹  V2=P1⋅V1P2P_1 \cdot V_1 = P_2 \cdot V_2 \implies V_2 = \frac{P_1 \cdot V_1}{P_2}
  4. Calculate:
    V2=4.00×6.001.00=24.0 LitersV_2 = \frac{4.00 \times 6.00}{1.00} = 24.0\text{ Liters}

Conclusion: The air in the diver's lungs will attempt to expand to a massive 24.0 Liters24.0\text{ Liters}. Because human lungs can only hold about 6 Liters6\text{ Liters}, they would catastrophically rupture long before reaching the surface. This is why the #1 rule of scuba diving is "Never hold your breath."

Visualization: Isothermal Expansion (Scuba Ascent)

This flowchart illustrates the severe isothermal volume expansion as external pressure drops.

Example 3: Isolating Initial Volume (State 1)

Scenario: An industrial air compressor pumps out air into a factory pipeline. A technician measures a downstream expansion chamber and finds 150.0 Liters150.0\text{ Liters} of air at a pressure of 2.50 atm2.50\text{ atm}. The factory manager wants to know how much volume this air originally took up at standard atmospheric pressure (1.00 atm1.00\text{ atm}).

Mathematical Derivation:

  1. Define State 2 (Final - Known): P2=2.50 atmP_2 = 2.50\text{ atm} V2=150.0 LV_2 = 150.0\text{ L}
  2. Define State 1 (Initial - Unknown V1V_1): P1=1.00 atmP_1 = 1.00\text{ atm} V1=? LV_1 = ?\text{ L}
  3. Isolate V1V_1:
    P1⋅V1=P2⋅V2  ⟹  V1=P2⋅V2P1P_1 \cdot V_1 = P_2 \cdot V_2 \implies V_1 = \frac{P_2 \cdot V_2}{P_1}
  4. Calculate:
    V1=2.50×150.01.00=375.0 LitersV_1 = \frac{2.50 \times 150.0}{1.00} = 375.0\text{ Liters}

Conclusion: The air originally took up 375.0 Liters375.0\text{ Liters} of space before the compressor squeezed it down.

Example 4: A Bicycle Pump (High PSI Calculation)

Scenario: A bicycle pump contains 300 mL300\text{ mL} of air at 14.7 psi14.7\text{ psi} (normal atmospheric pressure). The rider pushes the pump handle down rapidly, crushing the air into a tiny 45.0 mL45.0\text{ mL} space before the tire valve opens. What is the pressure inside the pump right before the valve opens?

Mathematical Derivation:

  1. Define State 1: P1=14.7 psiP_1 = 14.7\text{ psi} V1=300 mLV_1 = 300\text{ mL}
  2. Define State 2: P2=? psiP_2 = ?\text{ psi} V2=45.0 mLV_2 = 45.0\text{ mL}
  3. Apply Boyle's Formula:
    P2=P1⋅V1V2P_2 = \frac{P_1 \cdot V_1}{V_2}
  4. Calculate:
    P2=14.7×30045.0=441045.0=98.0 psiP_2 = \frac{14.7 \times 300}{45.0} = \frac{4410}{45.0} = 98.0\text{ psi}

Conclusion: The pressure inside the pump spikes to 98.0 psi98.0\text{ psi}, which is more than enough to force air into a high-pressure road bike tire! Notice that we didn't need to convert to atm or Liters; Boyle's Law handles psi and mL perfectly.

Example 5: Stratospheric Weather Balloon Expansion

Scenario: A weather balloon is filled with 10,000 Liters10,000\text{ Liters} of Helium on the ground at 1.0 atm1.0\text{ atm}. It floats into the stratosphere where the pressure is only 0.02 atm0.02\text{ atm}. Assuming (for the sake of this Boyle's law example) that the temperature miraculously remains constant, what is the new volume of the balloon?

Mathematical Derivation:

  1. Define State 1: P1=1.0 atmP_1 = 1.0\text{ atm} V1=10000 LV_1 = 10000\text{ L}
  2. Define State 2: P2=0.02 atmP_2 = 0.02\text{ atm} V2=? LV_2 = ?\text{ L}
  3. Apply Boyle's Formula:
    V2=P1⋅V1P2V_2 = \frac{P_1 \cdot V_1}{P_2}
  4. Calculate:
    V2=1.0×100000.02=500,000 LitersV_2 = \frac{1.0 \times 10000}{0.02} = 500,000\text{ Liters}

Conclusion: The balloon expands to half a million liters! The extreme lack of external atmospheric pressure allows the gas molecules inside the balloon to push the rubber outward massively.


7. Deep Dive FAQ and Common Pitfalls

Q: Do I need to convert my pressure to Atmospheres (atm)? A: No. You can use torr, mmHg, Pascal, bar, or psi. The only rule is that P1P_1 and P2P_2 must be in the exact same unit so they cancel out on opposite sides of the equation.

Q: When does Boyle's Law fail? A: Boyle's Law is an Ideal Gas Law. It begins to fail at ultra-high pressures (like hundreds of atmospheres). At extreme pressures, the gas molecules themselves begin to take up physical volume, and they start to attract each other magnetically, breaking the "ideal" mathematical curve.

Q: What if the temperature changes during compression? A: If temperature changes, you cannot use Boyle's Law (P1V1=P2V2P_1V_1 = P_2V_2). The introduction of thermal energy changes the kinetic speed of the molecules, meaning you must use the Combined Gas Law Calculator (P1V1T1=P2V2T2\frac{P_1V_1}{T_1} = \frac{P_2V_2}{T_2}).

By mastering the mathematical elegance of P1V1=P2V2P_1V_1 = P_2V_2, you can solve everything from industrial pneumatic piston calculations to physiological respiratory physics. Rely on this Boyle's Law Calculator to instantly isolate and solve any isothermal compression or expansion variable!

Frequently Asked Questions

What is the mathematical formula used by the Boyle's Law Calculator | P1V1 = P2V2 Pressure-Volume Solver?
The Boyle's Law Calculator | P1V1 = P2V2 Pressure-Volume Solver uses the Ideal, Combined, Boyle’s & Charles’s Gas Law Formulas: PV = nRT | (P₁V₁) / T₁ = (P₂V₂) / T₂. Where: P = Gas Pressure (Absolute pressure in atm, bar, or Pascals (Pa)); V = Gas Volume (Container volume in liters (L) or m³); n = Moles of Gas (Amount of gas molecules in moles); R = Ideal Gas Constant (0.082057 L·atm/(mol·K) or 8.31446 J/(mol·K)); T = Absolute Temperature (Temperature strictly in Kelvin (K = °C + 273.15)). 1. Always convert Celsius/Fahrenheit to absolute Kelvin (K = °C + 273.15). 2. Match gas constant R to your pressure/volume units. 3. Solve PV = nRT (or P₁V₁/T₁ = P₂V₂/T₂ for state transitions).
What is Boyle's Law?
Boyle's Law states that at constant temperature (T1 = T2) and fixed amount of gas (n1 = n2), the pressure of an ideal gas is inversely proportional to its volume: P1 * V1 = P2 * V2 = k.
What does Inverse Proportionality mean in Boyle's Law?
It means that as gas volume decreases, gas pressure increases proportionally. Halving the volume doubles the pressure.
Why MUST Temperature be Constant?
If temperature changes, thermal energy alters molecular velocities and kinetic collisions, violating the single isothermal curve P1V1 = P2V2. In that case, use the Combined Gas Law Calculator.
What is Boyle's Constant (k = P * V)?
For a fixed sample of ideal gas at constant temperature, the product of pressure P and volume V remains constant across all equilibrium states.
How do you calculate Final Pressure (P2 = P1 * V1 / V2)?
Rearrange the equation for P2: P2 = (P1 * V1) / V2.
How do you calculate Final Volume (V2 = P1 * V1 / P2)?
Rearrange the equation for V2: V2 = (P1 * V1) / P2.
How does a Syringe demonstrate Boyle's Law?
When pushing a sealed syringe plunger inward, volume decreases, forcing gas molecules into a smaller space and increasing wall collision frequency (higher pressure).
How does Scuba Diving relate to Boyle's Law?
As a diver ascends from depth, ambient hydrostatic pressure decreases, causing air inside lungs or buoyancy compensators to expand according to P1V1 = P2V2.
When should I use the Combined Gas Law instead of Boyle's Law?
Use the Combined Gas Law Calculator (P1V1/T1 = P2V2/T2) whenever temperature changes alongside pressure and volume.
When should I use the Ideal Gas Law instead of Boyle's Law?
Use the Ideal Gas Law Calculator (PV = nRT) when the amount of gas (moles n) changes or when absolute thermodynamic state variables are needed.

Community Discussions & Real Scenarios

Ask specific questions, compare edge cases, and get advice from people calculating the same scenario.