A quantitative analysis of hydrogen trapping