BackgroundRural communities constitute a populace marked by various social challenges influencing health outcomes. As such, nonelective surgeries for cancer may have a disproportionate impact on rural populations. We explored patient and county-level factors contributing to differences in the receipt of nonelective cancer-specific surgery between rural and urban residents. MethodsThis retrospective study included adult patients captured in the SEER-Medicare data between January 2008 and December 2015 with an incident stage I-IV cancer of the stomach, liver/intrahepatic bile duct, pancreas, gallbladder/other biliary origin, or small intestine who underwent a cancer-specific surgery. The primary outcome was nonelective cancer-directed surgery among rural versus urban residents. We conducted a multivariable mixed-effects logistic regression model to adjust for confounders while accounting for county-level clustering. ResultsThe sample included 10,136 patients who underwent a surgical intervention; 2,941 (29%) were nonelective. The incidence of nonelective surgery was lower among rural compared tourban patients [351 (27%) and 2590(29%); p= 0.05]. There was no statistically significant difference in the unadjusted and adjusted odds of nonelective surgery between rural and urban residents [OR 0.88, 95% CI (0.76-1.03); p= 0.11] and [aOR 0.86, 95% CI (0.72-1.02); p= 0.080]. Additionally, high social vulnerability index counties or Black race was significantly associated with increase odds of nonelective surgery [aOR 1.33, 95% CI (1.07-1.65); p=0.009] and [aOR 1.49, 95% CI (1.26-1.77); p<0.0001], respectively. ConclusionThis study found no difference in the odds of receiving nonelective surgery for GI foregut cancers between rural and urban populations. However, Black race and high SVI were associated with higher odds of the receipt of nonelective surgery. Further research is warranted to explore if disparities in clinical outcomes exist despite the comparable likelihood of receiving nonelective surgery between rural and urban communities.