McLeod gauges operate by taking in a sample volume of gas from a vacuum chamber, then compressing it by tilting and infilling with mercury. The pressure in this smaller volume is then measured by a mercury manometer, and knowing the compression ratio (the ratio of the initial and final volumes), the pressure of the original vacuum can be determined by applying Boyle's law.