Skip to main content

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.

Last updated:
Formulas verified by Abbas Kalim Khan, Associate Scientist
Component 1
Component 2

Provide at least one of: moles, mass (with molar mass), or mole fraction for each component.

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.

Gas Collected Over Water: Dalton in Practice

Hydrogen collected over water at 23 °C is the standard gas-collection lab. The hydrogen partial pressure isn't the total measured pressure because water vapor occupies its share. At 23 °C, water's saturation vapor pressure is 21.1 mmHg (CRC Handbook). If the barometer reads 758 mmHg, then P(H₂) = 758 − 21.1 = 736.9 mmHg by Dalton's law. Plug that into n = PV / RT to get moles of H₂ from the collected gas volume. Skip the water-vapor correction and the reported yield is about 3% too high.

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

Frequently Asked Questions

What is Dalton's Law of Partial Pressures?

Dalton's Law says the total pressure of a non-reacting gas mixture is the sum of the partial pressures of its components: P_total = Σ P_i. Each component behaves as if it had the container to itself, because ideal-gas molecules don't see each other at distances larger than a few collision diameters. The classic demonstration is mixing 1 atm of nitrogen with 1 atm of oxygen in the same fixed-volume vessel at constant temperature: the gauge reads 2 atm, not some weighted average. The law breaks for reactive mixtures (NH₃ plus HCl gives NH₄Cl smoke and the pressure drops as the salt deposits), and for any condensable component near its dew point. For routine general-chem problems, room temperature and pressures under 5 atm, the deviation from ideality is well under 1%.

How do I calculate the partial pressure of a gas?

Two routes work. If you have mole fractions and total pressure, use P_i = x_i · P_total directly. If you have moles, temperature, and volume, apply the ideal gas law to each component as if it were alone: P_i = n_i · R · T / V. The two routes agree when the gases are ideal because they're algebraically equivalent. Worked example: 0.40 mol N₂ and 0.60 mol O₂ in a 10.0 L vessel at 298.15 K. P(N₂) = (0.40 × 0.08206 × 298.15) / 10.0 = 0.978 atm. P(O₂) = 1.467 atm. P_total = 2.45 atm. Check with mole fractions: x(N₂) = 0.40 / 1.00 = 0.40, so P(N₂) = 0.40 × 2.45 = 0.978 atm. Same answer.

What is a mole fraction?

Mole fraction is the ratio of one component's moles to the total moles in the mixture: x_i = n_i / n_total. Dimensionless, always between 0 and 1, and the fractions sum to exactly 1 across all components. Air, simplified: 0.78 N₂, 0.21 O₂, 0.0093 Ar, plus trace CO₂ and water vapor. The numbers work out because they're counting molecules, not weighing them. A common student error swaps mole fraction with mass fraction. They aren't equal except when all molar masses match. For a 50/50-by-moles mixture of H₂ and CO₂, the mass fractions are 4.4% and 95.6% because CO₂ molecules weigh 22 times more than H₂. Mole fraction is what enters Dalton's law and what the gas-law equations expect.

Mole fraction vs mass fraction in a gas mixture: which one does Dalton's law use?

Dalton's law uses mole fraction. P_i = x_i · P_total where x_i = n_i / n_total. Mass fraction (w_i = m_i / m_total) is a different number and will give you the wrong partial pressures if you plug it in. Worked case: 8.00 g O₂ and 4.00 g He at a total pressure of 1.00 atm. By mass, O₂ is dominant (8 / 12 = 67%). By moles, O₂ contributes 8 / 32.00 = 0.250 mol and He contributes 4 / 4.003 = 1.00 mol. Total moles = 1.25. So x(He) = 0.80 and x(O₂) = 0.20, and P(He) = 0.80 atm, P(O₂) = 0.20 atm. Helium dominates the pressure because moles, not mass, set the count of independently moving particles. That counter-intuitive flip is why this question shows up on every general-chem midterm.

Why do the partial pressures add up to the total pressure?

Pressure is the time-averaged force per area exerted by molecular collisions with the container walls. If two species of gas share a container and don't interact, the collisions from each species add up independently. There's no cross-term, no mutual reduction. P_total = Σ P_i comes straight out of that linearity. The microscopic picture: an O₂ molecule and an N₂ molecule fly through each other's space without noticing, until both eventually hit a wall. The wall counts both impacts. This breaks when molecules attract or repel meaningfully, which happens for polar gases (water vapor, ammonia) and at high pressure where molecules spend more time within each other's force ranges. For routine N₂ / O₂ / Ar mixtures at 1 atm, the deviation from strict additivity is below the third decimal place.

What's the difference between partial pressure and vapor pressure?

Partial pressure is what one component of a gas mixture contributes to the total pressure. Vapor pressure is the equilibrium pressure of a substance's gas phase over its own liquid or solid at a given temperature, a property of the pure substance. They're related when the gas phase contains the substance and the liquid/solid is also present. In that case, the partial pressure of the volatile component equals its vapor pressure (the system has reached vapor-liquid equilibrium). For water at 25 °C, the saturation vapor pressure is 23.8 mmHg (NIST WebBook). If you collect any gas over water at 25 °C in a sealed tube and wait for equilibrium, the partial pressure of water vapor in the gas phase reaches 23.8 mmHg. Below equilibrium, the water keeps evaporating. Above, it condenses. The numerical convergence is what makes gas-collection labs work.

Why does water vapor pressure matter when collecting gas over water?

Gas collected by water displacement (the standard general-chem setup: an inverted graduated cylinder over a water bath) contains the gas of interest plus water vapor at the bath temperature. The eudiometer reads total pressure, which is P(gas of interest) + P(water vapor). Subtract the water vapor contribution before reporting the gas alone. NIST WebBook tabulates the values: 17.5 mmHg at 20 °C, 23.8 mmHg at 25 °C, and 31.8 mmHg at 30 °C. Worked example: hydrogen collected over water at 25 °C, total pressure 752 mmHg. P(H₂) = 752 − 23.8 = 728.2 mmHg, which then goes into n = PV / RT for the moles of H₂ calculation. Skipping this correction overstates the H₂ yield by roughly 3% at 25 °C, more on a hot day. In practice, the bigger error on a freshman gas-collection experiment is parallax in reading the eudiometer.

How do I convert between mass and moles for gases?

Divide mass by molar mass: n = m / M. The mass goes in grams, the molar mass in g/mol, and n comes out in moles. 28.00 g of N₂ at M = 28.014 g/mol (IUPAC 2021) gives 0.9995 mol. 1.00 g of methane (CH₄, M = 16.043 g/mol) gives 0.0623 mol. The number that trips students is hydrogen: H₂ has M = 2.016 g/mol, not 1.008, because the diatomic form has two atoms. The atomic weight (1.008) applies to one H atom; the molecular weight applies to the actual gas species you're working with. For mixtures, do the conversion separately for each component, then sum the moles to get the total before applying mole-fraction logic.

What pressure units can I use?

Pick a unit and stick with it. 1 atm = 101.325 kPa = 760 mmHg = 760 Torr = 1.01325 bar = 14.696 psi. The calculator accepts any of these as long as all inputs share one unit. Mixing atm and kPa silently gives garbage. General-chem problems usually run in atm or mmHg. Engineering work prefers bar or Pa. The pascal (Pa) is the SI unit but is awkwardly small (1 atm = 101,325 Pa), so kPa is the practical scale. For Dalton's law, units cancel in the mole-fraction equation P_i = x_i · P_total, so you can compute partial pressures in whatever the total is given in. For ideal-gas-law calls (P_i = n_i R T / V), pick R to match: R = 0.08206 L·atm·mol⁻¹·K⁻¹ for atm-and-liters, R = 8.314 J·mol⁻¹·K⁻¹ for Pa-and-cubic-meters.

How do I get the density of a gas mixture from partial pressures and molar masses?

Use the ideal-gas-law form: ρ_mixture = (P_total · M_avg) / (R · T), where M_avg is the mole-fraction-weighted molar mass M_avg = Σ x_i · M_i. Worked example: dry air at sea level, 1.00 atm and 25 °C (298.15 K). Using the simplified composition x(N₂) = 0.78, x(O₂) = 0.21, x(Ar) = 0.01: M_avg = 0.78 · 28.014 + 0.21 · 31.998 + 0.01 · 39.948 = 28.96 g/mol. ρ = (1.00 · 28.96) / (0.08206 · 298.15) = 1.184 g/L. NIST's tabulated density of dry air at the same conditions is 1.184 g/L, so the match is exact to four figures. Humid air is less dense than dry air at the same temperature and pressure because water (M = 18.0) is lighter than the N₂/O₂ average, which is one reason hot humid days feel oppressive: the air can carry less oxygen per liter.

When does Dalton's law break down?

Dalton's law assumes ideal gas behavior, which means no intermolecular forces and zero molecular volume. Real gases violate both assumptions, and the violations get serious above roughly 10 atm or near a gas's condensation temperature. Attractive forces pull molecules slightly toward each other, reducing wall collisions and giving an effective partial pressure below the ideal value. Finite molecular volume reduces the free space, raising the effective partial pressure for the same mole count. The two effects partially cancel; van der Waals quantifies both via the a and b constants for each gas. At room temperature and pressures up to 5 atm with N₂, O₂, Ar, or CO₂, the deviation from ideality is under 1%. For CO₂ near its 60 atm critical pressure, or for low-temperature industrial work, switch to Peng-Robinson or van der Waals. The /tools/chemistry/ideal-gas page covers the general formulation. Atkins handles the deviation calculations.

How is partial pressure used in respiratory physiology?

Gas exchange in the alveoli is driven entirely by partial-pressure gradients. Alveolar P(O₂) sits near 100 mmHg, while venous blood arriving at the lungs is around 40 mmHg P(O₂). The 60 mmHg gradient pushes oxygen across the alveolar-capillary membrane until the blood leaves arterialized at roughly 95 mmHg P(O₂). CO₂ runs the opposite direction: venous P(CO₂) of 46 mmHg unloads into alveolar P(CO₂) of 40 mmHg, then exhalation refreshes the gradient. Henry's law converts gas-phase partial pressures to dissolved-blood concentrations, with hemoglobin binding then dominating O₂ transport beyond the simple solubility curve. Anesthesiology and pulmonary medicine spend their careers tuning these numbers. For altitude and hyperbaric calculations, the partial pressures change with total atmospheric pressure but the membrane physics is the same. Guyton's textbook covers the physiological details that go beyond Dalton's law itself.

What is the consistency check in the results?

The calculator checks that the sum of the computed partial pressures matches the total pressure you provided as input. Σ P_i should equal P_total to within rounding (typically the fourth decimal place). A larger gap means something upstream is off: mole fractions that don't sum to 1.0000, mismatched units between inputs, or a typo in one of the masses or moles. A 0.1% gap is usually rounding. A 5% gap means a real input error. Worked example: if you enter mole fractions of 0.45 N₂, 0.40 O₂, and 0.10 Ar (sum 0.95, missing 0.05), the calculator flags the inconsistency rather than silently pretending the missing 5% doesn't exist. In a real eudiometer reading the bigger error source is usually parallax in reading the water level, not Dalton's-law deviation, but the consistency check still catches data-entry mistakes.