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_0p_\text{abs}Absolute pressurep_\text{gauge}Gauge pressure: what the gauge showsp_0Atmospheric pressure, 1.01325 bar at sea levelAmbient 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 conditionsVWater capacity of the cylinderpCylinder pressure, absolute: the gauge reading plus atmospheric pressureTCylinder temperature in kelvinZZ-factor in the cylinderp_\text{ref}Reference pressure, absolute: the surrounding air pressureT_\text{ref}Reference temperature in kelvinZ_\text{ref}Z-factor at the reference conditionsWith 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 pressureVWater capacity of the cylinderpCylinder pressure, absolute: the gauge reading plus atmospheric pressurep_\text{ref}Reference pressure, absolute: the surrounding air pressureZZ-factor in the cylinderAvailable 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 kp_\text{amb}Ambient pressure at depth, absolutep_0Air pressure at the surface, absolute: 1.01325 bar at sea leveldDepth in mkPressure per metre of water: 0.1 bar/m in salt water (EN-13319), 0.0981 bar/m in fresh waterThe 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 Vm_\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 temperatureVWater capacity of the cylinderThe rest is available:
V_\text{avail} = \frac{m - m_\text{held}}{\rho_\text{ref}}V_\text{avail}Available gas at the reference conditionsmMass of the gas in the cylinderm_\text{held}Mass of the gas held back in the cylinder\rho_\text{ref}Density of the gas at the reference conditionsWith 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 pressurepCylinder pressure, absolute: the gauge reading plus atmospheric pressureVWater capacity of the cylinderp_\text{ref}Reference pressure, absolute: the surrounding air pressureZZ-factor in the cylinderp_\text{amb}Ambient pressure at depth, absoluteAt 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.