Oxygen Displacement Calculator: How It Works
- Oxygen percentage remaining
- %
- Result
- Container volume
- 100 L
- You entered
- Displacing gas volume
- 21 L
- You entered
This calculator works out the volume of oxygen displaced by another gas in a closed container, based on the container volume and the amount of gas added. You enter the container’s total volume and the volume of the displacing gas, and you get back the remaining oxygen volume and the percentage of oxygen left. It is a straightforward mixing calculation, assuming ideal gas behavior and complete mixing.
Formula
The calculation uses the principle that in a closed container at constant temperature and pressure, the volume of a gas is proportional to its amount (Avogadro’s law). When you introduce a displacing gas, it pushes out an equal volume of the original gas mixture. Assuming the original gas is air (21% oxygen), the remaining oxygen volume is:
O₂ remaining = Container volume − Displacing gas volume
And the percentage is:
O₂ % = (O₂ remaining / Container volume) × 100
Variables:
- Container volume (V) – total internal volume of the closed space, in liters (or any consistent unit).
- Displacing gas volume (D) – volume of the gas added, in the same unit as V.
- O₂ remaining – volume of oxygen left after displacement, in the same unit.
- O₂ percentage – fraction of oxygen in the final mixture, expressed as a percentage.
This assumes the displacing gas contains no oxygen and that the gas fully mixes. If the displacing gas is not oxygen-free, adjust accordingly.
Worked Example
Using the default values: a 100 L container and 21 L of displacing gas.
- O₂ remaining = 100 L − 21 L = 79 L
- O₂ percentage = (79 L / 100 L) × 100 = 79%
The calculator shows 79.0 L and 79.0% – the same results.
When to Use This Calculation
This type of calculation appears in several practical contexts:
- Confined space entry – estimating oxygen levels after purging with an inert gas like nitrogen or argon.
- Food packaging – calculating headspace oxygen after flushing with nitrogen.
- Laboratory glove boxes – estimating how much oxygen remains after purging.
- Fire suppression – understanding how inert gas reduces oxygen concentration.
In each case, the basic math is the same, but real-world conditions may require corrections for pressure, temperature, and non-ideal mixing.
How to Read the Result
The percentage tells you the oxygen concentration in the final gas mixture. Normal air has about 21% oxygen. A result below 19.5% is generally considered oxygen-deficient for human entry, though specific regulations vary. The volume result (in liters) is useful when you need to know the actual amount of oxygen present, not just the percentage.
Remember that this is a theoretical maximum displacement. In practice, mixing is never perfect, and you may need to use a purge factor (often 4 to 6 times the container volume) to achieve the desired oxygen level.
Common Mistakes and Misconceptions
A frequent error is using different units for container and displacing gas volumes – always convert to the same unit first. Another mistake is assuming the displacing gas pushes out only oxygen; in reality, it pushes out a proportional mix of all gases, so the oxygen percentage drops linearly only if you start with air and the displacing gas is oxygen-free.
A common misconception is that adding 21 L of nitrogen to a 100 L container leaves 79% oxygen. That is true only if the container initially contained pure oxygen. If it contained air (21% O₂), the final oxygen percentage would be (21 L − 21 L × 0.21) / 100 = 16.6%, not 79%. This calculator assumes the container starts with pure oxygen – a simplification that may not match your situation.
Limits of the Formula
The calculation assumes ideal gas behavior, constant temperature, and constant pressure. It also assumes the displacing gas instantly and completely mixes with the original gas. In real life, gases take time to mix, and you may need to account for temperature changes (which affect volume) and pressure differences. For critical applications like confined space entry, always use a calibrated oxygen sensor to verify actual levels – never rely solely on calculation.
Alternatives and Related Calculations
If you need to calculate how much purge gas is required to reach a target oxygen level, use the logarithmic purge formula: V_purge = V_container × ln(C_initial / C_final). For example, to reduce oxygen from 21% to 1% in a 100 L container, you need 100 × ln(21/1) ≈ 304 L of nitrogen. This calculator gives you the result after a single displacement, not the cumulative effect of multiple purges.
For pressure-related displacement (e.g., purging a vessel with pressurized gas), use the ideal gas law (PV = nRT) to convert pressures and volumes.
Safety and Accuracy Notes
Oxygen levels below 19.5% are hazardous to humans. Never use this calculator as a substitute for a calibrated oxygen monitor in confined spaces. Always follow relevant safety regulations and standards. When measuring volumes, use the actual internal volume of the container, not the external dimensions. For irregular containers, fill with water and measure the volume of water to get an accurate figure.
Frequently Asked Questions
Does this calculator work for any gas?
It works for any oxygen-free gas, but the math is the same regardless of the gas type. The key is that the displacing gas contains no oxygen. If it does (like air), you need to account for that.
What if I start with air, not pure oxygen?
Then the calculation changes. To find the final oxygen percentage, use: (0.21 × (V − D)) / V × 100. For a 100 L container with 21 L of nitrogen, that gives 16.6% oxygen, not 79%.
How many times do I need to purge to reach a safe level?
Use the logarithmic formula mentioned above. For example, to go from 21% to 1% oxygen, you need about 3 times the container volume of inert gas (304 L for a 100 L container).
Can I use this for a room or large space?
Yes, but the assumption of perfect mixing is less realistic in large spaces. You may need to use fans to ensure even distribution, and you should always verify with a sensor.
What units can I use?
Any consistent volume unit – liters, cubic feet, gallons. The calculator uses liters, but you can convert your inputs to liters first. The percentage result is unit-independent.
Related
Formula used
in v | Container volume | L | 100 | 0 in g | Displacing gas volume | L | 21 | 0 out o2_left | Oxygen volume remaining | L | v - g | 2 out o2_pct | Oxygen percentage remaining | % | (v - g) / v * 100 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.