Abstract Background The increasing epidemic proportions of diabetes mellitus (DM) are a major cause of premature illness and death. However, whether DM confers the same excess risk of gastrointestinal cancer for women as it does for men remains controversial. The purpose of this study was to estimate the relation between DM and gastrointestinal cancer in women compared with men after accounting for other major risk factors based on cohort studies. Methods We performed a meta-analysis of cohort studies published through May 2017 from PubMed, Embase, and the Cochrane Library. Studies with cohort designs were stratified by sex and reported the relation between DM and esophageal cancer (EC), gastric cancer (GC), colorectal cancer (CRC), colon cancer (CC), rectal cancer (RC), hepatocellular carcinoma (HCC), or pancreatic cancer (PC) risk. The ratio of relative risk (RRR) between men and women was employed to measure the sex differences in the relation between DM and gastrointestinal cancer with a random effects model with inverse variance weighting. Results We included 38 cohort studies reporting data on 18,060,698 individuals. The pooled RRR indicated DM women was associated with an increased risk of GC (RRR: 1.14; 95%CI: 1.06–1.22; p