When a liquid and a gas are in contact, the mass of the gas that dissolves in a given quantity of liquid is proportional to the pressure of the gas above the liquid. Thus, if air is kept in contact with water at standard atmospheric pressure, each kg of water dissolves 0.017 g oxygen at 20C; if this pressure is halved (by doing the experiment at high altitude where the pressure is only 0.5 atm), the water dissolves only 0.0085 g oxygen. The law holds true only for equilibrium conditions, i.e., when enough time has elapsed so that the quantity of gas dissolved is no longer changing.