Several risk factors have been identified for esophageal adenocarcinoma, gastric cardia adenocarcinoma, esophageal squamous cell carcinoma, and noncardia gastric adenocarcinoma, but no study has comprehensively examined their contributions to the cancer burden in the general population. Herein, we estimate the population attributable risks (PARs) for various risk factors observed in a multicenter population-based case-control study. We calculated PARs by using 293 patients with esophageal adenocarcinoma, 261 with gastric cardia adenocarcinoma, 221 with esophageal squamous cell carcinoma, 368 with noncardia gastric adenocarcinoma, and 695 control subjects. We included smoking for all four tumor types and Helicobacter pylori infection for noncardia gastric adenocarcinoma as established causal risk factors as well as several other factors for which causality is under evaluation. Ever smoking, body mass index above the lowest quartile, history of gastroesophageal reflux, and low fruit and vegetable consumption accounted for 39.7% (95% confidence interval [CI] = 25.6% to 55.8%), 41.1% (95% CI = 23.8% to 60.9%), 29.7% (95% CI = 19.5% to 42.3%), and 15.3% (95% CI = 5.8% to 34.6%) of esophageal adenocarcinomas, respectively, with a combined PAR of 78.7% (95% CI = 66.5% to 87.3%). Ever smoking and body mass index above the lowest quartile were responsible for 45.2% (95% CI = 31.3% to 59.9%) and 19.2% (95% CI = 4.9% to 52.0%) of gastric cardia adenocarcinomas, respectively, with a combined PAR of 56.2% (95% CI = 38.1% to 72.8%). Ever smoking, alcohol consumption, and low fruit and vegetable consumption accounted for 56.9% (95% CI = 36.6% to 75.1%), 72.4% (95% CI = 53.3% to 85.8%), and 28.7% (95% CI = 11.1% to 56.5%) of esophageal squamous cell carcinomas, respectively, with a combined PAR of 89.4% (95% CI = 79.1% to 95.0%). Ever smoking, history of gastric ulcers, nitrite intake above the lowest quartile, and H. pylori infection were responsible for 18.3% (95% CI = 6.5% to 41.8%), 9.7% (95% CI = 5.4% to 16.8%), 40.7% (95% CI = 23.4% to 60.7%), and 10.4% (95% CI = 0.3% to 79.6%) of noncardia gastric adenocarcinomas, respectively, with a combined PAR of 59.0% (95% CI = 16.2% to 91.4%). In this population, a few known risk factors account for a majority of esophageal and gastric cancers. These results suggest that the incidence of these cancers may be decreased by reducing the prevalence of smoking, gastroesophageal reflux, and being overweight and by increasing the consumption of fruits and vegetables.