The task this page does

When several gases share a container, each one contributes part of the total pressure. The share a gas contributes is its partial pressure, and for an ideal mixture it equals that gas mole fraction multiplied by the total pressure. This page does exactly that multiplication. You enter the mole fraction as a number between 0 and 1, enter the total absolute pressure in pascals, and the page returns the partial pressure in pascals. The default of 0.25 mole fraction and 100,000 Pa total gives 25,000 Pa. It is a clean way to check a homework problem, size a gas calculation in a lab write-up, or convert an atmospheric composition into the pressure each component exerts at a given altitude or in a given vessel.

Mole fraction and how to get it

Mole fraction is the amount of one component divided by the total amount of all components, so the fractions of a mixture add up to exactly 1. It is a ratio of moles, which for ideal gases is also a ratio of volumes at the same temperature and pressure, and that is why gas compositions are often quoted as volume percent. To get a mole fraction from a percent by volume, divide by 100: 21 percent oxygen is 0.21. If you start from masses, convert each to moles using molar masses and then divide. A mixture of 8 g of oxygen and 14 g of nitrogen contains 0.25 mol of oxygen (molar mass about 32 g/mol) and 0.5 mol of nitrogen (about 28 g/mol), so oxygen has a mole fraction of 0.25 divided by 0.75, or one third. Mass fractions cannot be entered directly.

Why the total must be absolute pressure

The assumptions for this page require total absolute pressure in pascals, and the word absolute matters. Many gauges read gauge pressure, which is the difference from the surrounding atmosphere. A tire gauge that reads 220 kPa is showing roughly 220 kPa above atmospheric, so the absolute pressure inside is about 320 kPa at sea level. Dalton's law applies to the absolute value, because it describes the real molecular contributions. Using a gauge reading would understate every partial pressure. Convert first by adding the local atmospheric pressure, which is about 101,325 Pa at standard conditions. The page also expects pascals. One bar is exactly 100,000 Pa, one kilopascal is 1,000 Pa, and one standard atmosphere is defined as exactly 101,325 Pa. A reading in psi must be converted before use.

The default example in detail

With a mole fraction of 0.25 and a total of 100,000 Pa, which is exactly 1 bar, the partial pressure is 0.25 times 100,000, or 25,000 Pa. That is 25 kPa and 0.25 bar. The fractions of the remaining gases must supply the other 75,000 Pa, since the partial pressures of all components sum to the total. This sum check is the most useful sanity test on a calculation: if the partial pressures you compute for every component do not add to the total, then the mole fractions do not add to 1 and some component is missing or the data are inconsistent. A mole fraction of 1 returns the whole total pressure, and a fraction of 0 returns 0. A value outside the range from 0 to 1 is not a valid mole fraction and the page will not accept it.

Air as a worked example

Dry air at sea level is a common application. Using the rounded textbook composition of 21 percent oxygen and 78 percent nitrogen by mole, and standard atmospheric pressure of 101,325 Pa, the partial pressure of oxygen is 0.21 times 101,325, which is 21,278.25 Pa, or about 21.3 kPa. Nitrogen with a fraction of 0.78 gives 79,033.5 Pa. Carbon dioxide, at an illustrative fraction of 0.0004, gives about 40.53 Pa. At higher altitudes the total pressure falls while the fractions stay almost the same, so oxygen partial pressure falls in proportion. At a place where total pressure is about 70,000 Pa, oxygen at a fraction of 0.21 gives 14,700 Pa, about 69 percent of the sea-level value. This is why breathing is harder at altitude, even though the air is still 21 percent oxygen.

Where the idea is used

Partial pressure is a working quantity across chemistry, physiology and engineering. In chemical equilibrium, gas-phase equilibrium constants are often written with partial pressures. In reaction kinetics, the rate of a gas-phase step can depend on the partial pressure of a reactant. In humidity work, the partial pressure of water vapor in air is compared with its saturation value. In industrial gas handling, the partial pressure of a component can determine how much dissolves in a liquid, since Henry's law relates dissolved concentration to partial pressure. In diving and aviation physiology, the partial pressure of oxygen is what limits how deep or how high a given mixture can be used.

Ideal-gas limits and real mixtures

The assumptions are specific: ideal gas-mixture mathematics, with no real-gas or fugacity correction. At ordinary pressures and moderate temperatures, many gases follow Dalton's law closely. At high pressure, or near the condensation point of a component, molecules interact enough that the simple product mole fraction times total pressure no longer matches the true behavior. Chemists use fugacity, an effective pressure, in such cases to keep equilibrium expressions valid. Water vapor over liquid water is a clear boundary: its partial pressure cannot exceed the saturation vapor pressure at that temperature, around 3.2 kPa at 25 degrees Celsius, however much total pressure rises. If your problem involves gases near condensation or very high pressure, treat the page result as a first approximation rather than a final design value.

Common input mistakes

A few errors repeat. Entering a mole percent such as 21 instead of 0.21 yields a result 100 times too large, and the page will reject a fraction above 1 for that reason. Using gauge pressure for the total is the second. The third is entering a mass fraction or a volume fraction of a liquid mixture, which is not the mole fraction. A fourth is mixing units, for example pressure in kPa with the expectation of an answer in Pa, so the result is off by a factor of 1,000. Finally, remember that the page treats the fraction of the mixture as given. If you remove one component, for example by drying the gas or by scrubbing carbon dioxide, the remaining mole fractions change and must be recomputed before you continue.

What this page does not decide

This calculator performs one multiplication on a clean ideal-gas model. It does not rate a container, size a regulator, set a safe working pressure or choose a breathing gas. Gas mixtures at pressure can be hazardous, and decisions about breathing gases, cylinders or exposure belong with qualified training, equipment standards and the relevant safety authorities. The assumptions for this page state that it makes no breathing-gas or exposure-safety decision, and that stays true however the output is used. The practical check is the sum rule: the partial pressures you compute for every component must add up to the total you entered.

Reading the result in other pressure units

The page returns pascals, but many references use other units. To get kilopascals, divide by 1,000, so 25,000 Pa is 25 kPa. To get bar, divide by 100,000, which gives 0.25 bar. To get standard atmospheres, divide by 101,325, so 25,000 Pa is about 0.2467 atm. Millimeters of mercury and torr need the factor 133.322, giving about 187.5 mmHg for the default. Pounds per square inch use 1 psi equal to 6,894.757 Pa, so the default is about 3.63 psi. The oxygen partial pressure of 21,278.25 Pa in sea-level air is about 21.3 kPa, 0.21 atm or 159.6 mmHg, and the last value is the figure often quoted in physiology texts. Choosing the unit that matches the source you compare against avoids a conversion error later.

Dalton's law and the ideal gas law together

Dalton's law follows from the ideal gas law. Each component in a mixture behaves as if it alone filled the container at the same temperature, so its pressure equals its moles times R times temperature divided by volume. Summing over all components gives the total pressure, and dividing one component by the sum gives the mole fraction. This is why the partial pressure equals mole fraction times total pressure. You can also work with moles directly. Suppose 0.5 mol of oxygen and 1.5 mol of nitrogen are in a 20 L vessel at 300 K. The total moles are 2.0, the total pressure is about 2.0 times 8.314 times 300 divided by 0.020, or roughly 249,400 Pa, and the oxygen fraction is 0.25, so its partial pressure is about 62,400 Pa. The page handles the last step once you have the total and the fraction.

Vapor and dry-gas bookkeeping

Gas collected over water is a classic use of partial pressures. The gas in the collection vessel is a mixture of the dry gas and water vapor, and the total pressure equals atmospheric pressure when the water levels are equalized. The partial pressure of the dry gas equals the total minus the vapor pressure of water at that temperature. At 25 degrees Celsius water vapor contributes roughly 3,170 Pa, so with a total of 101,325 Pa the dry gas has about 98,155 Pa. You can also reach the same number with a mole fraction: the dry gas fraction is 98,155 divided by 101,325, which is about 0.9687, and the page returns the same partial pressure when you enter it. The subtraction route is quicker, and the mole fraction route lets you test the page against a known result.