The ALPHA-g experiment at CERN aims to perform the first-ever precision measurement of the weight of antimatter, using antihydrogen atoms confined in a magnetic trap. In the measurement, anti-atoms are allowed to escape through either a lower or an upper port in the trap, the up-down balance of which depends on gravity and the trap field at the ports.