Gas Mixture and Equilibrium Calculator

Enter gas components with their mole percentages, total pressure and temperature, plus Kc, Δn and T for an equilibrium, to get partial pressures, density and Kp.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Enter the mixture

    Formula and mole % per line.

  2. 2
    Enter pressure

    Total pressure in kPa.

  3. 3
    Enter temperature

    In °C.

  4. 4
    Enter equilibrium data

    Kc, Δn and temperature in K.

  5. 5
    Read the results

    Partial pressures, density and Kp.

About this tool

In a mixture of ideal gases each component behaves as if it were alone: its partial pressure is its mole fraction times the total pressure. From the composition follow the mixture's average molar mass and density, important for air, breathing gases, natural gas and flue gases. For reactions in the gas phase, equilibrium constants can be written with concentrations (Kc) or partial pressures (Kp), linked by a simple factor. This calculator handles both.

Who this is for

Chemistry and engineering students, divers planning gas mixes, HVAC and combustion engineers.

Dalton's law

p_i = x_i P. In dry air at sea level, nitrogen contributes about 79.1 kPa, oxygen 21.2 kPa and argon 0.95 kPa of the 101.3 kPa total. At altitude the oxygen fraction stays the same but its partial pressure falls with total pressure, which is what matters for breathing.

Mixture molar mass and density

M = Σ x_i M_i. Dry air has M ≈ 28.97 g/mol. Ideal-gas density is ρ = P M / (R T): 1.225 kg/m³ at 101.325 kPa and 15 °C, the standard sea-level value. Humid air is lighter, because water (18 g/mol) replaces heavier molecules.

Molar volume

V_m = R T / P: 24.8 L/mol at 25 °C and 1 bar, 22.4 L/mol at 0 °C and 1 atm.

Kp and Kc

For a gas-phase reaction with Δn = moles of gaseous products − moles of gaseous reactants: K_p = K_c (RT)^Δn, with R = 0.0831446 L·bar/(mol·K) when pressures are in bar and concentrations in mol/L. For ammonia synthesis N₂ + 3 H₂ ⇌ 2 NH₃, Δn = −2.

Entering the mixture

Write one gas per line with its formula and mole percentage (or mole fraction). Values are normalised to 100 %.

Good practice

Use mole (volume) percentages, not mass percentages. At high pressures real gases deviate from ideal behaviour; use the ideal gas and van der Waals calculator for that.

Diving gases

Divers limit the oxygen partial pressure to about 1.4 bar to avoid oxygen toxicity. In nitrox with 32 % oxygen that limit is reached at about 34 m depth (4.4 bar absolute). Nitrogen's partial pressure drives narcosis and decompression, which is why deep mixes replace some nitrogen with helium.

Le Chatelier and pressure

When Δn is negative, raising the pressure shifts the equilibrium towards fewer gas moles. That is why ammonia synthesis runs at 150 to 300 bar.

Worked example

Dry air (78.084 % N₂, 20.946 % O₂, 0.934 % Ar, 0.042 % CO₂) at 101.325 kPa and 15 °C has M = 28.97 g/mol and ρ = 1.225 kg/m³; oxygen's partial pressure is 21.2 kPa. For Kc = 0.5 with Δn = −2 at 500 K, Kp = 2.89 × 10⁻⁴.

Limits

Ideal-gas behaviour; not a breathing-gas or industrial safety tool.

Worked example

Dry air at 15 °C and 1 atm has a density of 1.225 kg/m³.

Quick facts

Frequently asked questions

What is Dalton's law?

Each gas's partial pressure equals its mole fraction times total pressure.

What is the molar mass of air?

About 28.97 g/mol.

How are Kp and Kc related?

Kp = Kc(RT)^Δn.

Why is humid air lighter?

Water vapour has a lower molar mass than nitrogen and oxygen.

What is the molar volume at 25 °C?

About 24.8 L/mol at 1 bar.

Is my data stored?

No. Everything is calculated in your browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages