Gas Laws Calculator

Solve for variables using the Ideal Gas Law (PV = nRT).

Calculator by SuperCalX: formulas, worked examples and 250+ free calculators.

Your values

Result

Result (P)
1.0011 atm
P = nRT / V

Analysis

Interpretation of the current calculator output

Your result is shown in the Result panel above. The formula and a worked example further down this page explain how it was reached.

How to Use

Step-by-step instructions
  1. 1Select the variable to solve for.
  2. 2Enter the known values.
  3. 3The calculator computes the unknown variable.

Ideal Gas Law

Relates pressure (P), volume (V), amount of substance (n), and temperature (T) using the gas constant R.
PV = nRT

Variables:

PPressure (atm)
VVolume (L)
nMoles (mol)
TTemperature (K)
R0.0821 L·atm/mol·K

Example

Standard Conditions

Inputs:

n:1 mol
T:273.15 K
P:1 atm

Steps:

  1. 1.V = (1 × 0.0821 × 273.15) / 1
  2. 2.V ≈ 22.4 L
Result:
22.4 L

Gas Laws Calculator: the short answer

The ideal gas law is PV = nRT, with R = 0.08206 L·atm/(mol·K). One mole of gas at 273.15 K and 1 atm fills 22.4 L. Two moles at 300 K in a 10 L container exert about 4.92 atm. Temperature must be in kelvin: K = °C + 273.15.

  • R = 8.314 J/(mol·K) in SI units, or 0.08206 L·atm/(mol·K).
  • Real gases deviate from ideal behaviour at high pressure and low temperature.
  • The combined gas law is P₁V₁/T₁ = P₂V₂/T₂ for a fixed amount of gas.

By the SuperCalX team · Reviewed by Dr. Ahmed Mortuza Saleque, founder and editor · Last reviewed · How we check our calculators · También en español

Special cases of the ideal gas law

LawHeld constantRelationship
Boyle'sn, TP₁V₁ = P₂V₂
Charles'sn, PV₁/T₁ = V₂/T₂
Gay-Lussac'sn, VP₁/T₁ = P₂/T₂
Avogadro'sP, TV₁/n₁ = V₂/n₂

Unit tips

Everyday gas law examples

  • Tyres lose pressure in cold weather: from 20 °C to 0 °C (293 K to 273 K), pressure drops by about 7% at constant volume.
  • A balloon taken from 25 °C into a −5 °C freezer shrinks by about 10% (268 ÷ 298).
  • Scuba tanks hold about 11 L at 200 bar, which expands to about 2,200 L of air at the surface (Boyle's law).
  • Aerosol cans warn against heat because pressure rises with temperature in a fixed volume.

Worked examples

2 mol at 300 K in 10 L

  1. P = nRT ÷ V = 2 × 0.08206 × 300 ÷ 10.

4.92 atm.

Common mistakes

  • Using °C instead of kelvin.
  • Mixing R in J units with pressure in atm.

Gas Laws Calculator FAQ

What is STP?

Standard temperature and pressure. Under the older definition, 0 °C and 1 atm, where one mole occupies 22.4 L; IUPAC now uses 0 °C and 1 bar (22.7 L).

When does the ideal gas law fail?

At high pressures and low temperatures, where molecular volume and attractions matter. The van der Waals equation corrects for these.

What value of R should I use?

0.08206 L·atm/(mol·K) with atm and litres, or 8.314 J/(mol·K) with pascals and cubic metres.

What is molar volume?

The volume of one mole of gas: 22.4 L at 0 °C and 1 atm, or about 24.5 L at 25 °C and 1 atm.

What units should I use?

This calculator uses standard units: Pressure in atm, Volume in Liters, and Temperature in Kelvin. Ensure your inputs match these units.

Add this calculator to your website

Teachers, bloggers and businesses can show the Gas Laws Calculator on their own pages for free. Copy this code and paste it into your page's HTML:

Please keep the credit link so readers can find the formula, worked examples and guide.