What is Dalton's law?
Dalton's law says that the total pressure of a gas mixture is the sum of the partial pressures of the gases in it — each gas pressing on the walls as if the others were not there. Air at 1 atmosphere is about 0.79 atmospheres of nitrogen, 0.21 of oxygen, and a little argon and carbon dioxide, all adding to 1. It is the law that makes gas mixtures behave like a sum of their parts.
This calculator works out the total pressure and the mole fractions of a two-gas mixture. Type the two partial pressures and it shows the total, and each gas's share of it. It is the calculation behind diving gas, breathing mixtures, and every problem that asks what one gas contributes to a mixture's pressure.
The share and print buttons sit with every tool on this site. Share sends the page link, not your numbers, so whoever opens it starts from the same defaults you saw. Print gives you a clean copy for a lab notebook, a recipe folder, or a classroom handout, with the formula and the worked example included.
Students use tools like this one for homework and exam practice, teachers use them to check answers quickly in class, and working cooks and lab staff use them because a fast, correct conversion beats doing the same arithmetic by hand for the twentieth time. The tool does not replace understanding the method — it removes the arithmetic so the understanding is what you spend your time on.
How Dalton's law is calculated
The method is an addition. Add the partial pressures together and you have the total pressure: 0.8 plus 0.2 is 1.0 atmospheres. Each gas's mole fraction is its partial pressure divided by the total: 0.8 over 1.0 is 0.8 for gas A, and 0.2 over 1.0 is 0.2 for gas B. The fractions add to 1, which is the check that the arithmetic is right.
The same law runs backwards: if you know the total pressure and the mole fractions, each partial pressure is its mole fraction times the total. Air at 1 atmosphere is 21 percent oxygen by moles, so oxygen's partial pressure is 0.21 atmospheres — the number that matters for breathing, because it is the oxygen's partial pressure, not the total, that drives oxygen into the blood.
The constants used on this page are the standard values taught in textbooks: the gas constant, Avogadro's number, and the atomic masses from the standard periodic table. They are stated where they are used, so you can check them against your own textbook and see that they match. If your course uses a rounded constant — 22.4 litres per mole at STP, for example — the difference from the precise value is small, and it is noted in the worked example.
The answers on this page are rounded for display, usually to two decimal places, while the maths underneath keeps full precision. That means a result shown as 2.28 may really be 2.2814, and the reverse check may differ in the last digit for the same reason. That is rounding, not an error, and it never changes the answer by more than a fraction of a percent.
Partial pressures: the inputs that matter
The input people get wrong is the partial pressure itself, because it is often given indirectly — as a mole fraction, as a percentage, or as a volume. A gas that is 21 percent of a mixture at 1 atmosphere has a partial pressure of 0.21 atmospheres; at 2 atmospheres the same 21 percent is 0.42. The partial pressure follows the total pressure, and forgetting to multiply by it is the most common error.
The second trap is the temperature. Dalton's law, like the other gas laws, assumes the gases are at the same temperature, and the partial pressures must be measured at that temperature. A gas collected over water needs a correction for the water vapour's partial pressure, which is a standard part of such problems and easy to forget.
The most common mistake with any calculator is typing a number and trusting it without a glance at the label beside it. The second is copying a result with more digits than the inputs justify — if your inputs are good to two digits, the answer is good to two digits, however many the screen shows. Round the answer to match the precision of what you measured.
A worked example: 0.8 and 0.2 atmospheres
Take the default example: gas A at 0.8 atmospheres and gas B at 0.2. The total pressure is 1.00 atmospheres, A's mole fraction is 0.800, and B's is 0.200. The fractions add to 1, and the pressures add to the total — both checks pass.
Try the others: two gases at 0.5 atmospheres each give a total of 1 atmosphere and mole fractions of 0.5 each, and 2 plus 1 atmospheres give 3 in total, with A at two thirds and B at one third. The pattern is the same every time: add for the total, divide for the shares.
Before you rely on a result, run a quick sanity check on it. Convert a value you already know — one large egg should come out near 57 grams, one mole of water near 18 grams — and see that the tool agrees. If it does, your inputs are right and the rest of the answers will be too. If it does not, the input is usually the problem, not the tool.
The one habit that prevents nearly every wrong answer here is checking the units before you trust the result. Grams are not ounces, millilitres are not cups, and a value typed in the wrong unit gives a confident-looking wrong answer. Read the label next to each box, match it to the unit on your recipe or your lab sheet, and only then read the result.
Why Dalton's law matters
Students use Dalton's law in gas-mixture problems and in collecting gases over water, where the measured pressure is the sum of the gas and the water vapour. Divers use it constantly: the partial pressure of oxygen decides whether a breathing mixture is safe, and the partial pressure of nitrogen decides narcosis and decompression.
Doctors use it for breathing gases: pure oxygen at 1 atmosphere has a partial pressure of 1 atmosphere, which is toxic over hours, while air's 0.21 is safe indefinitely. Anaesthetists set gas mixtures by partial pressure, because it is the partial pressure that drives a gas into the blood, not the percentage on the dial.
This site has a full set of related tools, and the links in this article point to the ones people reach for next. They all work the same way — type your numbers, read the answer, nothing uploaded — so once you know one of them, you know all of them. The "More free tools" section at the bottom of the page lists three close neighbours.
Everything on this page runs in your browser. Nothing you type is uploaded, stored, or sent to a server, and there is no account to create and no sign-up step. You can use the tool as many times as you like, close the tab, and come back later — your inputs are never saved anywhere.
Two related tools worth knowing are the mole calculator and percentage calculator.
Dalton's law vs the ideal gas law
The ideal gas law, on the ideal gas law calculator, relates the pressure, volume, temperature, and moles of a single gas in one state. Dalton's law relates the pressures of several gases sharing one container. Use the ideal gas law to find a missing value for one gas; use Dalton's law to combine gases into a mixture or split a mixture into its gases.
A pressure converter changes a pressure from atmospheres to kilopascals or psi, which is useful when the answer is needed in another unit. This calculator gives the pressure in the unit you typed; the converter changes it afterwards.
This site has a full set of related tools, and the links in this article point to the ones people reach for next. They all work the same way — type your numbers, read the answer, nothing uploaded — so once you know one of them, you know all of them. The "More free tools" section at the bottom of the page lists three close neighbours.
Common mistakes with Dalton's law
The most common mistake is forgetting to correct for water vapour when a gas is collected over water — the measured pressure includes the vapour, and the dry gas's pressure is the total minus the vapour pressure at that temperature. The second is using percentages as pressures without multiplying by the total.
A third mistake is adding mole fractions to partial pressures, which mixes two different units. A fourth is assuming the gases react: Dalton's law assumes the gases do not react with each other, and a mixture of gases that do react — ammonia and hydrogen chloride, for example — does not follow it. A fifth is forgetting that the fractions must add to 1.
The most common mistake with any calculator is typing a number and trusting it without a glance at the label beside it. The second is copying a result with more digits than the inputs justify — if your inputs are good to two digits, the answer is good to two digits, however many the screen shows. Round the answer to match the precision of what you measured.
How to use this Dalton's law calculator
Type the partial pressure of gas A and the partial pressure of gas B, both in atmospheres. The total pressure appears instantly, with each gas's mole fraction alongside. Change any number and the answers update at once.
If your mixture is given in mole fractions, multiply each fraction by the total pressure to get the partial pressures first, then type them here. And if a gas was collected over water, subtract the water vapour pressure from the total before you start.
The share and print buttons sit with every tool on this site. Share sends the page link, not your numbers, so whoever opens it starts from the same defaults you saw. Print gives you a clean copy for a lab notebook, a recipe folder, or a classroom handout, with the formula and the worked example included.