Skip to content

Dalton’s Law Calculator

Solve for
Pressure unit
Pressure (in the chosen unit) —
Mole fraction
—
Share of total pressure
—
Detail
—
How the total pressure divides between gases
The chart appears with your result

Dalton's law says the total pressure of a gas mixture equals the sum of each gas's partial pressure, and each partial pressure equals its mole fraction times the total. Dry air at 101.325 kPa is 20.95% oxygen by moles, so oxygen's partial pressure is 0.2095 × 101.325 = 21.23 kPa.

About this tool

Chemistry students, respiratory therapists, divers planning gas blends and lab staff collecting gas over water all lean on Dalton's law of partial pressures. This calculator works in two directions. Add up to four partial pressures to get the total pressure, each gas's mole fraction and a donut showing how the pressure divides. Or enter the total pressure with the moles of one gas and of the whole mixture to get that gas's partial pressure. Every answer stays in the unit you pick, so mixing kPa with mmHg is up to you to avoid. The law assumes ideal gases that do not react; at high pressures or with strongly interacting gases such as ammonia and hydrogen chloride, real partial pressures drift from these values.

How to use it

  1. Choose what to solve for

    Total pressure adds partial pressures; One partial pressure uses the mole fraction.

  2. Pick the pressure unit

    kPa, atm, mmHg or bar. All pressures you enter must use it.

  3. Enter the values

    Fill gases A and B, plus C and D if present, or the total pressure and the two mole amounts.

  4. Read the result and working

    The working lists each mole fraction; the donut chart can be downloaded as PNG, SVG or CSV.

Examples

Oxygen in air at sea level

Solve for
One partial pressure
Pressure unit
kPa
Total pressure of the mixture
101.325
Amount of the gas
20.95
Total amount of all gases
100

Result Pressure (in the chosen unit): 21.2276
Mole fraction: 0.2095
Share of total pressure: 20.95%
Detail: Other gases: 80.0974 kPa

  1. x = n_gas ÷ n_total = 20.95 ÷ 100 = 0.2095
  2. P_gas = x × P_total = 0.2095 × 101.325 = 21.2276 kPa

Dry air is 20.95% oxygen by moles, so at one standard atmosphere oxygen contributes about 21.2 kPa.

Three-gas mixture in atm

Solve for
Total pressure
Pressure unit
atm
Partial pressure of gas A
0.5
Partial pressure of gas B
0.3
Partial pressure of gas C
0.2

Result Pressure (in the chosen unit): 1
Mole fraction: 0.5
Share of total pressure: 50%
Detail: Largest share: Gas A

  1. P_total = 0.5 + 0.3 + 0.2 = 1 atm
  2. Gas A: x = 0.5 ÷ 1 = 0.5
  3. Gas B: x = 0.3 ÷ 1 = 0.3
  4. Gas C: x = 0.2 ÷ 1 = 0.2

Partial pressures of 0.5, 0.3 and 0.2 atm add up to exactly one atmosphere.

How it is calculated

P_total = P_A + P_B + P_C + …; P_i = x_i × P_total, with x_i = n_i ÷ n_total

P_total
total pressure of the gas mixture
P_i
partial pressure of gas i
x_i
mole fraction of gas i (0 to 1)
n_i, n_total
moles of gas i and moles of all gases

John Dalton observed in 1801 that each gas in a non-reacting mixture exerts the pressure it would exert alone in the same volume and temperature. Because every ideal gas obeys PV = nRT with the same V and T, pressure is proportional to moles, so a gas's share of the pressure equals its share of the moles. In sum mode the tool adds the entered pressures and divides each by the total; in fraction mode it multiplies the mole fraction by the total pressure.

When not to use it

  • Gases that react with each other, such as NH3 and HCl, break the law's assumption.
  • At very high pressures real-gas behaviour makes the simple sum inaccurate.
  • For gas dissolved in a liquid, use Henry's law instead.

Common mistakes

  • Entering one partial pressure in mmHg and another in kPa.
  • Forgetting to subtract water vapour pressure when gas is collected over water.
  • Using mass percent instead of mole percent to get the mole fraction.
  • Using volume fractions of liquids rather than gases.

Frequently asked questions

Why does pressure split by moles and not by mass?

In an ideal gas, pressure depends on the number of particles hitting the walls, not their mass. A mole of helium and a mole of xenon at the same volume and temperature exert the same pressure, so mole fraction, not mass fraction, sets each gas's share.

How do I correct for water vapour when collecting gas over water?

The trapped gas is saturated with water vapour. Subtract the vapour pressure of water at the bath temperature from the measured total. At 25 °C that is about 3.17 kPa (23.8 mmHg), so 101.3 kPa total leaves about 98.1 kPa for the dry gas.

What is the partial pressure of oxygen at altitude?

Oxygen stays about 20.95% of dry air at altitude, but the total pressure falls. At roughly 3,000 m the pressure is near 70 kPa, so oxygen's partial pressure is about 0.2095 × 70 ≈ 14.7 kPa, which is why breathing feels harder.

Can I use volume percentages as mole fractions?

For ideal gases at the same temperature and pressure, volume percent equals mole percent, so 78% nitrogen by volume means a mole fraction of 0.78. This does not hold for liquids or for mass percentages.

How does Dalton's law matter in scuba diving?

Divers track oxygen partial pressure because oxygen becomes toxic above about 1.4 to 1.6 atm. Air at 40 m depth is about 5 atm total, so oxygen sits near 0.21 × 5 = 1.05 atm, while enriched mixes reach the limit at shallower depths.

What does the mole fraction stat show in total-pressure mode?

It shows the mole fraction of the gas with the largest partial pressure, named in the Detail line. The working lists the mole fraction of every gas you entered.

Cite this tool

Using this tool in an assignment, article or report? Copy a citation, or a link for your website.

APA

Tools Directory Editorial Team. (2026, October 27). Dalton’s Law Calculator. Tools Directory. Retrieved October 27, 2026, from https://tools.milunir.com/chemistry/gas-laws-and-thermodynamics/daltons-law-calculator/

MLA

Tools Directory Editorial Team. “Dalton’s Law Calculator.” Tools Directory, 27 Oct. 2026, https://tools.milunir.com/chemistry/gas-laws-and-thermodynamics/daltons-law-calculator/. Accessed 27 Oct. 2026.

Chicago

Tools Directory Editorial Team. “Dalton’s Law Calculator.” Tools Directory. Last modified October 27, 2026. Accessed October 27, 2026. https://tools.milunir.com/chemistry/gas-laws-and-thermodynamics/daltons-law-calculator/.

Link<a href="https://tools.milunir.com/chemistry/gas-laws-and-thermodynamics/daltons-law-calculator/">Dalton’s Law Calculator – Tools Directory</a>