Partial Pressure Calculator – Dalton's Law for Gas Mixtures
Use this free Partial Pressure Calculator to apply Dalton's law to a mixture of up to 3 gases. Enter how many moles of each gas are present and the total pressure — the tool finds each gas's mole fraction and the partial pressure it contributes.
Formula
Dalton's law: Ptotal = P₁ + P₂ + P₃ + … Each gas contributes a partial pressure Pᵢ = xᵢ × Ptotal, where the mole fraction is xᵢ = nᵢ / ntotal — the share of the total moles belonging to that gas. The partial pressure does not depend on what the gas is, only on its mole fraction.
How to use
- Enter the amount of gas 1 in moles. Add gases 2 and 3 if present — leave a gas's box blank if you have fewer gases.
- Enter the total pressure of the mixture (the partial pressures come out in the same unit — kPa here, but any pressure unit works).
- Click "Calculate Partial Pressures" to see each mole fraction, each partial pressure, and a check that they add back up to the total.
Worked example
A cylinder holds 2 mol of oxygen, 6 mol of nitrogen and 2 mol of carbon dioxide at a total pressure of 200 kPa.
ntotal = 2 + 6 + 2 = 10 mol
x(O₂) = 2/10 = 0.2 → P(O₂) = 0.2 × 200 = 40 kPa
x(N₂) = 6/10 = 0.6 → P(N₂) = 0.6 × 200 = 120 kPa
x(CO₂) = 2/10 = 0.2 → P(CO₂) = 0.2 × 200 = 40 kPa
Check: 40 + 120 + 40 = 200 kPa ✓
FAQ
Does it matter which gases are in the mixture?
No — for ideal gases only the mole fractions matter. Two moles of helium and two moles of heavy CO₂ in the same mixture contribute exactly the same partial pressure.
What is the partial pressure of oxygen in air?
Air is about 21% oxygen by moles, so at sea level P(O₂) ≈ 0.21 × 101.3 kPa ≈ 21.3 kPa. This is the pressure your lungs actually "see" for oxygen, which is why it drops on high mountains even though the 21% stays the same.
Why do partial pressures add up to the total?
Each gas's molecules collide with the container walls independently of the others. Pressure is just the combined effect of all those collisions, so the total is the sum of each gas's share.