Dalton's Law Calculator

Add partial pressures and read the mole fraction of each gas in a mixture.

Chemistry and LabUpdated 2026-11-172 min read
Dalton's Law Calculator
Total pressure
...
Mole fraction of A...
Mole fraction of B...

What it does

In a mixture of gases that do not react, each gas contributes to the total pressure as if it alone occupied the container. Dalton's law states that the total pressure is the sum of those partial pressures, a result that follows from the kinetic theory of gases.

This calculator adds the two partial pressures you enter and then divides each by the total to give the mole fraction of each component. It works in kilopascals or pounds per square inch.

The defaults are 21 kPa and 79 kPa, similar to a simplified picture of oxygen and nitrogen in air. The total is 100 kPa, and the mole fractions are 0.2100 and 0.7900.

The link between partial pressure and mole fraction holds for ideal gases. At high pressures or for gases that interact strongly, real mixtures depart from the simple sum, and a more detailed equation of state is needed.

Partial pressure is a useful idea in many settings, from the oxygen available at altitude to the behaviour of gas mixtures in industrial processes. It depends on temperature and on the amount of each gas present.

How to use

  1. Choose metric for kilopascals or imperial for psi.
  2. Enter the partial pressure of gas A.
  3. Enter the partial pressure of gas B.
  4. Press calculate and read the total pressure.
  5. Use the mole fraction lines to see each gas's share.
  6. Check that the two fractions add up to one.

Formula

P total = P A + P B, with mole fraction x A = P A / P total.
P A, P B
Partial pressures of the two gases in the chosen unit.
P total
The sum of the partial pressures.
x A, x B
Mole fractions, each partial pressure divided by the total.

Partial pressures must be zero or positive. If both are zero the total is zero and the mole fractions are reported as zero rather than as an undefined ratio. The unit of the total follows the unit you chose, and the mole fractions are dimensionless.

Worked example

Example: 21 kPa and 79 kPa

Metric defaults representing a two gas mixture.

  1. Add the partial pressures: 21 plus 79 equals 100 kPa.
  2. Divide gas A by the total: 21 / 100 = 0.2100.
  3. Divide gas B by the total: 79 / 100 = 0.7900.
  4. Check that 0.2100 plus 0.7900 equals 1.
  5. The tool shows 100.00 kPa, 0.2100 and 0.7900.

Reference table

Mole fractions from partial pressures at a 100 kPa total
Gas A pressureGas B pressurex Ax B
0 kPa100 kPa0.00001.0000
21 kPa79 kPa0.21000.7900
50 kPa50 kPa0.50000.5000
90 kPa10 kPa0.90000.1000

Limits

  • Assumes ideal gases that do not react with each other.
  • Handles two components only.
  • Does not give the number of moles without volume and temperature.
  • Real gas mixtures depart from the rule at high pressure.

Common mistakes

  • Entering gauge pressure where absolute pressure is required.
  • Adding mole fractions instead of partial pressures.
  • Mixing kPa and psi between the two inputs.
  • Applying the rule to gases that chemically react.
  • Expecting the fractions to depend on the gas identities.

Try it yourself

Quick checks. Answers sit tucked under each question.

Imperial: 3.046 psi and 11.461 psi?

14.51 psi total, fractions 0.2100 and 0.7900.

50 kPa and 50 kPa?

100.00 kPa total, fractions 0.5000 and 0.5000.

Questions

What is Dalton's law?

The total pressure of a non reacting gas mixture equals the sum of the partial pressures.

What is a partial pressure?

The pressure a single gas would exert if it alone occupied the container.

How does partial pressure relate to mole fraction?

For an ideal gas, the mole fraction equals the partial pressure divided by the total pressure.

Can I enter psi?

Yes. Choose imperial and the total will be reported in psi.

Does this work for reacting gases?

No. The composition would change, so the simple sum no longer applies.

Why is oxygen about 0.21 of air?

Because oxygen makes up about 21 percent of the molecules, its partial pressure is about 21 percent of the total.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.