Acute gastrointestinal illness (AGI) remains a significant public health issue and differences in risk based on a comprehensive set of sociodemographic characteristics remain poorly understood. Thus, this retrospective cohort study was conducted to identify the risk of incurring an AGI-related emergency department (ED) visit or inpatient hospitalization based on various sociodemographic factors. Linked respondents of Canadian Community Health Survey cycles 2.1, 3.1, and 2007–2015 were followed from their interview date until 31 December 2017, using the National Ambulatory Care Reporting System (NACRS) and the Discharge Abstract Database (DAD) to capture emergency ED visits and hospitalizations due to AGI, respectively. Effects of identified potential risk factors for the incidence of AGI-related ED visits or hospitalizations were estimated Cox proportional hazards regression to generate hazard ratios (HRs) with 95% confidence intervals (CIs). A total of 190,700 respondents were linked to NACRS and 470,700 were linked to DAD. Six per cent of respondents visited an ED and 2% were hospitalized for AGI. Fully-adjusted estimates revealed that high-risk groups with the strongest effects were people with poor self-perceived health (ED visits: HR 1.47 (95% CI 1.40–1.54), hospitalizations: HR 1.92 (95% CI 1.82–2.02)), and people living with at least one chronic condition (ED visits: HR 1.54 (95% CI 1.47–1.61), hospitalizations: HR 1.65 (95% CI 1.57–1.73)). This study identified risk factors for requiring hospital care for AGI in the Canadian context. Additional research is needed to investigate mechanisms for differential exposure to pathogens by sociodemographic characteristics that might lead to increased risks of AGI.