Gas Mixture Partial Pressure Calculator
Calculate mole fractions and partial pressures for gas mixtures using Dalton's Law. Enter composition as moles, masses, or mole fractions.
Gas Mixture Partial Pressure Calculator
Describe a gas mixture by specifying its total pressure, temperature, volume, and the composition of each gas (moles, masses, or mole fractions). We'll estimate mole fractions and partial pressures for an ideal gas mixture.
Dalton's Law
Ptotal = Σ Pi
Total pressure equals sum of partial pressures
Mole Fraction
Pi = yi × Ptotal
Partial pressure proportional to mole fraction
Ideal Gas Law
PV = nRT
For the mixture and each component
Educational Only
Not for ventilation, safety, life-support, or industrial design purposes.
Mole Fraction from Masses or Moles
If you're using a gas mixture partial pressure calculator and the mole fractions don't add to 1.000, stop and recheck your inputs. Every partial pressure calculation starts with mole fractions, and a sum that drifts from 1.0 means either you left out a component or made a conversion error between grams and moles. The tool does the division for you, but it can't fix bad inputs.
When you're given masses instead of moles, convert each component first: n = mass / molar mass. If a tank holds 28 g of N₂ and 8.0 g of O₂, that's 28/28.02 = 1.00 mol N₂ and 8.0/32.00 = 0.25 mol O₂. Total moles = 1.25. Mole fraction of N₂ = 1.00/1.25 = 0.800. Mole fraction of O₂ = 0.25/1.25 = 0.200. Check: 0.800 + 0.200 = 1.000. The most common error is using grams directly as if they were moles—28 g of N₂ is not 28 mol.
Mole fractions are dimensionless and always between 0 and 1 for each component. If you get a mole fraction greater than 1, you divided backwards (total by component instead of component by total). If one comes out negative, you subtracted instead of dividing. These are quick self-checks that cost zero time on an exam and save you from handing in a nonsense answer.
Dalton's Law: Pi = xi·Ptotal
Dalton's law says each gas in a mixture exerts pressure independently, as if the other gases weren't there. The partial pressure of component i is Pi = xi × Ptotal, where xi is the mole fraction. The total pressure is the sum of all partial pressures: Ptotal = P₁ + P₂ + P₃ + ... This works because ideal gas particles don't interact, so each species contributes to wall collisions proportionally to how many of its molecules are present.
The law holds well for most gas mixtures at moderate pressures (below ~10 atm) and temperatures well above each component's boiling point. It breaks down when molecules interact strongly—for instance, a mixture of NH₃ and HCl reacts to form NH₄Cl(s), so Dalton's law doesn't describe the steady-state pressures correctly. For non-reactive mixtures of common gases (air, natural gas, breathing mixtures), the ideal assumption is excellent.
You can also go the other direction: given individual partial pressures, find mole fractions. xi = Pi / Ptotal. If PN₂ = 0.78 atm and Ptotal = 1.00 atm, then xN₂ = 0.78. This is how atmospheric composition is determined experimentally—measure partial pressures, divide by total.
Composition Input Modes
Mixture problems arrive in different formats: moles, grams, volume percent, or partial pressures. Each requires a slightly different setup, but they all funnel into the same calculation—find mole fractions, then multiply by total pressure.
If you're given moles directly (0.30 mol He, 0.70 mol Ne), compute mole fractions straight away: xHe = 0.30/1.00 = 0.30. If you're given masses (12 g He, 28 g Ne), convert to moles first: 12/4.003 = 3.00 mol He, 28/20.18 = 1.39 mol Ne, total = 4.39 mol. Then xHe = 3.00/4.39 = 0.683. If you're given volume percent at the same T and P, volume percent equals mole percent for ideal gases—21% O₂ by volume means xO₂ = 0.21. This equivalence of volume fraction and mole fraction is specific to ideal gases and does not apply to liquids.
If you're given partial pressures and need mole fractions, divide each partial pressure by the total: xi = Pi/Ptotal. If you're given partial pressures and need the total, just add them up. The format of the input changes the first step, not the underlying logic.
Total Pressure Validation
After computing all partial pressures, add them up. The sum must equal the total pressure you started with. If it doesn't, either a mole fraction is wrong or you forgot a component. This is a built-in error-check that takes five seconds and catches mistakes before they propagate.
Another validation: every mole fraction must be between 0 and 1, and they must sum to exactly 1. If xN₂ + xO₂ + xAr = 0.97, you're missing 3% of the mixture—probably a trace gas you forgot to include. If the sum exceeds 1, you double-counted a component or made a math error in one of the mole conversions.
For exam problems, stating the validation explicitly earns points. Write: "Check: PN₂ + PO₂ = 0.78 + 0.22 = 1.00 atm = Ptotal ✓." Graders look for this. It shows you understand the physics (partial pressures are additive) and that you can verify your own work. Skipping the check is like skipping the proof step—technically optional, practically essential.
Partial Pressure Q&A
Does gas identity matter for Dalton's law? Not for the pressure calculation itself. A mole of helium contributes the same partial pressure as a mole of sulfur hexafluoride at the same T and V. Only the number of moles matters, not the mass, size, or complexity of the molecule. This is an ideal gas result—real gases at high pressure may deviate because molecular size and attraction start to matter.
How does collecting gas over water affect partial pressure? When you collect a gas by water displacement, the gas mixture inside the collection vessel is your target gas plus water vapor. The total pressure equals atmospheric pressure, but Pgas = Patm − PH₂O. Water's vapor pressure depends on temperature (for example, 23.8 mmHg at 25 °C). Students who forget to subtract the water vapor pressure overestimate the amount of collected gas.
Can partial pressures be negative? No. Pressure is always positive (or zero in a perfect vacuum). If your calculation gives a negative partial pressure, you subtracted instead of multiplying, or you entered a mole fraction greater than 1. Each Pi = xi × Ptotal is the product of two positive numbers, so the result is always positive.
Is mole fraction the same as mass fraction? No. Mole fraction uses moles; mass fraction uses grams. They only equal each other when all components have the same molar mass—which almost never happens. Air is about 78% N₂ by moles but 75.5% N₂ by mass because N₂ (M = 28) is lighter than O₂ (M = 32). Always check which fraction your problem asks for.
Dalton's Model
• Dalton's law: Ptotal = P₁ + P₂ + P₃ + ... Each gas contributes independently to total pressure.
• Partial pressure: Pi = xi × Ptotal. Mole fraction times total pressure gives each component's partial pressure.
• Mole fraction: xi = ni / ntotal. Always between 0 and 1. All mole fractions sum to 1.
• From mass to moles: ni = mi / Mi. Convert grams to moles using molar mass before computing mole fractions.
• Volume = mole percent: For ideal gases at the same T and P, volume fraction equals mole fraction. 21% O₂ by volume = xO₂ = 0.21.
• Ideal gas link: PiV = niRT. Each component independently obeys PV = nRT.
N₂/O₂ Mixture Demo
Problem: A 10.0 L tank at 300 K contains 14.0 g of N₂ and 16.0 g of O₂. Find each gas's partial pressure and the total pressure.
Step 1: Convert masses to moles
n(N₂) = 14.0 / 28.02 = 0.4997 mol
n(O₂) = 16.0 / 32.00 = 0.5000 mol
n(total) = 0.4997 + 0.5000 = 0.9997 mol
Step 2: Mole fractions
x(N₂) = 0.4997 / 0.9997 = 0.4999
x(O₂) = 0.5000 / 0.9997 = 0.5001
Check: 0.4999 + 0.5001 = 1.0000 ✓
Step 3: Total pressure via PV = nRT
P(total) = n(total)RT / V
P(total) = (0.9997)(0.08206)(300) / 10.0
P(total) = 24.61 / 10.0 = 2.461 atm
Step 4: Partial pressures
P(N₂) = 0.4999 × 2.461 = 1.230 atm
P(O₂) = 0.5001 × 2.461 = 1.231 atm
Check: 1.230 + 1.231 = 2.461 atm ✓
Despite having equal masses (14 g vs 16 g), the two gases contribute nearly equal moles because N₂ (M = 28) is lighter per molecule than O₂ (M = 32). The 14 g of N₂ gives slightly fewer moles than the 16 g of O₂. If you had used masses directly as mole fractions (14/30 and 16/30), you'd get the wrong partial pressures—the gram-to-mole conversion is the step you can't skip.
Sources
- OpenStax Chemistry 2e — Dalton's law and gas mixture calculations
- LibreTexts Chemistry — Partial pressures and mole fraction derivations
Frequently Asked Questions
What is Dalton's Law of Partial Pressures?
Dalton's Law states that the total pressure of a mixture of non-reacting gases equals the sum of the partial pressures of each individual gas. Each gas in the mixture exerts pressure independently as if it alone occupied the entire volume. Mathematically: P_total = P₁ + P₂ + P₃ + ... = Σ Pᵢ
How do I calculate the partial pressure of a gas?
Partial pressure can be calculated using: Pᵢ = yᵢ × P_total, where yᵢ is the mole fraction of gas i. The mole fraction is calculated as yᵢ = nᵢ / n_total (moles of component i divided by total moles). Alternatively, if you know the volume and temperature, you can use the ideal gas law: Pᵢ = nᵢRT/V.
What is a mole fraction?
A mole fraction (y or χ) is the ratio of the number of moles of a component to the total number of moles in the mixture. It's a dimensionless quantity between 0 and 1, and all mole fractions in a mixture must sum to exactly 1. For example, if a mixture has 3 mol N₂ and 1 mol O₂, the mole fraction of N₂ is 3/4 = 0.75.
Why do the partial pressures add up to the total pressure?
This follows from the ideal gas law and the assumption that gas molecules don't interact. Each gas molecule contributes to pressure through collisions with container walls, and these contributions are additive. The total pressure results from all molecular collisions combined, regardless of which gas species is involved.
What's the difference between partial pressure and vapor pressure?
Partial pressure refers to the pressure contribution of any gas component in a mixture. Vapor pressure specifically refers to the pressure exerted by a substance's vapor in equilibrium with its liquid or solid phase at a given temperature. Vapor pressure is a property of a pure substance, while partial pressure describes that substance's contribution when mixed with other gases.
When does Dalton's Law not apply?
Dalton's Law assumes ideal gas behavior and may not be accurate when: (1) gases are at very high pressures where molecular volumes become significant, (2) temperatures are very low (near condensation), (3) gases chemically react with each other, or (4) there are strong intermolecular forces between different gas species.
How is partial pressure used in respiratory physiology?
In respiration, partial pressures drive gas exchange. Oxygen moves from alveoli (P_O₂ ≈ 100 mmHg) to blood (P_O₂ ≈ 40 mmHg) because gases diffuse from high to low partial pressure. Similarly, CO₂ moves from blood to alveoli. Understanding these partial pressures is crucial for treating respiratory conditions.
What pressure units can I use?
Common pressure units include atmospheres (atm), kilopascals (kPa), bar, millimeters of mercury (mmHg), torr, and pounds per square inch (psi). The calculator supports multiple units, but ensure all partial pressures use the same units as the total pressure for consistency.
How do I convert between mass and moles for gases?
Use the formula: moles (n) = mass (m) / molar mass (M). For example, 28 g of N₂ (molar mass = 28.01 g/mol) equals approximately 1 mol. The calculator can derive moles from mass if you provide the molar mass for each component.
What is the consistency check in the results?
The consistency check verifies that the sum of calculated partial pressures (Σ Pᵢ) matches the given total pressure (P_total). A small deviation may occur due to rounding or measurement uncertainty, but large deviations (>1%) indicate possible input errors or that mole fractions don't sum to 1.
Explore More Chemistry Calculators
Master thermodynamics, kinetics, stoichiometry, and more with our comprehensive chemistry calculator suite
Browse All Chemistry Tools