Prevention, mitigation, and regulation of bacterial contaminants in groundwater require a fundamental understanding of the mechanisms of transport and attachment in complex geological materials. Discrepancies in bacterial transport behaviors observed between field studies and laboratory experiments indicate an incomplete understanding of dynamic bacterial transport and immobilization processes in realistic heterogeneous geologic systems. Here, we develop a new experimental approach for in situ quantification of dynamic bacterial transport and attachment distribution in geologic media that relies on radiolabelingEscherichia coliwith positron-emitting radioisotopes and quantifying transport with three-dimensional (3D) positron emission tomography (PET) imaging. Our results indicate that the highest bacterial attachment occurred at the interfaces between sand layers oriented orthogonal to the direction of flow. The predicted bacterial attachment from a 3D numerical model matched the experimental PET results, highlighting that the experimentally observed bacterial transport behavior can be accurately captured with a distribution of a first-order irreversible attachment model. This is the first demonstration of the direct measurement of attachment coefficient distributions from bacterial transport experiments in geologic media and provides a transformational approach to better understand bacterial transport mechanisms, improve model parametrization, and accurately predict how local geologic conditions can influence bacterial fate and transport in groundwater.