What this calculator does
The Nitrox Gas Blending Calculator tells scuba divers and gas blenders how much pure oxygen and how much air to add when mixing enriched air nitrox (EANx) by the partial-pressure method. Starting from an empty cylinder, you first fill with pure oxygen to a calculated pressure, then top up with air (which is 21% oxygen) until you reach your final fill pressure. The result is a cylinder holding your exact target oxygen fraction.
The formula explained
Because the total oxygen in the tank is the oxygen you add plus the 21% oxygen that comes in the air, the oxygen partial pressure needed is:
$$P_{O_2} = \frac{(F_{O_2} - 0.21)\,P_f}{0.79}$$Here \(F_{O_2}\) = target oxygen fraction (for EAN32, \(F_{O_2}=0.32\)) and \(P_f\) = final fill pressure. The air added is simply the remainder:
$$P_{air} = P_f - P_{O_2}$$
How to use it
Enter your target oxygen percentage, your final fill pressure, and the pressure unit (psi or bar). The calculator returns the oxygen pressure for step one and the air added for step two. Add oxygen slowly, let the cylinder cool, then top with air and always analyze the final mix before diving.
Worked example
To blend EAN32 to a 3000 psi fill:
$$P_{O_2} = \frac{(0.32 - 0.21)\times 3000}{0.79} = \frac{330}{0.79} \approx 417.7\ \text{psi}$$$$P_{air} = 3000 - 417.7 = 2582.3\ \text{psi}$$So you would add pure oxygen to about 418 psi, then top up with air to 3000 psi.
FAQ
Why divide by 0.79? Air is 21% oxygen and 79% other gases; the 0.79 accounts for the oxygen already supplied by the air fraction.
Does the cylinder need to be empty? This calculation assumes an empty start. Blending into a partly full tank requires accounting for the existing gas.
Should I always analyze the mix? Yes. Temperature, real-gas behavior, and the true 20.9% oxygen content of air mean you must verify the final mix with an oxygen analyzer before diving.