Saved

Press the star next to a tool's name to save it.

All my tools

Boyle's Law Calculator

Use this Boyle's law calculator to find a missing pressure, volume, temperature or moles with the gas laws of Boyle, Charles, Gay-Lussac and Avogadro, a partial pressure, and gas density.

Restored your last values ·

Choose a gas law and fill in three of its four boxes. The empty box is the one that is calculated. Use the same units for both states. The other modes give a partial pressure, the density or the molar mass of a gas, and the molar volume.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose a law, fill in three of the four boxes, then press Calculate.

See full result

A Boyle's law calculator finds the missing pressure or volume of a gas when the temperature and the amount of gas stay the same. The same page covers the other simple gas laws, those of Charles, Gay-Lussac and Avogadro, and it works out a partial pressure with Dalton's law, the density or molar mass of a gas, and the molar volume at a temperature and pressure. Pick the law, fill in three of the four boxes and read the answer.

How to use the Boyle's law calculator

  1. Choose the law that fits what stays constant.
  2. Fill in three of the four boxes. The empty one is calculated.
  3. For the Charles and Gay-Lussac laws, choose kelvin or Celsius.
  4. Press Calculate.

Boyle's law

Boyle's law says that the product of the pressure and the volume of a gas is constant at a constant temperature, so P₁V₁ = P₂V₂ [2]. If 2 litres of gas at 100 kPa expands until the pressure is 50 kPa, the volume doubles to 4 litres. The law needs a fixed amount of an ideal gas, and the pressure and the volume can be in any units as long as both states use the same ones.

Charles's law

Charles's law says that the volume of a gas divided by its absolute temperature is constant at a constant pressure, so V₁/T₁ = V₂/T₂, with the temperature measured in kelvins [3]. Heat 2 litres of gas from 300 K to 450 K and it grows to 3 litres. If you enter Celsius, the calculator adds 273.15 before it divides and then converts the answer back, which is why a gas at 0 °C that doubles its volume ends at 273.15 °C.

Gay-Lussac's law

Gay-Lussac's law, the pressure and temperature law, says that P₁/T₁ = P₂/T₂ at a constant volume, with the temperature absolute [4]. A sealed container at 100 kPa and 300 K that is heated to 600 K reaches 200 kPa. This is the reason a closed can of gas must not be heated.

Avogadro's law

Avogadro's law says that at a constant temperature and pressure, the volume of a gas is proportional to the amount of gas, V₁/n₁ = V₂/n₂ [5]. Three times the moles take three times the volume: 2 litres holding 1 mole becomes 6 litres for 3 moles. The page shows that the molar volume follows from the ideal gas law as RT divided by P [5].

Dalton's law

Dalton's law says that the total pressure of a mixture of non-reacting gases is the sum of the partial pressures, and that the partial pressure of a gas is the total pressure times its mole fraction [6]. In a mixture of 4 moles in all, with 1 mole of one gas, at a total pressure of 100 kPa, the partial pressure of that gas is 25 kPa. Enter the total pressure, the moles of the gas and the total moles.

Molar volume and the gas constant

The ideal gas law is PV = nRT, with R equal to 8.3144598 kPa litres per mole per kelvin [1]. The molar volume is RT divided by P. At 273.15 K and 100 kPa it is about 22.711 litres per mole, and at 273.15 K and 101.325 kPa it is about 22.414 litres per mole [5]. The calculator uses the temperature and pressure that you enter.

Standard temperature and pressure

The definition of standard temperature and pressure has changed. Until 1982, IUPAC defined it as 273.15 K and an absolute pressure of exactly one standard atmosphere, 101.325 kPa, and since 1982 it has been 273.15 K and exactly 1 bar, which is 100 kPa [7]. NIST uses 20 °C and 1 atm [7]. Always state which definition you use. The molar volume mode lets you try any of them.

Density and molar mass

The density of an ideal gas is the pressure times the molar mass, divided by the gas constant times the temperature. Air at 0 °C and 101.325 kPa with a molar mass of 28.96 grams per mole has a density of about 1.293 grams per litre. The reverse gives the molar mass from a measured density. These two forms follow from the ideal gas law and are our own working, since the pages that we read do not write them out.

Choosing the right law

Ask which quantity stays constant. If the temperature and the amount of gas are fixed and you change the pressure or the volume, use Boyle's law. If the pressure is fixed and the temperature changes, use Charles's law. If the volume is fixed, as in a sealed rigid container, use the pressure and temperature law. If you add or remove gas at a fixed temperature and pressure, use Avogadro's law. When two or more quantities change together, combine the laws through the ideal gas law, PV = nRT, which this page uses for the density and molar volume modes.

Typical uses

Divers use Boyle's law to see how the volume of air in the lungs or a bag changes with depth. Engineers use the pressure and temperature law to check the pressure rise in a sealed tank. Chemists use partial pressures to describe a mixture of gases above a liquid.

Common mistakes

  • Using Celsius in the ratio laws. The temperature must be in kelvins. Use the Celsius option to let the calculator convert.
  • Leaving more than one box empty. The calculator needs exactly one unknown.
  • Mixing units between the states. Use the same pressure unit and the same volume unit in both.
  • Applying a law with the wrong constant. Boyle needs a fixed temperature, Charles a fixed pressure.

What next

Use this often? Add Boyle's Law to your Home screen.

Frequently asked questions

What is a Boyle's law calculator?

A tool that finds the missing pressure or volume of a gas at a constant temperature, with the other simple gas laws and a few related gas calculations.

What is the formula for Boyle's law?

P₁V₁ = P₂V₂. If 2 litres at 100 kPa is expanded to 50 kPa, the volume becomes 4 litres.

What is Charles's law?

The volume of a gas divided by its absolute temperature is constant at a constant pressure: V₁/T₁ = V₂/T₂.

How do I find a partial pressure?

Multiply the total pressure by the mole fraction of the gas. 1 mole in 4 moles at 100 kPa is 25 kPa.

What is the molar volume of a gas at STP?

About 22.711 litres per mole at 273.15 K and 100 kPa, and 22.414 litres per mole at 273.15 K and 101.325 kPa.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools