All the Tools You Need

Gas Law Calculator - Free Online Tool

Gas Law Calculator

Solve ideal gas law (PV=nRT) and other gas laws for chemistry and physics
Calculated Pressure
0.00 atm
Primary Result
0.00 atm
Alternative Units
0.00 kPa
Gas Law Used
PV = nRT
Gas Law Formulas
PV = nRT
P: Pressure (atm, kPa, mmHg)
V: Volume (L, mL, m³)
n: Moles of gas (mol)
R: Ideal gas constant = 0.082057 L·atm/(mol·K)
T: Temperature in Kelvin (K)
People Also Ask
🤔 When is the ideal gas law not accurate?
At high pressures (above 10 atm), low temperatures (near condensation), or for polar gases (like water vapor). Use van der Waals equation for better accuracy.
🔍 How to convert between different gas constant values?
R = 0.082057 L·atm/(mol·K) = 8.31446 J/(mol·K) = 62.3637 L·mmHg/(mol·K). Choose based on your pressure units. Our calculator handles conversions automatically.
⚡ What is STP and SATP in gas calculations?
STP: 0°C (273.15K), 1 atm → molar volume = 22.414 L/mol. SATP: 25°C (298.15K), 1 bar → molar volume = 24.789 L/mol. Always specify which standard you're using!
📏 How to calculate gas density from ideal gas law?
Density = (P × M) / (R × T) where M = molar mass (g/mol). Example: Air (M=28.97 g/mol) at STP: ρ = (1 × 28.97)/(0.0821 × 273) = 1.29 g/L.
🎯 What's the difference between Boyle's, Charles's, and Gay-Lussac's laws?
Boyle: P∝1/V (T,n constant), Charles: V∝T (P,n constant), Gay-Lussac: P∝T (V,n constant). All are special cases of ideal gas law.
🔥 How do real gases differ from ideal gases?
Real gases: 1. Have molecular volume (not negligible), 2. Have intermolecular forces, 3. Deviate at high P/low T. Use van der Waals: (P + a(n/V)²)(V - nb) = nRT.
What is a Gas Law Calculator?

A Gas Law Calculator solves equations relating pressure, volume, temperature, and amount of gas in various conditions. The calculator handles the ideal gas law (PV=nRT) and its special cases (Boyle's, Charles's, Gay-Lussac's laws) for chemistry, physics, and engineering applications. These calculations are essential for predicting gas behavior under different conditions.

Why Calculate Gas Laws?

Gas law calculations are fundamental to understanding how gases behave in chemical reactions, industrial processes, weather systems, and breathing mechanics. They help predict volume changes with pressure/temperature, calculate gas amounts in reactions, design pressure vessels, and understand atmospheric phenomena.

Common applications of gas law calculations:

  • Chemical Reactions: Calculating gas volumes in stoichiometry
  • Engineering: Designing pressurized systems and containers
  • Meteorology: Understanding atmospheric pressure changes
  • Medical: Calculating oxygen requirements and ventilator settings
  • Manufacturing: Gas storage, transportation, and handling
How to Use This Calculator

Our gas law calculator supports five different gas laws with automatic unit conversion:

Five Gas Law Options:
  1. Ideal Gas Law: PV = nRT (solve for any variable)
  2. Boyle's Law: P₁V₁ = P₂V₂ (constant temperature)
  3. Charles's Law: V₁/T₁ = V₂/T₂ (constant pressure)
  4. Gay-Lussac's Law: P₁/T₁ = P₂/T₂ (constant volume)
  5. Combined Gas Law: P₁V₁/T₁ = P₂V₂/T₂ (constant moles)

Step-by-step process:

  1. Select the gas law type from the dropdown
  2. Choose which variable you want to solve for
  3. Enter the known values in the appropriate units
  4. Click "Calculate" to get instant results
  5. View detailed calculation steps and alternative units

Note: All temperature inputs are automatically converted to Kelvin for calculations, then converted back to your preferred units for display.

Gas Laws Reference Table

Different gas laws apply under different constant conditions. Here's a complete reference:

Gas LawFormulaConstant VariablesRelationshipPractical Application
Boyle's LawP₁V₁ = P₂V₂T, nP ∝ 1/VSyringes, scuba tanks
Charles's LawV₁/T₁ = V₂/T₂P, nV ∝ THot air balloons, thermometers
Gay-Lussac's LawP₁/T₁ = P₂/T₂V, nP ∝ TPressure cookers, tires
Avogadro's LawV₁/n₁ = V₂/n₂P, TV ∝ nGas stoichiometry
Combined Gas LawP₁V₁/T₁ = P₂V₂/T₂nPV/T = constantWeather balloons, gas storage
Ideal Gas LawPV = nRTR (gas constant)All variables relatedMost gas calculations
Gas Constant Values (R):

0.082057 L·atm/(mol·K) • 8.31446 J/(mol·K) • 62.3637 L·mmHg/(mol·K) • 0.0831446 L·bar/(mol·K) • 10.7316 ft³·psi/(lb-mol·°R)

Common Questions & Solutions

Below are answers to frequently asked questions about gas law calculations:

Gas Law Theory & Calculations
Why must temperature be in Kelvin for gas law calculations?

Kelvin is required because gas laws are based on absolute temperature, where 0 K represents absolute zero (no molecular motion):

Temperature Scale Comparison:
  1. Celsius: Relative scale (0°C = freezing point of water)
  2. Fahrenheit: Relative scale (32°F = freezing point of water)
  3. Kelvin: Absolute scale (0 K = absolute zero, -273.15°C)
  4. Gas volume: Directly proportional to absolute temperature, not relative
  5. Example: Doubling from 100K to 200K doubles volume, but 100°C to 200°C doesn't

Conversion formulas: K = °C + 273.15, K = (°F + 459.67) × 5/9. Our calculator handles these conversions automatically.

What are the assumptions of the ideal gas law?

The ideal gas law assumes gases behave perfectly under these conditions:

Ideal Gas Assumptions:
AssumptionReality CheckWhen it Fails
Zero molecular volumeMolecules have finite sizeHigh pressure (molecules packed)
No intermolecular forcesMolecules attract/repel each otherLow temperature (condensation)
Elastic collisionsMostly true for gasesVery high energy collisions
Random motionTrue for most conditionsStrong external fields

For non-ideal conditions, use van der Waals equation: (P + a(n/V)²)(V - nb) = nRT.

Practical Applications & Problem Solving
How do I calculate gas volume at different conditions (STP, SATP)?

Standard conditions have specific definitions for gas calculations:

StandardTemperaturePressureMolar VolumeCommon Use
STP (IUPAC)0°C (273.15 K)1 bar (100 kPa)22.711 L/molModern chemistry
STP (old)0°C (273.15 K)1 atm (101.325 kPa)22.414 L/molTraditional texts
SATP25°C (298.15 K)1 bar (100 kPa)24.789 L/molLaboratory conditions
NTP20°C (293.15 K)1 atm (101.325 kPa)24.055 L/molEngineering

To convert: Use combined gas law: V₂ = V₁ × (P₁/P₂) × (T₂/T₁). Our calculator handles these conversions automatically.

How to calculate partial pressures in gas mixtures?

Dalton's Law states that total pressure equals the sum of partial pressures:

Dalton's Law Formulas:
  1. Total pressure: Ptotal = P₁ + P₂ + P₃ + ...
  2. Partial pressure: Pi = χi × Ptotal (χ = mole fraction)
  3. Mole fraction: χi = ni / ntotal
  4. Example: Air: 78% N₂, 21% O₂, 1% Ar at 1 atm → PN₂ = 0.78 atm, PO₂ = 0.21 atm
  5. Application: Scuba diving (oxygen toxicity), anesthesia gases

Each gas behaves independently and obeys the ideal gas law for its partial pressure.

Troubleshooting & Advanced Topics
Why does my gas law calculation give impossible results?

Impossible results usually indicate input errors or physical limitations:

Common Gas Calculation Errors:
  • Wrong temperature scale: Using °C or °F instead of K in calculations
  • Unit mismatch: Using R=0.0821 with pressure in kPa instead of atm
  • Negative values: Absolute pressure/temperature can't be negative
  • Zero volume/moles: Division by zero in calculations
  • Non-ideal conditions: Using ideal gas law near condensation point
  • Inconsistent R value: Mismatch between R units and input units

Our calculator validates inputs and warns about inconsistencies. Always double-check units and temperature conversions.

How do real gas corrections work (van der Waals equation)?

The van der Waals equation corrects for molecular volume and intermolecular forces:

Van der Waals Equation:
  1. Equation: (P + a(n/V)²)(V - nb) = nRT
  2. 'a' correction: Accounts for intermolecular attraction (units: L²·atm/mol²)
  3. 'b' correction: Accounts for molecular volume (units: L/mol)
  4. Common 'a' values: He: 0.034, N₂: 1.39, CO₂: 3.59, H₂O: 5.46
  5. Common 'b' values: He: 0.0237, N₂: 0.0391, CO₂: 0.0427, H₂O: 0.0305
  6. When to use: P > 10 atm, T near boiling point, polar gases

Example: CO₂ at 100 atm, 300K: Ideal gas gives V=0.246 L/mol, van der Waals gives V=0.234 L/mol (5% correction).

Scroll to Top