Among pathogens shed by cattle, Escherichia coli O157 ranks highest in those causing human illness. To date, prevalence and risk factors for O157 shedding have been assessed in feedlot, but not dairy cattle. The study aimed to determine prevalence levels and risk factors for O157 atypical enteropathogenic E. coli (aEPEC) and enterohaemorrhagic E. coli (EHEC) shedding in dairy cattle. Dairy cattle (n = 899) within the first 21 days of lactation were sampled monthly over the course of 1 year, on three dry lot dairies surrounding Fort Collins, CO. During visits multiple factors were measured (disease history, pharmaceutical use, climate measures, etc.), and cattle faeces were collected and assessed for presence of O157 and virulence genes. Logistic regression analysis was performed using O157 outcomes and measured factors. Prevalence of O157 aEPEC was 3·7%, while EHEC was 3·0%. Many potential risk factors were highly correlated, and used to build separate multivariable models. An increase in humidity was positively associated with aEPEC, while fluid faeces and history of disease showed a negative association. Meanwhile, an increase in temperature and antibiotic treatment was positively associated with EHEC, while more days in milk, higher hygiene score and cow contact were negatively associated. These results may guide mitigation strategies that reduce O157 shedding, and contamination of the human food chain.