Calculators.Life Calculator
Physics

Boyle's Law Calculator

Input Parameters

Scenarios
Select which variable in Boyle's law (P₁V₁ = P₂V₂) you want to calculate
Pressure of the gas in the initial state
Volume occupied by the gas in the initial state
Pressure of the gas in the final state
Volume occupied by the gas in the final state

Computed Results

Calculated Result
200
PV Constant (Joules / N·m)200,000
Volume Change (ΔV in m³)-1
Pressure Ratio (p₂ / p₁)2

The Boyle's law calculator determines the initial or final pressure and volume of an ideal gas when its temperature is held constant. By selecting which variable to solve for, you can quickly find the missing value in the pressure-volume relationship, along with the PV constant, volume change, and pressure ratio.

How to Use the Calculator

Follow these steps to calculate the missing variable in a constant-temperature gas system:

  1. Select the variable to solve for: Choose whether you need to find the Initial Pressure (p₁), Initial Volume (V₁), Final Pressure (p₂), or Final Volume (V₂).
  2. Enter the known values: Input the three known variables into their respective fields.
  3. Choose your units: Select the correct units for each input. The calculator supports multiple pressure units (Pa, kPa, bar, psi, atm, mmHg) and volume units (m³, L, mL, cubic feet, cubic inches).
  4. Review the results: The calculator will display the missing value in your chosen unit, alongside the PV constant (in Joules), the total volume change in cubic meters, and the pressure ratio.

Formula & Explanation

Boyle's Law states that the pressure of a given mass of an ideal gas is inversely proportional to its volume, provided the temperature remains constant. The mathematical relationship is expressed as:

P₁ × V₁ = P₂ × V₂

Where:

To perform the calculation, the tool first converts all pressure inputs into Pascals (Pa) and all volume inputs into cubic meters (m³). It then isolates the selected variable to solve the equation. The PV constant is calculated by multiplying the pressure in Pascals by the volume in cubic meters, resulting in Joules (N·m).

Inputs & Outputs

FieldTypeDescription
Solve ForInputThe specific variable (p₁, V₁, p₂, or V₂) you want to calculate.
Initial Pressure (p₁)InputThe starting pressure of the gas.
Initial Volume (V₁)InputThe starting volume occupied by the gas.
Final Pressure (p₂)InputThe ending pressure of the gas after expansion or compression.
Final Volume (V₂)InputThe ending volume occupied by the gas.
Calculated ResultOutputThe value of the missing variable in the selected unit.
PV ConstantOutputThe product of pressure and volume (Joules / N·m), which remains constant.
Volume Change (ΔV)OutputThe difference between the final and initial volume, expressed in cubic meters.
Pressure Ratio (p₂ / p₁)OutputThe ratio of the final pressure to the initial pressure.

Verified Scenario Walkthroughs

Solving for Initial Pressure

If you have a final pressure of 1.5 bar and a final volume of 200 mL, and the initial volume was 500 mL, you can solve for the initial pressure in kPa. The calculator determines the initial pressure is 60 kPa. The PV constant is 30 Joules, the volume change is -0.0003 m³, and the pressure ratio is 2.5.

High Pressure Gas Compression

Consider a system where 10 cubic feet of gas at an initial pressure of 5,000 psi is compressed to a final pressure of 10,000 psi. Solving for the final volume yields 5 cubic feet. The PV constant for this system is 9,761,889.228 Joules, with a volume change of -0.141584 m³ and a pressure ratio of 2.

Small Volume Expansion

If a gas expands to a final volume of 5 L at 0.5 atm, and the initial pressure was 1 atm, solving for the initial volume gives 2.5 L. The PV constant is 253.3125 Joules, the volume change is 0.0025 m³, and the pressure ratio is 0.5.

Practical Use Cases

Boyle's Law is fundamental in understanding how gases behave under physical stress. Common applications include:

Frequently Asked Questions

What is the PV constant?

The PV constant is the product of a gas's pressure and volume. According to Boyle's Law, as long as the temperature and the amount of gas remain unchanged, this product will remain constant regardless of how the pressure or volume is altered.

Why does the calculator convert units to Pascals and cubic meters?

Pascals (Pa) and cubic meters (m³) are the standard SI units for pressure and volume. Converting all inputs to these base units ensures that the PV constant is accurately calculated in Joules (N·m) before converting the final result back into your preferred units.

What does a negative volume change mean?

A negative volume change indicates that the gas has been compressed. The final volume is smaller than the initial volume, which corresponds to an increase in pressure.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.