A gas-mixture record that says one component is half the mass does not say that component contributes half the pressure. Ideal-gas partial pressures track molecule counts, represented by moles, while mass fractions also depend on each species' molar mass. Confusing those two composition bases can change a robot pneumatic or gas-sampling model before any flow calculation begins.

Declare an ideal mixture rather than a handling procedure

Consider two hypothetical nonreacting species, A and B, sharing one uniform temperature T and container volume V. Assign molar masses MA = 4 grams per mole and MB = 28 grams per mole as stipulated model values. No particular commercial gas blend, real-gas correction, reaction, or instrument calibration is being represented.

The gases obey the ideal equation of state and occupy the same container. A partial pressure is the pressure that a component's amount would exert alone at that same T and V. It is not a separate compartment pressure or a fraction of the container physically reserved for that species.

OpenStax relates each partial pressure to mole fraction. NASA Glenn's formulation notes define mass fractions and the mixture molecular-weight conversion. The numerical ledgers, comparisons, and addition experiment below are independently constructed from these definitions.

Convert mass before assigning pressure

Choose 8 grams of A and 28 grams of B. Their amounts are nA = 8/4 = 2 moles and nB = 28/28 = 1 mole. The total mass is 36 grams, and the total amount is 3 moles.

The mole fractions are xA = 2/3 and xB = 1/3. The mass fractions are wA = 8/36 = 2/9 and wB = 28/36 = 7/9. Both pairs sum to one, but they are different pairs.

At total pressure P = 300 kilopascals, Dalton's ideal-mixture relation gives pA = xA P = 200 kilopascals and pB = 100 kilopascals. Using mass fractions in place of mole fractions would instead assign approximately 66.6667 and 233.3333 kilopascals. Those incorrect numbers still add to 300, so checking only the pressure sum would not detect the composition-basis error.

The pressure ratio pA/pB is two, while the mass ratio mA/mB is 2/7. The lighter species contributes more moles, and therefore more ideal partial pressure, despite having less total mass in the selected model.

Derive the conversion for arbitrary mass fractions

For species i, ni = mi/Mi. Divide each amount by the total amount to obtain xi = (wi/Mi)/sum_j(wj/Mj). Every species contributes to the denominator, which is why converting only one fraction without renormalizing is incomplete.

The mixture molar mass Mbar is total mass divided by total moles. Therefore 1/Mbar = sum_i(wi/Mi). In the original ledger this reciprocal is (2/9)/4 + (7/9)/28 = 1/18 + 1/36 = 1/12, in moles per gram. Thus Mbar = 12 grams per mole.

The mole-weighted check gives the same result: (2/3)×4 + (1/3)×28 = 12 grams per mole. A mass-weighted arithmetic average of the species molar masses would not be the appropriate mixture molar mass.

Reverse conversion also retains the weighting: wi = xi Mi/Mbar. For A, (2/3)×4/12 = 2/9. This closes the loop back to the starting mass record without treating grams and moles as interchangeable amounts.

Connect composition to density

Set T = 300 kelvins and use the rounded universal gas constant R = 8.314 joules per mole per kelvin for all calculations here. The original 3 moles at 300 kilopascals occupy V = nRT/P = 0.024942 cubic meter, or 24.942 liters.

Dividing 0.036 kilogram by that volume gives density approximately 1.44335 kilograms per cubic meter. The independent mixture formula rho = P Mbar/(RT), using Mbar = 0.012 kilogram per mole, gives the same value.

Units are part of the conversion. Leaving Mbar in grams per mole while combining it with this SI form of R would produce a thousandfold density error. The ideal pressure equation itself does not supply a correction for an inconsistent mass unit.

Equal masses give a separate composition

Now choose 18 grams of each species. The total mass is still 36 grams, but A contributes 4.5 moles and B contributes 9/14 mole. Their total is 36/7 moles, so xA = 7/8 and xB = 1/8.

At the same 300-kilopascal total pressure, their partial pressures are 262.5 and 37.5 kilopascals. Equal 50-percent mass fractions did not give equal pressure fractions. The mixture molar mass is now 7 grams per mole, rather than 12.

At the same temperature and total pressure, this second mixture would have lower density and a larger volume for the same total mass. A total mass and total pressure alone cannot recover composition without additional information about the species amounts or an equivalent independent constraint.

Add one species at fixed temperature and volume

Return to the original 2-mole A plus 1-mole B mixture. In a separate mathematical operation, increase A to 3 moles while keeping B at 1 mole and preserving T and V. Each mole still contributes the same RT/V = 100 kilopascals.

The new pA is 300 kilopascals, pB remains 100 kilopascals, and total pressure rises to 400 kilopascals. B's mole fraction falls from 1/3 to 1/4 even though its partial pressure did not fall. A fraction can decrease because its denominator increases.

This fixed-volume comparison is not interchangeable with adding gas while holding total pressure constant. Preserve temperature, volume, composition basis, and pressure reference with any mixture calculation. The ideal model establishes accounting relationships; it does not establish a real mixture's safety, nonideality, or compatibility with robot hardware.

Sources checked October 24, 2026:

https://openstax.org/books/chemistry-2e/pages/9-3-stoichiometry-of-gaseous-substances-mixtures-and-reactions — Ideal partial pressures and mole fractions.

https://www.grc.nasa.gov/WWW/wind/TFAWS2007/Formulation.pdf — NASA Glenn slides 9–10, mass fractions, mixture molecular weight, and species pressure accounting.

Illustration note: The generic wired fixture is a concept illustration for instrumentation models. It does not show this invented gas mixture, a gas-handling procedure, or measured pressures.