Gas Laws Calculator - Ideal, Boyle's, Charles's & Combined Gas Law

Calculate gas pressure, volume, absolute temperature, and molar amount using the Ideal Gas Law, Boyle's, Charles's, Gay-Lussac's, and Combined Gas Laws.

Reviewed by Best Calculators Editorial Team Updated: Free Tool

Gas Equation of State Solver

R = 0.082057 L·atm/(mol·K)
Instructions: Leave exactly one field blank to solve for that unknown variable. All temperatures (T) must be entered in absolute Kelvin (K = °C + 273.15).

Thermodynamic State

NIST CODATA
Volume (V)
22.4139 L
Ideal Gas Law (PV = nRT)
SI Equivalent 0.0224 m³ Metric SI Unit
PV Energy Product 2,271.1 J 1 L·atm = 101.325 J
Compression / Expansion Index 100% STP Volume
Physics Takeaway: At 1.00 atm and 273.15 K (STP), 1.00 mol of ideal gas occupies 22.4139 L (2,271.1 Joules of PV work energy).

What Is a Gas Laws Calculator?

A Gas Laws Calculator is a thermodynamic and physical chemistry solver that computes the macroscopic state variables of a gas—absolute pressure (P), container volume (V), molar quantity (n), and absolute temperature (T)—across five classical equations of state. Developed from seventeenth- and eighteenth-century pneumatic experiments by Robert Boyle, Jacques Charles, Joseph Louis Gay-Lussac, and Amedeo Avogadro, these laws describe how kinetic gas particles behave inside sealed or expandable vessels.

When solving problems where gas quantities are given in grams rather than moles, first divide the gas mass by its molecular weight using our Mole & Molar Mass Calculator before running the Ideal Gas Law.

  • Chemical Reactor & Headspace Design: Calculate peak vessel pressures when heating volatile gases inside fixed-volume autoclaves and cylinders.
  • Atmospheric & Meteorological Modeling: Predict how rising air parcels expand and cool adiabatically or under the Combined Gas Law as barometric pressure drops with altitude.
  • Scuba Diving & Hyperbaric Engineering: Quantify lung volume compression and tank air consumption across underwater depth pressure gradients.
  • HVAC & Pneumatic System Sizing: Determine volumetric flow corrections between standard cubic feet per minute (SCFM) and actual operating temperatures.

How the Gas Laws Work: Governing Equations & Examples

Each classical gas law holds one or two thermodynamic variables constant while evaluating how the remaining variables co-vary. When a chemical reaction produces or consumes a gas, you can link the molar output from our Stoichiometry Reaction Calculator directly into the Ideal Gas Law to find evolved gas volume.

Five Governing Gas Law Equations:
Ideal Gas Law: P × V = n × R × T
Boyle's Law (Constant n, T): P₁V₁ = P₂V₂
Charles's Law (Constant n, P): V₁ ÷ T₁ = V₂ ÷ T₂
Gay-Lussac's Law (Constant n, V): P₁ ÷ T₁ = P₂ ÷ T₂
Combined Gas Law (Constant n): (P₁ × V₁) ÷ T₁ = (P₂ × V₂) ÷ T₂
Worked Numerical Scenario 1 (Ideal Gas Law at 25°C):

Problem: Calculate the pressure exerted by 2.00 mol of nitrogen gas confined inside a 10.0 L rigid steel cylinder at 25.0°C (298.15 K).

  1. Rearrange PV = nRT for Pressure (P): P = (n × R × T) ÷ V.
  2. Substitute Known Values: P = (2.00 mol × 0.082057 L·atm/(mol·K) × 298.15 K) ÷ 10.0 L.
  3. Compute Result: P = 48.9306 L·atm ÷ 10.0 L = 4.8931 atm (495.8 kPa).
Worked Numerical Scenario 2 (Combined Gas Law High-Altitude Balloon):

Problem: A weather balloon is inflated to V₁ = 100.0 L at sea level (P₁ = 1.00 atm, T₁ = 300.0 K) and ascends to the stratosphere where P₂ = 0.25 atm and T₂ = 240.0 K. Find V₂.

  1. Rearrange Combined Gas Law for V₂: V₂ = (P₁ × V₁ × T₂) ÷ (T₁ × P₂).
  2. Substitute Values: V₂ = (1.00 × 100.0 × 240.0) ÷ (300.0 × 0.25) = 24,000 ÷ 75 = 320.0 L.
Worked Numerical Scenario 3 (Boyle's Law Pneumatic Cylinder Compression):

Problem: An isothermal air compressor intake cylinder draws V₁ = 10.0 L of dry air at P₁ = 1.00 atm and compresses it to a final clearance volume of V₂ = 4.00 L at constant temperature. Calculate final pressure P₂ and PV work energy.

  1. Apply Boyle's Law (P₁V₁ = P₂V₂): P₂ = (P₁ × V₁) ÷ V₂ = (1.00 atm × 10.0 L) ÷ 4.00 L = 2.5000 atm (253.3 kPa).
  2. Verify Constant PV Product: P₁V₁ = P₂V₂ = 10.0 L·atm. Multiplying by 101.325 J/(L·atm) confirms an internal PV energy state of 1,013.25 Joules.

In industrial chemical engineering and atmospheric physics, the Ideal Gas Law also links gas density (ρ = m / V) directly to molar mass (M) through the modified form P × M = ρ × R × T. This relationship explains why hot air rises in cold surroundings and why low-molar-mass gases like helium (4.003 g/mol) generate strong aerostatic buoyancy in air (average M ≈ 28.97 g/mol).

According to NIST CODATA Fundamental Physical Constants, the universal molar gas constant R is defined exactly as 8.314462618 J/(mol·K), which converts to 0.082057366 L·atm/(mol·K) when pressure is measured in standard atmospheres.

Key Kinetic Theory Concepts & Gas Constant Reference

The macroscopic gas laws emerge directly from the Kinetic Molecular Theory of Gases, which models gas pressure as the impulse transferred by billions of elastic molecular collisions against vessel walls. For high-temperature radiative heat transfer in gas-filled enclosures, compare thermal behavior with our Stefan-Boltzmann Law Calculator.

1. Absolute Zero (0 K)

Equal to −273.15°C, absolute zero is the theoretical lower limit of thermodynamic temperature where ideal gas volume and pressure extrapolate to zero.

2. Avogadro's Principle

Equal volumes of any ideal gases at the same temperature and pressure contain the exact same number of molecules (V / n = constant), regardless of molecular mass.

3. Dalton's Partial Pressures

In a non-reacting gas mixture, total pressure equals the sum of the partial pressures that each individual component gas would exert alone (Ptotal = ΣPi).

4. Molar Volume at STP

At 273.15 K and 1.00 atm, one mole of any ideal gas occupies 22.414 liters—providing a rapid benchmark for sanity-checking gas calculations.

Gas Constant (R) Value Units Primary Application
0.082057 L·atm / (mol·K) Bench Chemistry (Liters & Atmospheres)
8.314463 J / (mol·K) or m³·Pa/(mol·K) SI Physics & Thermodynamic Energy
62.3636 L·Torr / (mol·K) Vacuum Manometry & mmHg Readings
0.083145 L·bar / (mol·K) Modern IUPAC Standard Bar Calculations

How to Use This Calculator

Solve for any unknown gas property in seconds by following this four-step workflow:

1

Choose Your Gas Law

Select Ideal, Boyle's, Charles's, Gay-Lussac's, or Combined Gas Law from the mode dropdown.

2

Convert Temp to Kelvin

Ensure all temperature inputs are in absolute Kelvin (add 273.15 to any Celsius measurement).

3

Leave Unknown Blank

Fill in all known state variables and leave the single target variable empty for the solver to detect.

4

Review State & Energy

Inspect the solved value, its SI metric equivalent, and the PV expansion energy in Joules.

When gases dissolve into liquid solutions to form aqueous reagents, use our Molarity Calculator to determine the resulting solution concentration.

Analytical & Engineering Benefits

  • •
    Five-in-One Equation Architecture: Switches dynamically between single-state (PV = nRT) and two-state transition laws without page reloads.
  • •
    Automatic Unknown Variable Detection: Solves for whichever field you leave empty—whether initial or final pressure, volume, moles, or Kelvin temperature.
  • •
    PV Work-Energy Conversion: Computes the thermodynamic pressure-volume energy product (PV in Joules, where 1 L·atm = 101.325 J) alongside standard gas units.
  • •
    Guardrails Against Zero/Negative Kelvin: Actively validates physical domain boundaries so division-by-zero or sub-absolute-zero temperatures are caught immediately.

To analyze mechanical work and kinetic energy changes during piston expansion, visit our Work–Energy–Power Calculator.

Factors Affecting Real Gas Behavior & Limitations

1. Intermolecular Attractions (Van der Waals 'a' Term)

Polar molecules (such as NH₃, H₂O vapor, and SO₂) experience dipole-dipole and hydrogen-bonding attractions that reduce wall impact force at low temperatures.

2. Finite Molecular Volume (Van der Waals 'b' Term)

At pressures above 50–100 atm, the physical volume excluded by the gas molecules themselves causes compressibility factors (Z = PV / nRT) to exceed 1.0.

3. Gauge vs. Absolute Pressure

Tire and tank gauges typically display gauge pressure (Pgauge) relative to ambient atmospheric pressure. Always add ~1.0 atm (14.7 psi) to gauge readings to obtain absolute pressure before using gas laws.

4. Water Vapor Pressure in Wet Gas Collection

When gases such as oxygen or hydrogen are collected by bubbling through water in an inverted eudiometer tube, the total measured pressure includes equilibrium water vapor pressure (PH2O = 23.8 Torr or 0.0313 atm at 25°C). Subtract PH2O from barometer pressure via Dalton's Law before calculating dry gas moles.

5. Adiabatic vs. Isothermal Compression

Boyle's Law assumes heat transfers freely through cylinder walls to hold temperature constant. Rapid piston compression traps thermal energy (P × Vγ = constant), raising gas temperature and producing higher peak pressures than isothermal predictions.

According to OpenStax University Physics & Chemistry, ideal gas equations provide accuracy within 1% for most diatomic and noble gases (He, N₂, O₂, Ar) at ambient room temperatures and pressures at or below 2 atmospheres.

Critical Thermodynamic Caveat:

Never input Celsius (°C) or Fahrenheit (°F) directly into Boyle-Charles-Combined gas law ratios. A transition from 10°C to 20°C is only a 3.5% increase in absolute temperature (283.15 K to 293.15 K), not a doubling of temperature.

Gas Laws Calculator interface showing Ideal Gas Law PV=nRT, Boyle's Law, Charles's Law, and Combined Gas Law solver
Gas Laws Calculator interface for solving physics and chemistry gas equations of state.

Frequently Asked Questions (FAQ)

What is the Ideal Gas Law and how is it written?

The Ideal Gas Law (PV = nRT) is the fundamental equation of state relating the pressure (P), volume (V), amount of substance in moles (n), and absolute temperature in Kelvin (T) of a hypothetical ideal gas via the universal molar gas constant R (0.082057 L·atm/(mol·K) or 8.31446 J/(mol·K)). It unifies Boyle's, Charles's, Gay-Lussac's, and Avogadro's individual gas laws into one thermodynamic equation.

What is Boyle's Law and when does it apply?

Boyle's Law (P1V1 = P2V2) states that for a fixed molar amount of gas held at a constant absolute temperature (an isothermal process), absolute gas pressure is inversely proportional to container volume. Compressing a gas into half its initial volume doubles the collision frequency of gas molecules against the container walls, doubling the pressure.

What is Charles's Law and why must temperature be in Kelvin?

Charles's Law (V1 / T1 = V2 / T2) states that the volume of a fixed mass of gas held at constant pressure (an isobaric process) is directly proportional to its absolute temperature. Temperature must always be entered in Kelvin (K = °C + 273.15) because the Kelvin scale starts at absolute zero (0 K), where molecular translational kinetic energy vanishes; using Celsius or Fahrenheit introduces zero and negative numbers that break proportional ratios.

How does the Combined Gas Law work?

The Combined Gas Law (P1V1 / T1 = P2V2 / T2) merges Boyle's Law, Charles's Law, and Gay-Lussac's Law for a sealed system containing a constant number of moles (n1 = n2). It allows engineers and chemists to calculate how a gas parcel responds when pressure, volume, and temperature all change simultaneously, such as in high-altitude weather balloons or internal combustion cylinders.

What is the difference between STP and SATP in gas calculations?

Standard Temperature and Pressure (STP) was historically defined as 0°C (273.15 K) and 1 atm (101.325 kPa), where 1 mole of an ideal gas occupies 22.414 liters (modern IUPAC STP uses 1 bar = 100 kPa, giving 22.711 L/mol). Standard Ambient Temperature and Pressure (SATP) is defined as 25°C (298.15 K) and 1 bar (100 kPa), where 1 mole of ideal gas occupies 24.789 liters.

When do real gases deviate from the Ideal Gas Law?

Real gases deviate significantly from PV = nRT under high pressures (typically above 10 atm) and low temperatures near the gas's condensation point. At high pressures, finite molecular volume becomes a substantial fraction of container volume; at low temperatures, attractive intermolecular van der Waals forces slow molecules down prior to wall collisions, reducing measured pressure below ideal predictions.