•Penal and healthcare institutions generate and mitigate community-level health inequality, respectively.•Arkansas Counties with high prison churn and disadvantage have higher rates of HIV/AIDS.•Hospital density moderates effect of prison churn on incidence of HIV/AIDS.
© 2023 The Authors.