Partial Pressure Calculator for Oxygen and Nitrogen
Quickly calculate PO2 and PN2 using Dalton’s Law for diving, respiratory physiology, aviation, and lab gas analysis.
Formula used: Partial Pressure = Fraction of Gas × Effective Total Pressure.
How to Calculate the Partial Pressure of Oxygen and Nitrogen Correctly
If you need to calculate the partial pressure of oxygen and nitrogen, you are working with one of the most important concepts in gas physics and human physiology. This calculation matters in clinical care, diving, aviation, high altitude medicine, industrial gas handling, and laboratory quality control. The key idea is simple: each gas in a mixture contributes part of the total pressure. That part is called its partial pressure. Once you understand this, you can estimate oxygen availability, hypoxia risk, oxygen toxicity risk, and inert gas loading behavior.
The governing rule is Dalton’s Law of Partial Pressures. Dalton’s Law states that the total pressure of a gas mixture is the sum of the partial pressures of each gas in that mixture. In practical terms, if you know total pressure and the fraction of each gas, you can calculate partial pressure directly and very fast.
Core Equation and Unit Handling
The equation is:
Partial Pressure of Gas X = Fraction of Gas X × Total Pressure
- Use fraction as decimal, not percent. Example: 20.95% becomes 0.2095.
- Keep units consistent. If total pressure is in kPa, partial pressure will also be in kPa.
- Common units: kPa, mmHg (Torr), atm, and bar.
Example at sea level dry air: total pressure is 101.325 kPa. Oxygen fraction in dry air is about 0.2095, nitrogen is about 0.7808.
- PO2 = 0.2095 × 101.325 = 21.23 kPa
- PN2 = 0.7808 × 101.325 = 79.10 kPa
These values shift with altitude, depth, barometric changes, and any change in the gas blend.
Dry Gas vs Humidified Gas in the Airway
One common mistake is forgetting that inhaled gas in the lungs is humidified. At body temperature, water vapor pressure is about 47 mmHg. In respiratory calculations, this water vapor occupies part of the total pressure, so the effective dry gas pressure is lower:
Effective Dry Gas Pressure = Total Pressure – Water Vapor Pressure
Then apply Dalton’s Law to that corrected pressure. At sea level, total pressure is roughly 760 mmHg, so dry gas pressure in the upper airway is about 713 mmHg. Inspired oxygen partial pressure (PIO2) with 20.95% oxygen becomes:
PIO2 ≈ 0.2095 × 713 = 149 mmHg
This correction is crucial in respiratory medicine and anesthesia because oxygen transfer predictions become inaccurate without it.
Reference Data: Typical Dry Air Composition
For many calculations, dry atmospheric air is a reliable baseline. Real values vary slightly with humidity and local conditions, but the following are standard engineering and physiology approximations.
| Gas | Volume Fraction (%) | Fraction (decimal) | Partial Pressure at 101.325 kPa (kPa) |
|---|---|---|---|
| Nitrogen (N2) | 78.08 | 0.7808 | 79.10 |
| Oxygen (O2) | 20.95 | 0.2095 | 21.23 |
| Argon (Ar) | 0.93 | 0.0093 | 0.94 |
| Carbon Dioxide (CO2, variable) | ~0.04 | 0.0004 | 0.04 |
How Altitude Changes Oxygen and Nitrogen Partial Pressure
At altitude, total pressure falls. Even if oxygen percentage remains 20.95%, oxygen partial pressure drops because PO2 depends on total pressure. Nitrogen partial pressure also drops for the same reason. This is why altitude can cause hypoxemia despite unchanged oxygen fraction.
| Altitude (m) | Approx Total Pressure (kPa) | PO2 in Dry Air (kPa) | PN2 in Dry Air (kPa) | Clinical or Operational Impact |
|---|---|---|---|---|
| 0 | 101.3 | 21.2 | 79.1 | Baseline sea level conditions |
| 1,500 | 84.0 | 17.6 | 65.6 | Mild drop in oxygen availability |
| 3,000 | 70.1 | 14.7 | 54.7 | Noticeable hypoxia risk during exertion |
| 5,500 | 50.5 | 10.6 | 39.4 | High altitude stress, acclimatization required |
| 8,000 | 35.6 | 7.5 | 27.8 | Severe hypoxic environment, life threatening exposure |
Step by Step Method You Can Apply Anywhere
- Measure or select total pressure in kPa, mmHg, atm, or bar.
- Choose gas fractions for oxygen and nitrogen. Convert percent to decimal.
- If doing airway inspired gas calculations, subtract water vapor pressure from total pressure first.
- Multiply effective total pressure by each gas fraction.
- Convert results into your preferred unit for reporting and decision making.
- Interpret in context: diving limits, ventilator targets, or altitude physiology.
Practical Use Cases
- Scuba and technical diving: PO2 helps define safe operating depth and oxygen toxicity thresholds. PN2 helps estimate narcosis potential and inert gas loading.
- Critical care and anesthesia: Inspired and alveolar oxygen calculations rely on partial pressure logic and humidification correction.
- Aviation and aerospace: Cabin pressure and oxygen supplementation planning depend on pressure driven oxygen availability.
- Industrial safety: Gas blending, confined space monitoring, and process controls use partial pressures to validate safe environments.
Frequent Errors and How to Avoid Them
- Using percent directly: 21 instead of 0.21 causes a 100x error.
- Mixing units: Using mmHg pressure with kPa thresholds gives invalid comparisons.
- Ignoring humidification: Especially problematic in respiratory calculations.
- Forgetting blend changes: Enriched oxygen mixes can raise PO2 quickly under pressure.
- Assuming oxygen fraction alone determines oxygen delivery: total pressure is equally important.
Interpreting PO2 and PN2 in Safety Context
Partial pressure is not just a math output. It has direct biological and operational consequences. In diving practice, elevated PO2 can increase central nervous system oxygen toxicity risk, while elevated PN2 can increase narcosis effects at depth. In altitude environments, declining PO2 is the main driver of hypoxic symptoms. In medicine, corrected inspired oxygen pressure is foundational for evaluating gas exchange.
Always combine calculation results with accepted operational standards, monitoring tools, and professional guidance specific to your field. A calculator improves precision, but safe decisions still require context.
Authoritative References
For deeper review and standards based information, consult:
- NOAA: Air pressure fundamentals (.gov)
- NASA: Standard atmosphere and pressure change with altitude (.gov)
- NCBI Bookshelf: Oxygen toxicity clinical background (.gov)
Final Takeaway
To calculate the partial pressure of oxygen and nitrogen, you only need total pressure and gas fraction. Use Dalton’s Law consistently, keep units aligned, and apply humidification correction when working with inspired respiratory gas. This gives fast and reliable results for clinical, environmental, and engineering decisions. The calculator above automates the math, provides unit conversions, and visualizes the comparison between oxygen and nitrogen partial pressures so you can interpret conditions immediately.