Calculate pressure or volume for a gas at constant temperature and quantity using Boyle's inverse pressure-volume relationship.
ISO 8601 • Gas Laws • 2024
Boyle's law is a foundational principle in gas physics and chemistry, named after Robert Boyle who discovered it experimentally in 1662. It states that for a fixed quantity of gas at constant temperature, pressure and volume are inversely proportional: P × V = constant. Physically, this arises from molecular kinetics—at fixed temperature, molecular kinetic energy is constant. When volume decreases, molecules collide more frequently with container walls, increasing pressure. Conversely, increasing volume spreads molecules out, reducing collision frequency and lowering pressure. The relationship P1V1 = P2V2 holds exactly for ideal gases and approximately for real gases at moderate pressures. Boyle's law is one of three component laws comprising the ideal gas law (PV = nRT), alongside Charles's law (V ∝ T at constant P, n) and Avogadro's law (V ∝ n at constant P, T). Experimentally, Boyle used a J-tube with mercury, trapping air at different heights and measuring pressure-volume changes. Modern applications pervade everyday life: syringes (pull plunger out → volume increases → pressure drops → fluid drawn in); tire pressure (compress tire → volume decreases → pressure increases); scuba tanks (compressed air at high pressure → released slowly into diver's lungs where pressure is lower → expansion occurs). The law breaks down only when molecular interactions (repulsion, attraction) become significant compared to kinetic energy—at high pressures or low temperatures where real-gas effects dominate.
Mathematically, Boyle's law emerges from the ideal gas equation PV = nRT by holding n (moles) and T (absolute temperature) constant, leaving P × V = nR × T = constant. The product PV represents work done during expansion or compression; Boyle's constant PV is characteristic of a particular gas sample at fixed temperature. At standard temperature and pressure (STP: 273.15 K, 1 atm), air in a 1-liter container has PV ≈ 1 atm·L. Double the volume to 2 L (same T, n) and pressure halves to 0.5 atm. Quantitatively, this inverse relationship can be written as P = k/V (hyperbolic), where k = nRT is the Boyle constant. Graphing P vs. 1/V yields a straight line (good diagnostic for ideal behavior). Boyle's law is experimentally validated across ~4 orders of magnitude in pressure for most gases (0.01 atm to 100 atm) before deviations appear. The law assumes negligible molecular volume compared to container volume (breaks at extreme densities) and negligible intermolecular forces (breaks when van der Waals forces dominate). Modern refinements include the virial equation of state and compressibility factor Z = PV/(nRT), where Z = 1 for ideal gases and Z ≠ 1 signals deviations. Despite these limitations, Boyle's law remains the cornerstone approximation in introductory thermodynamics, practical engineering, and everyday applications involving gas behavior.
Choose Which Variable to Solve For: Select from the dropdown whether you want to find P1, V1, P2, or V2. This determines which input field becomes disabled (the unknown you're solving for). Other three fields must contain known values.
Enter Three Known Values: Fill in the initial pressure (P1), initial volume (V1), and either final pressure (P2) or final volume (V2), depending on your choice. Use consistent units—pressure units can be anything (atm, Pa, bar), but must be the same for P1 and P2. Volume units must match between V1 and V2.
Apply Rearranged Formula: The calculator algebraically solves for the unknown. To find V2: V2 = (P1 × V1) / P2. To find P2: P2 = (P1 × V1) / V2. To find V1: V1 = (P2 × V2) / P1. To find P1: P1 = (P2 × V2) / V1.
Verify Inverse Relationship: Check that the result makes physical sense. If volume increases (V2 > V1), then pressure should decrease (P2 < P1). If pressure increases, volume must decrease. This inverse relationship is the defining feature of Boyle's law.
Copy or Note the Result: The result displays in the same units as your input. Click "Copy" to copy the result to clipboard for further calculations or documentation. Use this result for downstream energy, thermodynamic, or engineering calculations.
This calculator assumes: (1) Temperature is constant throughout the process, (2) Amount of gas (number of moles) is fixed—no gas enters or leaves, (3) The gas behaves ideally (low pressure, moderate temperature), (4) Container is rigid or flexible but gas-tight. Violations: heating during compression (temperature ↑), gas escaping/entering, high-pressure effects, non-rigid containers.
Scenario: A syringe contains 10 mL of air at atmospheric pressure (1 atm). When pushed down to 2 mL, what is the new pressure inside the syringe (at constant temperature)?
Interpretation: Compressing the syringe to 1/5 of original volume increases pressure 5-fold to 5 atm. This explains why pushing a syringe feels increasingly hard—resistance rises with pressure. Practically, this demonstrates air as compressible fluid following Boyle's law. Real syringes experience slight friction and air heating during compression, causing actual pressure to be slightly lower than predicted.
Boyle's law applies only when nRT is constant. If T changes, then PV changes too, violating P1V1 = P2V2. Heating gas during compression increases pressure beyond Boyle prediction; cooling during expansion decreases pressure. Combined, temperature and pressure changes are described by the full ideal gas law PV = nRT.
Any units work as long as they're consistent. Pressure: atm, Pa, bar, psi all acceptable (just match units on both sides). Volume: liters, milliliters, cubic meters, etc. (match units). Avoid mixing atm and Pa, or L and mL on opposite sides—always ensure dimensional consistency.
Then you need the combined gas law: (P1 × V1) / T1 = (P2 × V2) / T2. If temperature T changes, Boyle's law breaks down. For example, heating a sealed container increases both pressure and temperature, making P2 ≠ P1 × V1 / V2. Always check if temperature is truly constant before applying Boyle's law.
Boyle's law applies well to ideal gases and real gases at low to moderate pressures (<~10 atm). At high pressures or low temperatures, molecular volume and intermolecular forces become significant, and the law breaks down. Hydrogen, nitrogen, oxygen follow Boyle closely; heavy gases like CO2 deviate more noticeably at high pressure.
Mathematically yes (if you use very large pressure), but physically no—volume cannot be negative. Negative results indicate you've exceeded Boyle's law's validity range or made an input error. Stop compression long before reaching zero volume; real materials fail (container ruptures, gas liquefies) before that.
Not directly from Boyle's law—tire pressure loss is due to: (1) slow gas diffusion through rubber/valve (not Boyle), (2) temperature fluctuations (combined gas law), (3) valve micro-leaks. Boyle's law predicts that if you physically compress the same tire further, pressure increases; it doesn't explain gradual pressure loss.
Inhalation: diaphragm contracts, expanding the chest cavity, increasing lung volume → pressure in lungs drops below atmospheric → air rushes in. Exhalation: diaphragm relaxes, lung volume decreases → pressure in lungs rises above atmospheric → air flows out. This is Boyle's law in action for gas exchange.
At the surface of a liquid-gas boundary, gases liquefy (e.g., propane in a tank becomes liquid), violating constant-amount assumption. In stellar interiors, extreme pressure causes matter to behave quantum-mechanically (degenerate pressure), not classically. Near absolute zero, quantum effects dominate. Boyle's law fundamentally assumes classical ideal-gas behavior.
Boyle's law describes an inverse pressure-volume relationship. Double the pressure and, under constant temperature, the volume is halved.
Related Tools
Calculate absolute humidity.
Calculate air density.
Calculate air pressure at altitude.
Calculate Boltzmann factor.
Calculate heat energy.
Calculate Carnot efficiency.