Dalton's Law Calculator
Add partial pressures and read the mole fraction of each gas in a mixture.
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
- Choose metric for kilopascals or imperial for psi.
- Enter the partial pressure of gas A.
- Enter the partial pressure of gas B.
- Press calculate and read the total pressure.
- Use the mole fraction lines to see each gas's share.
- Check that the two fractions add up to one.
Formula
- 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.
- Add the partial pressures: 21 plus 79 equals 100 kPa.
- Divide gas A by the total: 21 / 100 = 0.2100.
- Divide gas B by the total: 79 / 100 = 0.7900.
- Check that 0.2100 plus 0.7900 equals 1.
- The tool shows 100.00 kPa, 0.2100 and 0.7900.
Reference table
| Gas A pressure | Gas B pressure | x A | x B |
|---|---|---|---|
| 0 kPa | 100 kPa | 0.0000 | 1.0000 |
| 21 kPa | 79 kPa | 0.2100 | 0.7900 |
| 50 kPa | 50 kPa | 0.5000 | 0.5000 |
| 90 kPa | 10 kPa | 0.9000 | 0.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.