Free gas calculator: Real-gas cylinder content and available gas at depth

How much gas is really in your cylinder, and how much of it can you breathe? Pressure times volume gives a quick answer, but at cylinder pressures real gases don’t follow it: air and helium hold less than it promises, oxygen slightly more. This calculator uses real-gas properties from CoolProp, an open-source library of thermodynamic data, running right here in your browser. It gives you the free gas volume, its mass and the Z-factor behind it.

A cylinder never empties completely: it keeps the gas at the pressure around it, and under water that pressure is higher than at the surface. Enter the depth and the calculator also shows how much gas stays behind in the cylinder there, and how much is available to breathe.

Background

Gauge and absolute pressure

The cylinder pressure you enter is a gauge pressure: what a pressure gauge shows, 0 at the surface. The formulas need absolute pressure, which counts from a vacuum, so the calculator adds the atmospheric pressure:

p_\text{abs} = p_\text{gauge} + p_0
p_\text{abs}Absolute pressure
p_\text{gauge}Gauge pressure: what the gauge shows
p_0Atmospheric pressure, 1.01325 bar at sea level

Ambient pressures are absolute: the air pressure you can enter under ‘Not at sea level?’ (expert mode), and the ambient pressure at depth that the calculator shows.

Free gas and the Z-factor

The ideal gas law assumes Z = 1. Real gases deviate: at cylinder pressures air and helium have Z > 1 and hold less gas than the ideal gas law predicts, while oxygen has Z < 1 and holds slightly more.

The calculator uses the real-gas density at both conditions, which is the same as:

V_\text{free} = V \cdot \frac{p \cdot T_\text{ref} \cdot Z_\text{ref}}{p_\text{ref} \cdot T \cdot Z}
V_\text{free}Free gas volume at the reference conditions
VWater capacity of the cylinder
pCylinder pressure, absolute: the gauge reading plus atmospheric pressure
TCylinder temperature in kelvin
ZZ-factor in the cylinder
p_\text{ref}Reference pressure, absolute: the surrounding air pressure
T_\text{ref}Reference temperature in kelvin
Z_\text{ref}Z-factor at the reference conditions

With equal temperatures and Z_\text{ref} \approx 1 this reduces to:

V_\text{free} = V \cdot \frac{p}{p_\text{ref} \cdot Z}
V_\text{free}Free gas volume at the reference pressure
VWater capacity of the cylinder
pCylinder pressure, absolute: the gauge reading plus atmospheric pressure
p_\text{ref}Reference pressure, absolute: the surrounding air pressure
ZZ-factor in the cylinder

Available gas

A cylinder only empties down to the pressure around it. At the surface it keeps its own volume of gas at atmospheric pressure. Under water it keeps it at the higher ambient pressure, and that gas can’t be breathed until you ascend. The ambient pressure at depth is:

p_\text{amb} = p_0 + d \cdot k
p_\text{amb}Ambient pressure at depth, absolute
p_0Air pressure at the surface, absolute: 1.01325 bar at sea level
dDepth in m
kPressure per metre of water: 0.1 bar/m in salt water (EN-13319), 0.0981 bar/m in fresh water

The calculator works through the mass of the gas, with the real-gas density at each pressure. The gas held back fills the cylinder at the ambient pressure:

m_\text{held} = \rho_\text{amb} \cdot V
m_\text{held}Mass of the gas held back in the cylinder
\rho_\text{amb}Density of the gas at the ambient pressure and the cylinder temperature
VWater capacity of the cylinder

The rest is available:

V_\text{avail} = \frac{m - m_\text{held}}{\rho_\text{ref}}
V_\text{avail}Available gas at the reference conditions
mMass of the gas in the cylinder
m_\text{held}Mass of the gas held back in the cylinder
\rho_\text{ref}Density of the gas at the reference conditions

With equal temperatures, Z_\text{ref} \approx 1 and the gas held back treated as an ideal gas, this reduces to:

V_\text{avail} = \frac{p \cdot V}{p_\text{ref} \cdot Z} - \frac{p_\text{amb} \cdot V}{p_\text{ref}}
V_\text{avail}Available gas at the reference pressure
pCylinder pressure, absolute: the gauge reading plus atmospheric pressure
VWater capacity of the cylinder
p_\text{ref}Reference pressure, absolute: the surrounding air pressure
ZZ-factor in the cylinder
p_\text{amb}Ambient pressure at depth, absolute

At the surface the second term is just V: the cylinder keeps its own volume. Every 10 m of salt water holds back about one more cylinder volume. The available gas is given at the same reference as the free gas volume, so it lines up with a surface consumption rate (SAC). The gas held back isn’t lost: the cylinder gives it up as you ascend.

Scroll to Top