Calculators Cloud
BlogMath AI SolverAll Calculators

Gas Laws Calculator

Calculate pressure, volume, temperature, and amount of gas with our free gas laws calculator. Featuring Ideal Gas Law, Boyle's Law, Charles' Law, and Combined Gas Law.

Calculate Your Gas Laws Calculator

PV = nRT (leave one field empty to solve for it)

Understanding Gas Laws in Chemistry

Gas laws are a set of rules that describe the behavior of gases under various conditions of pressure, volume, temperature, and amount. These laws form the foundation of physical chemistry and have wide-ranging applications in fields from meteorology to engineering.

The Ideal Gas Law

The Ideal Gas Law is a combination of several gas laws and represents the relationship between pressure (P), volume (V), amount of gas (n), and temperature (T).

PV = nRT

where R is the gas constant (8.314 J/(mol·K) or 0.0821 L·atm/(mol·K))

The Ideal Gas Law assumes that gas particles have no volume, have no attractive forces between them, and that all collisions are perfectly elastic. While no real gas behaves exactly this way, many gases approach ideal behavior at standard temperature and pressure.

Boyle's Law

Discovered by Robert Boyle in the 17th century, Boyle's Law states that the pressure of a gas is inversely proportional to its volume when temperature and amount are held constant.

P₁V₁ = P₂V₂

(at constant temperature and number of moles)

Boyle's Law Illustration

Illustration of Boyle's Law: As volume decreases, pressure increases

This law explains why the pressure in a bicycle pump increases as you compress the air into a smaller volume, or why your ears pop when changing altitude quickly.

Charles' Law

Formulated by Jacques Charles, this law states that the volume of a gas is directly proportional to its absolute temperature when pressure and amount are held constant.

V₁/T₁ = V₂/T₂

(at constant pressure and number of moles)

Charles' Law explains why hot air balloons rise (the air inside expands when heated, becoming less dense than the surrounding air) and why a partially inflated balloon expands when warmed.

Combined Gas Law

The Combined Gas Law merges Boyle's Law and Charles' Law, allowing us to describe how the pressure, volume, and temperature of a gas are related when the amount of gas remains constant.

(P₁V₁)/T₁ = (P₂V₂)/T₂

(at constant number of moles)

This law is particularly useful when analyzing systems where pressure, volume, and temperature all change simultaneously.

Avogadro's Law

Avogadro's Law states that the volume of a gas is directly proportional to the number of moles of gas present when the temperature and pressure are held constant.

V₁/n₁ = V₂/n₂

(at constant temperature and pressure)

A key implication of Avogadro's Law is that equal volumes of gases at the same temperature and pressure contain equal numbers of molecules—a concept that was revolutionary when first proposed.

Standard Conditions for Gases

To standardize gas measurements, scientists use standard temperature and pressure (STP), which are defined as:

  • Standard temperature: 0°C (273.15 K)
  • Standard pressure: 1 atmosphere (101.325 kPa)

At STP, one mole of an ideal gas occupies a volume of 22.4 liters—a value known as the molar volume of a gas.

Real Gases and Limitations

Real gases deviate from ideal behavior, especially at high pressures and low temperatures, when the assumptions of the ideal gas law break down:

  • Gas particles have volume: At high pressures, the volume of the gas particles themselves becomes significant relative to the container.
  • Attractive forces exist: At low temperatures, the attractive forces between gas molecules become significant, affecting gas behavior.

The van der Waals equation is one of several equations that modify the ideal gas law to account for these real-gas behaviors:

(P + a(n/V)²)(V - nb) = nRT

where a and b are constants specific to each gas

Applications of Gas Laws

Medical Applications

  • Understanding lung function and respiratory mechanics
  • Designing medical gas delivery systems and ventilators
  • Calculating gas exchange in blood for diagnostics

Industrial Applications

  • Designing pressure vessels and gas storage tanks
  • Optimizing chemical reactors and gas separation processes
  • Controlling gas flow in pipelines and process equipment

Environmental Science

  • Modeling atmospheric behavior and weather prediction
  • Understanding greenhouse gas dynamics
  • Analyzing air pollution dispersion patterns

Everyday Life

  • Explaining how pressure cookers work
  • Understanding tire pressure changes with temperature
  • Analyzing how altitude affects cooking times and methods

Gas Law Calculations: Key Considerations

  • Units matter: When using gas laws, ensure that all units are compatible. The gas constant R has different values depending on the units used for pressure and volume.
  • Temperature must be in Kelvin: For all gas law calculations, temperature must be in absolute units (Kelvin). To convert from Celsius: K = °C + 273.15.
  • Pressure unit conversions: Common pressure units include atmospheres (atm), pascals (Pa), bars, millimeters of mercury (mmHg), and pounds per square inch (psi).
  • Partial pressures: In gas mixtures, Dalton's Law states that the total pressure equals the sum of the partial pressures of each component gas.

Common Values of the Gas Constant R

Value of RUnitsWhen to Use
8.314J/(mol·K)When using SI units with pressure in pascals (Pa) and volume in cubic meters (m³)
0.08206L·atm/(mol·K)When using pressure in atmospheres (atm) and volume in liters (L)
62.364L·mmHg/(mol·K)When using pressure in millimeters of mercury (mmHg) and volume in liters (L)
8.314 × 10⁻²L·bar/(mol·K)When using pressure in bars and volume in liters (L)

See Also

  • Average Atomic Mass Calculator
  • Equilibrium Constant Calculator
  • Bond Order Calculator

Related Calculators

Molarity Calculator

Calculate solution concentration in moles per liter.

pH Calculator

Calculate pH values and solution acidity/alkalinity.

Stoichiometry Calculator

Calculate reactant and product quantities in chemical reactions.

Molar Mass Calculator

Calculate the molar mass of compounds.

Frequently Asked Questions

Gas laws are a set of principles that describe how gases behave under various conditions of pressure, volume, temperature, and amount. The main gas laws include:

  • Boyle's Law: Relates pressure and volume (P₁V₁ = P₂V₂)
  • Charles' Law: Relates volume and temperature (V₁/T₁ = V₂/T₂)
  • Avogadro's Law: Relates volume and amount of gas (V₁/n₁ = V₂/n₂)
  • Combined Gas Law: Relates pressure, volume, and temperature ((P₁V₁)/T₁ = (P₂V₂)/T₂)
  • Ideal Gas Law: Relates all four variables (PV = nRT)

These laws are important because they:

  • Help predict gas behavior in various conditions
  • Form the foundation of physical chemistry
  • Enable the design of industrial processes and equipment
  • Explain natural phenomena like weather patterns and breathing
  • Allow for precise calculations in scientific and engineering applications

The Ideal Gas Law is expressed as PV = nRT, where:

  • P = pressure (commonly in atmospheres, atm)
  • V = volume (commonly in liters, L)
  • n = amount of gas (in moles, mol)
  • R = gas constant (0.08206 L·atm/(mol·K) when using these units)
  • T = temperature (in Kelvin, K)

To use the Ideal Gas Law:

  1. Make sure all units are compatible with your chosen value of R
  2. Convert temperature to Kelvin (K = °C + 273.15)
  3. Identify which variable you need to solve for
  4. Rearrange the equation accordingly:
    • For pressure: P = nRT/V
    • For volume: V = nRT/P
    • For moles: n = PV/RT
    • For temperature: T = PV/nR
  5. Substitute the known values and calculate

For example, to find the volume of 2.0 moles of a gas at 3.0 atm and 27°C:
T = 27°C + 273.15 = 300.15 K
V = nRT/P = (2.0 mol × 0.08206 L·atm/(mol·K) × 300.15 K) / 3.0 atm = 16.4 L

Boyle's Law and Charles' Law describe different relationships between gas properties:

Boyle's Law

  • Relationship: Pressure and volume are inversely proportional
  • Formula: P₁V₁ = P₂V₂
  • Constants: Temperature and amount of gas
  • Meaning: As pressure increases, volume decreases (and vice versa)
  • Example: When you compress a bicycle pump, the pressure increases as the volume decreases

Charles' Law

  • Relationship: Volume and temperature are directly proportional
  • Formula: V₁/T₁ = V₂/T₂
  • Constants: Pressure and amount of gas
  • Meaning: As temperature increases, volume increases (and vice versa)
  • Example: A balloon expands when heated and contracts when cooled

Key differences:

  • Boyle's Law deals with pressure-volume relationships at constant temperature
  • Charles' Law deals with volume-temperature relationships at constant pressure
  • Boyle's Law shows an inverse relationship (as one increases, the other decreases)
  • Charles' Law shows a direct relationship (as one increases, the other also increases)

Temperature must be expressed in Kelvin (K) for gas law calculations for several important reasons:

  • Proportionality requires absolute scale: Gas laws involve direct or inverse proportionality relationships. For these to be mathematically valid, temperature must be on an absolute scale where zero represents the complete absence of thermal energy (absolute zero).
  • Avoiding division by zero: In equations like Charles' Law (V₁/T₁ = V₂/T₂), using Celsius could lead to division by zero or negative temperatures, which would give physically impossible results.
  • Physical meaning: Kelvin directly reflects the average kinetic energy of gas molecules, which is what actually determines gas behavior.

To convert between temperature scales:

  • Kelvin to Celsius: °C = K - 273.15
  • Celsius to Kelvin: K = °C + 273.15
  • Fahrenheit to Kelvin: K = (°F - 32) × 5/9 + 273.15

For example, in Charles' Law, if the volume of a gas is 2.0 L at 27°C and we heat it to 127°C, we must first convert to Kelvin:
T₁ = 27°C + 273.15 = 300.15 K
T₂ = 127°C + 273.15 = 400.15 K
Then apply Charles' Law: V₂ = V₁ × (T₂/T₁) = 2.0 L × (400.15 K / 300.15 K) = 2.67 L

STP stands for Standard Temperature and Pressure, which are reference conditions used to standardize gas measurements and calculations. According to the IUPAC (International Union of Pure and Applied Chemistry) definition:

  • Standard Temperature: 0°C (273.15 K)
  • Standard Pressure: 1 bar (100,000 Pa, or approximately 0.987 atm)

An older definition that is still commonly used defines STP as:

  • Standard Temperature: 0°C (273.15 K)
  • Standard Pressure: 1 atmosphere (101,325 Pa or 760 mmHg)

STP is important for gas calculations because:

  • Standardization: It provides a common reference point for comparing gas properties across different experiments and applications.
  • Molar volume: At STP, one mole of an ideal gas occupies approximately 22.4 liters (using the older definition) or 22.7 liters (using the IUPAC definition).
  • Simplifies calculations: Many gas tables and constants are given at STP, making calculations more straightforward.
  • Industrial applications: Many industrial processes specify gas volumes at STP for consistency in design and operation.

For example, to calculate how many grams of oxygen gas (O₂) occupy 5.0 L at STP:
At STP, 1 mol occupies 22.4 L, so 5.0 L contains:
5.0 L × (1 mol / 22.4 L) = 0.223 mol
Since the molar mass of O₂ is 32.0 g/mol:
0.223 mol × 32.0 g/mol = 7.14 g of oxygen

Real gases deviate from ideal gas behavior under certain conditions due to two key assumptions of the ideal gas model that break down:

  1. Assumption 1: Gas particles have negligible volume
  2. Assumption 2: There are no attractive forces between gas particles

The most significant deviations occur under these conditions:

  • High pressure: When gas is compressed, the actual volume of the gas molecules becomes significant compared to the container volume. This makes the gas less compressible than an ideal gas would be.
  • Low temperature: At lower temperatures, gas molecules move more slowly and the attractive forces between them become more significant. This can cause the gas to condense more readily than an ideal gas.
  • Near condensation point: As a gas approaches its condensation point, intermolecular forces become increasingly important.
  • Large, complex molecules: Gases with large molecules (like refrigerants or hydrocarbons) deviate more from ideal behavior than simple gases like helium or hydrogen.

Signs of non-ideal behavior include:

  • PV products that aren't constant at constant temperature
  • Compression factors (Z = PV/nRT) that differ significantly from 1
  • Unexpected pressure-volume relationships during compression or expansion

For more accurate calculations with real gases, scientists use modified equations like:

  • Van der Waals equation: (P + a(n/V)²)(V - nb) = nRT
  • Redlich-Kwong equation: A more complex equation for higher accuracy
  • Virial equation: Expresses compression factor as a power series

Converting between pressure units is essential for gas law calculations. Here are the conversion factors for common pressure units:

FromTo atmTo PaTo barTo mmHgTo psi
1 atmosphere (atm)1101,3251.0132576014.6959
1 pascal (Pa)9.87 × 10⁻⁶110⁻⁵7.50 × 10⁻³1.45 × 10⁻⁴
1 bar0.9869100,0001750.0614.5038
1 mmHg (torr)1.32 × 10⁻³133.3221.33 × 10⁻³10.0193
1 psi0.0686,894.760.068951.7151

To convert between pressure units:

  1. Identify your starting unit and target unit
  2. Multiply by the appropriate conversion factor

Examples:

  • To convert 2.5 atm to mmHg: 2.5 atm × (760 mmHg/1 atm) = 1,900 mmHg
  • To convert 720 mmHg to atm: 720 mmHg × (1 atm/760 mmHg) = 0.947 atm
  • To convert 3.0 bar to kPa: 3.0 bar × (100 kPa/1 bar) = 300 kPa

Remember that when using the gas laws, you must ensure all pressure units are consistent with your value of the gas constant R.

Share This Calculator

Found this calculator helpful? Share it with your friends and colleagues!

Calculators Cloud

Your trusted source for online calculators. Fast, accurate, and completely free to use.

Calculator Categories

  • Sports
  • Ecology
  • Music
  • Physics
  • Maths

Resources

  • Blog
  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

Subscribe

Get updates on new calculators and helpful guides directly to your inbox.

© 2025 Calculators Cloud. All rights reserved.

Made with by the Calculators Cloud Team
    atm
    Pa
    kPa
    mmHg
    bar
    psi
    L
    mL
    cm³
    m³
    K
    °C
    °F