molecalculator

Moles & Molar Mass

How to Calculate Change in Pressure

Calculator No. 01-11922 · Updated · Formula and assumptions shown below

Initial pressure (absolute) 16.83 kPa
Final pressure (absolute)
20.27 kPa
Result, rounded to 2 decimal places
Change in pressure (ΔP)
3.44 kPa
= Final pressure (absolute) − Initial pressure (absolute)
Mass of gas
2 g
Set in the form below
You enter
Mass of gas (g), Molar mass of gas (g/mol), Initial temperature (°C), Final temperature (°C), Container volume (constant) (L)
You get
Initial pressure (absolute) (kPa), Final pressure (absolute) (kPa), Change in pressure (ΔP) (kPa)
Rounding
2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This guide shows you how to calculate the change in pressure when temperature, volume, or the amount of gas changes. You’ll need the ideal gas law and a clear understanding of which variables are held constant. By the end, you’ll be able to solve for ΔP in common scenarios like heating a sealed container or compressing a gas.

Formula

The change in pressure (ΔP) is simply the final pressure minus the initial pressure:

ΔP = P2 − P1

To find P1 and P2, use the ideal gas law:

P = (n × R × T) / V

Where:

  • P = absolute pressure (in pascals, Pa; 1 kPa = 1000 Pa)
  • n = number of moles of gas = mass (g) / molar mass (g/mol)
  • R = ideal gas constant = 8.31446261815324 J/(mol·K) (which equals 8.314 kPa·L/(mol·K))
  • T = absolute temperature in kelvin (K) = °C + 273.15
  • V = volume of the container (in liters, L)

If the volume and amount of gas are constant, the change in pressure is directly proportional to the change in temperature (Gay-Lussac’s law):

P1/T1 = P2/T2 → ΔP = P1 × (T2/T1 − 1)

But the calculator above uses the full ideal gas law, so it works even if the amount of gas changes (e.g., you add or remove gas).

Worked Example

Using the default values from the calculator:

  • Mass of gas (m) = 2.0 g (air, molar mass ≈ 28.97 g/mol)
  • Molar mass (mm) = 28.97 g/mol
  • Initial temperature (t1) = 20 °C
  • Final temperature (t2) = 80 °C
  • Volume (V) = 10.0 L

Step 1: Convert temperatures to kelvin.

T1 = 20 + 273.15 = 293.15 K

T2 = 80 + 273.15 = 353.15 K

Step 2: Calculate the number of moles.

n = 2.0 g / 28.97 g/mol ≈ 0.06904 mol

Step 3: Calculate initial pressure.

P1 = (0.06904 mol × 8.314 kPa·L/(mol·K) × 293.15 K) / 10.0 L

P1 = (0.06904 × 8.314 × 293.15) / 10 ≈ 168.3 / 10 ≈ 16.83 kPa

Step 4: Calculate final pressure.

P2 = (0.06904 × 8.314 × 353.15) / 10 ≈ 202.7 / 10 ≈ 20.27 kPa

Step 5: Find the change in pressure.

ΔP = P2 − P1 = 20.27 − 16.83 = 3.44 kPa

The calculator shows ΔP = 3.44 kPa (rounded to two decimals).

Assumptions

  • The gas behaves ideally (no intermolecular forces, molecules occupy negligible volume).
  • The container volume is constant (rigid container).
  • The gas is a pure substance or a mixture with a known average molar mass.
  • Temperature is uniform throughout the gas.
  • Pressure is absolute pressure, not gauge pressure. If you have gauge pressure, add atmospheric pressure (≈101.325 kPa) first.

When to Use This Calculation

You use this calculation whenever you need to know how much the pressure changes in a gas system due to temperature changes, volume changes, or adding/removing gas. Common situations include:

  • Heating or cooling a sealed gas cylinder (e.g., a propane tank in summer vs. winter).
  • Compressing or expanding a gas in a piston (if volume changes, use the combined gas law or ideal gas law).
  • Estimating pressure changes in a scuba tank as temperature changes.
  • Laboratory experiments with gas syringes or sealed flasks.

How to Read the Result

The result ΔP is the difference between final and initial absolute pressure. A positive ΔP means pressure increased; a negative ΔP means pressure decreased. The units are kilopascals (kPa) in this calculator. You can convert to other units: 1 atm = 101.325 kPa, 1 bar = 100 kPa, 1 psi ≈ 6.89476 kPa.

Common Mistakes

  • Using Celsius instead of Kelvin: Always convert °C to K by adding 273.15. Using Celsius directly will give a completely wrong answer.
  • Confusing gauge and absolute pressure: The ideal gas law works with absolute pressure. If you have a gauge reading (relative to atmosphere), add 101.325 kPa (or 1 atm) before using it.
  • Forgetting to convert units: Ensure volume is in liters, pressure in kPa (or consistent units with R), and temperature in kelvin. Mixing mL and L will throw off the result by a factor of 1000.
  • Using the wrong gas constant: R = 8.314 J/(mol·K) works with pressure in Pa and volume in m³. If you use kPa and L, R = 8.314 kPa·L/(mol·K) is the same value because 1 J = 1 kPa·L. But if you use atm, R = 0.0820574 L·atm/(mol·K).
  • Assuming constant amount of gas when it isn’t: If gas leaks out, you must account for the change in moles.

Tips

  • Always write down the known variables and the unknown before plugging numbers.
  • Use absolute pressure (add atmospheric pressure if needed) and absolute temperature (kelvin).
  • If the volume is not constant, use the combined gas law: (P1V1)/T1 = (P2V2)/T2 (with n constant).
  • For a quick estimate when volume and moles are constant, use Gay-Lussac’s law: P2 = P1 × (T2/T1).
  • Check your answer for reasonableness: heating a gas at constant volume should increase pressure, cooling should decrease it.

Troubleshooting

Result seems too large or too small: Check your units. If you used mL instead of L, the pressure will be 1000 times too large. If you used Celsius instead of kelvin, the pressure will be off by a factor related to the temperature difference.

Negative pressure change when you expected positive: Verify that your final temperature is actually higher than the initial. Also check if you accidentally swapped t1 and t2.

Calculator shows “Cannot compute”: This happens if the input is outside the allowed range (e.g., temperature below absolute zero). Check that temperatures are above -273.15 °C.

Getting a negative absolute pressure: Absolute pressure cannot be negative. If you get a negative value, you likely used gauge pressure or the temperature is below absolute zero. Convert to absolute pressure and kelvin.

Molar mass is wrong: For air, use 28.97 g/mol. For pure gases, use the periodic table (e.g., O₂ = 32.00 g/mol, N₂ = 28.02 g/mol). If you have a mixture, use the average molar mass.

Frequently Asked Questions

Q: What is the difference between absolute pressure and gauge pressure?
A: Absolute pressure is measured relative to a perfect vacuum. Gauge pressure is measured relative to atmospheric pressure. To get absolute, add atmospheric pressure (≈101.325 kPa) to the gauge reading.

Q: Can I use this calculation for liquids?
A: No, the ideal gas law applies to gases. Liquids are nearly incompressible, so pressure changes with temperature are handled differently (thermal expansion).

Q: What if the volume changes as well?
A: Then you need the combined gas law: (P1V1)/T1 = (P2V2)/T2, assuming the amount of gas is constant. Solve for P2 and then find ΔP.

Q: Why do I need to use kelvin?
A: The Kelvin scale starts at absolute zero, where gas pressure would be zero. Using Celsius would give a linear relationship that breaks down at low temperatures and gives wrong results.

Q: How accurate is the ideal gas law?
A: It’s very accurate for most gases at low to moderate pressures and high temperatures. For high pressures or near condensation, real gas effects (van der Waals) become significant.

Q: What if the gas leaks or I add gas?
A: Then the number of moles changes. You need to know the initial and final moles. The calculator above allows you to change the mass, but if the mass changes, you must recalculate using the new mass for the final state.

Related

Formula used
in m | Mass of gas | g | 2.0 | 0
in mm | Molar mass of gas | g/mol | 28.97 | 0.001
in t1 | Initial temperature | °C | 20 | -273.15
in t2 | Final temperature | °C | 80 | -273.15
in v | Container volume (constant) | L | 10.0 | 0.000001
out p1 | Initial pressure (absolute) | kPa | (m / mm) * 8.31446261815324 * (t1 + 273.15) / v | 2
out p2 | Final pressure (absolute) | kPa | (m / mm) * 8.31446261815324 * (t2 + 273.15) / v | 2
out dp | Change in pressure (ΔP) | kPa | p2 - p1 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →