To examine the relationship between unit-wide Clostridium difficile infection (CDI) susceptibility and inpatient mobility and to create contagion centrality as a new predictive measure of CDI. Retrospective cohort study. A mobility network was constructed using 2 years of patient electronic health record data for a 739-bed hospital (n = 72,636 admissions). Network centrality measures were calculated for each hospital unit (node) providing clinical context for each in terms of patient transfers between units (ie, edges). Daily unit-wide CDI susceptibility scores were calculated using logistic regression and were compared to network centrality measures to determine the relationship between unit CDI susceptibility and patient mobility. Closeness centrality was a statistically significant measure associated with unit susceptibility (P < .05), highlighting the importance of incoming patient mobility in CDI prevention at the unit level. Contagion centrality (CC) was calculated using inpatient transfer rates, unit-wide susceptibility of CDI, and current hospital CDI infections. The contagion centrality measure was statistically significant (P < .05) with our outcome of hospital-onset CDI cases, and it captured the additional opportunities for transmission associated with inpatient transfers. We have used this analysis to create easily interpretable clinical tools showing this relationship as well as the risk of hospital-onset CDI in real time, and these tools can be implemented in hospital EHR systems. Quantifying and visualizing the combination of inpatient transfers, unit-wide risk, and current infections help identify hospital units at risk of developing a CDI outbreak and, thus, provide clinicians and infection prevention staff with advanced warning and specific location data to inform prevention efforts.