Free Boyle's Law Calculator

p‍₁ × V‍₁ = p‍₂ × V‍₂

Enter any three values. The fourth will be calculated using Boyle's law: p₁V₁ = p₂V₂.

Enter values to calculate

Understanding Boyle's Law (Boyle-Mariotte Law)

Boyle's law, often referred to as the Boyle-Mariotte law, is a cornerstone of thermodynamics that describes how an ideal gas behaves when temperature is held constant. The law states that for a fixed quantity of gas at a constant temperature, the absolute pressure exerted by the gas is inversely proportional to the volume it occupies. In practical terms, if you compress a gas into a smaller space, its pressure rises proportionally, and if you allow it to expand, the pressure drops—provided the thermal conditions remain unchanged.

This relationship can be expressed mathematically as:

pV=kpV = k

where pp represents the absolute pressure, VV the volume, and kk a constant that depends on the amount of gas and the fixed temperature. For a transformation from an initial state (subscript 1) to a final state (subscript 2), the equation becomes:

p1V1=p2V2p_1 V_1 = p_2 V_2

This simple formula is the heart of any Boyle’s law calculator and enables quick computation of unknown parameters when three of the four values are known.

Using the Calculator as a Gas Pressure and Volume Tool

The tool described here functions as both a gas pressure calculator and a gas volume calculator. It is specifically tailored as an isothermal process calculator, meaning it handles only scenarios where temperature remains constant. To operate it, input any three of the four quantities—initial pressure, initial volume, final pressure, or final volume—and the missing value is computed instantly. The calculator supports a wide range of units (kPa, atm, bar, mmHg, etc., for pressure; m³, L, mL, ft³, etc., for volume), making it flexible for different fields.

Practical Examples of Isothermal Calculations

Compression of a Gas

Suppose a gas occupies 2 m32\ \text{m}^3 at a pressure of 100 kPa100\ \text{kPa}. If the gas is compressed isothermally to 1 m31\ \text{m}^3, the final pressure is:

p2=p1V1V2=100 kPa×2 m31 m3=200 kPap_2 = \frac{p_1 V_1}{V_2} = \frac{100\ \text{kPa} \times 2\ \text{m}^3}{1\ \text{m}^3} = 200\ \text{kPa}

As expected, halving the volume doubles the pressure.

Expansion of a Gas

A gas initially at 2.5 atm2.5\ \text{atm} and 6 L6\ \text{L} expands isothermally until its pressure falls to 0.2 atm0.2\ \text{atm}. The final volume is:

V2=p1V1p2=2.5 atm×6 L0.2 atm=75 LV_2 = \frac{p_1 V_1}{p_2} = \frac{2.5\ \text{atm} \times 6\ \text{L}}{0.2\ \text{atm}} = 75\ \text{L}

Balloon at Cruising Altitude

A balloon inflated at sea level (pressure 1 atm1\ \text{atm}) has a volume of 1000 cm31000\ \text{cm}^3. If it ascends to an altitude where the cabin pressure is 0.8 atm0.8\ \text{atm}, the volume becomes:

Vf=1 atm×1000 cm30.8 atm=1250 cm3V_f = \frac{1\ \text{atm} \times 1000\ \text{cm}^3}{0.8\ \text{atm}} = 1250\ \text{cm}^3

The balloon expands by 250 cm3250\ \text{cm}^3, again demonstrating Boyle’s law in action.

These examples show how the Boyle-Mariotte law calculator can quickly solve everyday problems involving gas compression and expansion.

Real-World Applications

Boyle’s law extends beyond textbook exercises into numerous practical domains:

  • Breathing: When you inhale, the diaphragm contracts, increasing lung volume. The internal pressure drops, and air rushes in from the outside. Exhalation reverses the process.
  • Syringes: Pulling the plunger enlarges the volume inside the barrel, lowering pressure and drawing fluid into the syringe.
  • Carnot Heat Engine: This idealized engine cycle includes two isothermal steps that obey Boyle’s law, helping determine the maximum theoretical efficiency.
  • Scuba Diving: As a diver ascends, the surrounding pressure decreases, causing air in the lungs and equipment to expand—a direct consequence of Boyle’s law. Divers must exhale slowly to avoid lung overexpansion.

Additional Features: Temperature and Gas Molecules

Beyond basic pressure-volume calculations, this isothermal process calculator allows you to specify the gas temperature. By opening the “Additional parameters” section, you can enter a temperature (provided the substance remains in the gas phase) and the tool will estimate the number of gas molecules in the system. This feature is useful for thermodynamic education and for cross-checking molecular quantities.

Graphical Interpretation

On a pressure-volume diagram, an isothermal process appears as a rectangular hyperbola. Each curve corresponds to a specific temperature; higher temperatures shift the curve away from the origin. The shape visually confirms the inverse relationship between pressure and volume.

Relation to Other Gas Laws

Boyle’s law is one of the three fundamental gas laws, alongside Charles’s law (constant pressure) and Gay-Lussac’s law (constant volume). Together they form the basis of the combined gas law and the ideal gas law. This Boyle’s law calculator focuses exclusively on the isothermal case, but mastering this process is essential for understanding more complex thermodynamic systems.

FAQ

1. What is Boyle's law in simple terms?

Boyle's law states that for a fixed amount of gas at constant temperature, the pressure and volume are inversely proportional. When volume decreases, pressure increases by the same factor, and vice versa.

2. How do I use the Boyle's law calculator to find final pressure?

Enter the initial pressure, initial volume, and final volume. The calculator automatically applies p2 = (p1 × V1) / V2 and displays the final pressure. Three known values are required; the fourth is computed instantly.

3. Can Boyle's law be applied when the temperature changes?

No, Boyle's law strictly describes an isothermal process (constant temperature). If temperature changes, you must use the combined gas law or ideal gas law instead.

4. Why is breathing an example of Boyle's law?

During inhalation, the diaphragm contracts, increasing lung volume. According to Boyle's law, this volume increase reduces internal pressure, allowing air to flow into the lungs. Exhalation reverses the process.

How to Use

  1. Enter any three of the four gas parameters (p₁, V₁, p₂, V₂) and select their units from the dropdown menus.
  2. Leave the fourth field empty - its value will be calculated automatically using Boyle's law.
  3. Read the calculated result on the right panel showing the missing gas parameter.