# Partial pressure calculator > How much pressure does each gas in a mixture exert? Dalton's law: the partial pressure of each gas from its share of the mixture. Find the partial pressure of each gas in a mixture with Dalton's law, from the total pressure and the gases' percentages or moles, drawn as one bar to scale. - Page: https://how.box/partial-pressure/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/partial-pressure/?p={p}&pu={pu}&b={b}&g1={g1}&x1={x1}&g2={g2}&x2={x2}&g3={g3}&x3={x3}&g4={g4}&x4={x4} - `p` (number 0 to 1e9): Total pressure, in pu. Example: `101.325`. - `pu` (kpa, atm, bar, mmhg or psi): kpa, atm, bar, mmhg, psi Example: `kpa`. - `b` (percent or moles): percent (default) or moles. Example: `percent`. - `g1` (o2, n2, ar, co2, he, h2, h2o, ch4, ne, co or other): Gas of row 1. Example: `o2`. - `x1` (number 0 to 1e9): Amount of row 1 in the basis (0 leaves the row out). Example: `20.95`. - `g2` (o2, n2, ar, co2, he, h2, h2o, ch4, ne, co or other): Gas of row 2. Example: `n2`. - `x2` (number 0 to 1e9): Amount of row 2 in the basis (0 leaves the row out). Example: `78.08`. - `g3` (o2, n2, ar, co2, he, h2, h2o, ch4, ne, co or other): Gas of row 3. Example: `ar`. - `x3` (number 0 to 1e9): Amount of row 3 in the basis (0 leaves the row out). Example: `0.93`. - `g4` (o2, n2, ar, co2, he, h2, h2o, ch4, ne, co or other): Gas of row 4. Example: `co2`. - `x4` (number 0 to 1e9): Amount of row 4 in the basis (0 leaves the row out). Example: `0.04`. Example answer: https://how.box/partial-pressure/?p=101.325&pu=kpa&b=percent&g1=o2&x1=20.95&g2=n2&x2=78.08&g3=ar&x3=0.93&g4=co2&x4=0.04 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `partial_pressure_calculate`: Dalton's law of partial pressures for an ideal gas mixture: P_i = x_i × P_total. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"partial_pressure_calculate","arguments":{"total":101.325,"pressure_unit":"kpa","basis":"percent","gas_1":"o2","amount_1":20.95,"gas_2":"n2","amount_2":78.08,"gas_3":"ar","amount_3":0.93,"gas_4":"co2","amount_4":0.04}}}` - GET: https://how.box/mcp/run/partial_pressure_calculate?total=101.325&pressure_unit=kpa&basis=percent&gas_1=o2&amount_1=20.95&gas_2=n2&amount_2=78.08&gas_3=ar&amount_3=0.93&gas_4=co2&amount_4=0.04 ## How it works In a mixture of gases, each gas behaves as if it were alone in the container. Its molecules hit the walls just as often as they would without the others, so each gas contributes its own pressure, its partial pressure, and these add up to the total. This is Dalton's law of partial pressures. Each gas's share of the pressure is its share of the molecules, the mole fraction: P_i = x_i × P_total, with x_i = n_i ÷ n_total. For gases, percent by volume is the same as mole percent. Dry air is 20.95 % oxygen, so at sea level, 101.325 kPa, oxygen's partial pressure is 0.2095 × 101.325 = 21.23 kPa; at an altitude where the total is 70 kPa it is 14.7 kPa, though the air is still 20.95 % oxygen. Dalton's law holds exactly for ideal gases and closely for real gases at ordinary pressures; at very high pressures molecules interact and the sum drifts. Percentages need not add up to 100: the shares are always taken of the gases entered. Sources: OpenStax Chemistry 2e, section 9.3; NASA, Earth Fact Sheet (composition of dry air). ## FAQ **Should I use gauge pressure or absolute pressure?** Use absolute pressure, measured from a vacuum. If your gauge reads relative to the surrounding air, add the ambient pressure before entering the total. **Why does entering only oxygen give it the whole pressure?** The tool divides each amount by the sum of the amounts entered. Include the other gases in the mixture; a single nonzero gas is treated as a pure gas. **Can I use mass percentages as volume percentages?** No. Gases have different molar masses, so a mass fraction is generally not a mole or volume fraction. Convert the mass amounts to moles first. **What about water vapour in wet gases?** A gas collected over water also holds water vapour at its vapour pressure, about 3.17 kPa at 25 °C. Add water vapour as one of the gases, or subtract its pressure from the total to get the dry gas's pressure. **Can I enter the gases’ masses instead of moles?** Not directly. Divide each mass by that gas’s molar mass first, then select moles and enter the resulting amounts. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)