Abstract. The deuterium inventory in ASDEX Upgrade was determined by quantitative ion beam analysis techniques and SIMS for di erent discharge campaigns between the years 2002 and 2005. ASDEX Upgrade was a carbon dominated machine during this phase. Full poloidal sections of the lower and upper divertor tile surfaces, limiter tiles, gaps between divertor tiles, gaps between inner heat shield tiles, and samples from remote areas below the roof ba e and in pump ducts were analyzed, thus o ering an exhaustive survey of all relevant areas in ASDEX Upgrade. Deuterium is mainly trapped on plasma exposed surfaces of inner divertor tiles, where about 70% of the retained deuterium inventory are found. About 20% of the inventory are retained at or below the divertor roof ba e, and about 10% are observed in other areas, such as the outer divertor and in gaps between tiles. The long term deuterium retention is 3 4% of the total deuterium input. The obtained results are compared to gas balance measurements, and conclusions about tritium retention in ITER are made.