Skip to main content
physics

Boyle's Law Calculator

Calculate pressure or volume changes for an ideal gas at constant temperature using Boyle's Law P₁V₁ = P₂V₂. Fundamental to gas dynamics, scuba diving, respiratory physiology, and pneumatic systems.

Reviewed by Christopher FloiedUpdated

This free online boyle's law calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Boyle's Law Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Boyle's Law Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Boyle's Law Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Boyle's Law Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
  • Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
  • Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
  • Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.

About This Calculator

The Boyle's Law Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Calculate pressure or volume changes for an ideal gas at constant temperature using Boyle's Law P₁V₁ = P₂V₂. Fundamental to gas dynamics, scuba diving, respiratory physiology, and pneumatic systems. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.

About Boyle's Law Calculator

The Boyle's Law Calculator applies the inverse relationship between pressure and volume for a gas at constant temperature. Discovered by Robert Boyle in 1662, this was one of the first quantitative gas laws. When you halve a gas's volume, its pressure doubles — and vice versa. This principle governs scuba diving (lung volume decreases with depth), pneumatic tools, syringes, bicycle pumps, and the operation of internal combustion engines. Boyle's law is exact for ideal gases and an excellent approximation for real gases at moderate pressures and temperatures.

The Math Behind It

Boyle's Law states that for a fixed amount of gas at constant temperature, pressure is inversely proportional to volume: PV = constant, or P₁V₁ = P₂V₂. **Molecular explanation**: At constant temperature, gas molecules have the same average kinetic energy. Compressing the gas into a smaller volume increases the frequency of molecular collisions with the container walls, increasing pressure proportionally. **Graphical representation**: P vs V is a hyperbola. PV vs P (or V) is a horizontal line. log P vs log V is a straight line with slope −1. **Conditions for validity**: 1. **Constant temperature** (isothermal process) 2. **Fixed amount of gas** (no leaks) 3. **Ideal gas behavior** (moderate T and P) **Deviations from ideality**: At very high pressures (molecules close together) or very low temperatures (near condensation), real gases deviate. The van der Waals equation corrects for molecular volume and intermolecular attractions. **Applications**: - **Scuba diving**: At 10 m depth (2 atm), lung volume halves. At 30 m (4 atm), it quarters. This is why divers must never hold their breath during ascent — expanding air can rupture lungs. - **Syringes**: Pulling the plunger increases volume, decreasing pressure, causing fluid to flow in. - **Weather**: Falling barometric pressure (expanding air) often indicates approaching storms. - **Breathing**: Diaphragm expansion increases lung volume, lowering pressure below atmospheric, drawing air in.

Formula Reference

Boyle's Law

P₁V₁ = P₂V₂

Variables: P₁, V₁ = initial pressure and volume; P₂, V₂ = final pressure and volume (constant T)

Worked Examples

Example 1: Scuba Tank

P₁ = 1 atm, V₁ = 6 L (lungs at surface); descend to 10 m depth (P₂ = 2 atm)

Step 1:V₂ = P₁V₁/P₂ = 1 × 6 / 2 = 3 L

Lung volume halves to 3 L at 10 m depth.

Example 2: Gas Compression

P₁ = 1 atm, V₁ = 10 L, compressed to V₂ = 5 L

Step 1:P₂ = P₁V₁/V₂ = 1 × 10 / 5 = 2 atm

Pressure doubles to 2 atm when volume is halved.

Example 3: Balloon Altitude

Balloon at 1 atm with V₁ = 1 L rises to 0.5 atm altitude

Step 1:V₂ = P₁V₁/P₂ = 1 × 1 / 0.5 = 2 L

Balloon expands to 2 L at half atmospheric pressure.

Common Mistakes & Tips

  • !Applying Boyle's law when temperature is changing — it requires constant temperature.
  • !Using gauge pressure instead of absolute pressure — always use absolute pressure in gas laws.
  • !Forgetting that this assumes a fixed amount of gas — adding or removing gas invalidates the equation.
  • !Applying it to gases near their condensation point where ideal gas behavior breaks down.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

Why must scuba divers never hold their breath while ascending?

As a diver ascends, water pressure decreases and trapped air expands (Boyle's law). If a diver holds their breath, the expanding air can rupture lung tissue — a potentially fatal condition called pulmonary barotrauma. Always exhale during ascent.

Does Boyle's law work for all gases?

It works well for real gases at moderate temperatures and pressures. At very high pressures or low temperatures, molecular interactions become significant and the van der Waals equation provides better results.

What is the historical significance of Boyle's law?

Published in 1662, it was one of the first quantitative physical laws and helped establish the concept that gases obey mathematical rules. It contributed to the development of the kinetic theory of gases and modern thermodynamics.