Dalton's Law of Partial Pressures Calculator
This calculator works Dalton's Law in both directions. Enter the partial pressure of each gas and it adds them into a total and reports each gas's mole fraction. Switch modes and enter a total pressure with mole fractions instead, and it hands back the partial pressure of every component. Any consistent unit works because the math only cares about ratios.
How to use the Dalton's Law calculator
- Open the Mode menu and pick 'From partial pressures' or 'From total + mole fractions'.
- In partial-pressures mode, type each gas's pressure in the box, separated by commas.
- In total mode, enter the total pressure, then the mole fractions separated by commas so they sum to 1.
- Read the total pressure, and the per-gas partial pressure and mole fraction in the results table.
- Click Copy to grab the total, partial pressures, and mole fractions as text.
Examples
Add three partial pressures
Mode: from partial pressures. Values: 2, 3, 5
Total = 10. Mole fractions = 0.2, 0.3, 0.5
Split a total by mole fraction
Mode: from total + mole fractions. Total = 10, fractions = 0.2, 0.8
Partial pressures = 2, 8. Mole fractions = 0.2, 0.8
Model dry air in atmospheres
Mode: from partial pressures. Values: 0.78, 0.21, 0.01
Total = 1. Mole fractions = 0.78, 0.21, 0.01
Frequently asked questions
What is Dalton's Law of partial pressures?
Dalton's Law states that the total pressure of a mixture of non-reacting gases equals the sum of the partial pressures of each gas. If oxygen, nitrogen, and argon each push on a container wall, the pressure you measure is the sum of those individual contributions.
What is a partial pressure?
A partial pressure is the pressure a single gas in a mixture would exert if it alone occupied the whole volume at the same temperature. It reflects how much of that gas is present relative to the rest of the mixture.
How are mole fractions related to partial pressures?
Each gas's mole fraction equals its partial pressure divided by the total pressure. Because the fractions are shares of the same whole, they always add up to 1. In partial-pressures mode the tool computes each fraction this way.
What pressure units can I use?
Any consistent unit works, such as atm, kPa, bar, psi, or mmHg, as long as every value uses the same one. The calculator never converts units, so the total and partial pressures come back in whatever unit you typed in.
Why must the mole fractions sum to 1?
Mole fractions describe each gas's share of the whole mixture, so they must total 1. In total mode the tool checks the sum within a tolerance of 0.000001 and shows an error if the fractions do not add up, for example 0.2 and 0.7.
Can I enter more than two or three gases?
Yes. Enter as many comma-separated values as your mixture has components. The results table lists one row per gas as Gas 1, Gas 2, and so on, in the order you typed them.
Does it handle a gas with zero pressure?
A component of exactly 0 is allowed, and it contributes a mole fraction of 0. The only hard limit is that the total pressure must be greater than zero, so at least one gas must have a positive pressure.
How precise are the results?
Every output is rounded to six decimal places. For clean inputs like 2, 3, and 5 the fractions come out as tidy values such as 0.2, 0.3, and 0.5, while less even mixtures may show a longer decimal.
Is my data private, and is there an API?
The calculation runs in your browser, so nothing you type is uploaded. There is also a JSON API for the same engine if you want to script it: post partialPressures for one mode, or totalPressure plus moleFractions for the other.
Learn more
- Partial pressure and mole fraction explained
How partial pressures add to a total, how mole fractions split it back, and worked examples for air, scuba gas, and lab mixtures.
Related tools
Boyle's Law Calculator
Solve Boyle's Law P1V1 = P2V2 for the missing pressure or volume at constant temperature. Enter any three values in any consistent units and get the fourth.
Combined Gas Law Calculator
Solve the combined gas law P1V1/T1 = P2V2/T2 for any missing value. Enter five of the six, set Kelvin or Celsius, and get the sixth instantly.
Ideal Gas Law Calculator
Solve the ideal gas law PV = nRT for pressure, volume, moles or temperature. Enter any three values, pick your units in atm, kPa, L, m3, K or C.
Mole Calculator
Convert between moles, mass and particles. Enter mass and molar mass, or moles, or a particle count, and get the rest using Avogadro's number.
555 Timer Calculator
Calculate 555 timer astable frequency, period, high and low times and duty cycle from R1, R2 and the timing capacitor. Free oscillator design helper.
Absolute Humidity Calculator
Calculate absolute humidity in grams of water vapor per cubic meter from air temperature and relative humidity. Fast, free and works in your browser.