A series of host genes that respond to Helicobacter pylori (H. pylori) infection are involved in the process of gastric carcinogenesis. This study sought to examine interactions among polymorphisms of H. pylori-related genes PGC, PTPN11, TLR4, and IL1B and assess whether their interaction effects were modified by H. pylori infection. Thirteen polymorphisms of the aforementioned genes were genotyped by the Sequenom MassARRAY platform in 714 gastric cancer patients, 907 atrophic gastritis cases and 1276 healthy control subjects. When we considered the host genetic effects alone, gene-gene interactions consistently decreased the risks of gastric cancer and/or atrophic gastritis, including three two-way interactions: PGC rs6912200-PTPN11 rs12229892, PGC rs4711690-IL1B rs1143623 and PTPN11 rs12229892-IL1B rs1143623 and a three-way interaction: PGC rs4711690-PGC rs6912200-PTPN11 rs12229892. When the effect modification of H. pylori infection was evaluated, the cumulative effects of the aforementioned three-way interaction on atrophic gastritis susceptibility switched from being beneficial to being risky by the status of H. pylori infection. These data showed that SNP interactions among H. pylori-related genes PGC, PTPN11, and IL1B, are associated with susceptibility to gastric carcinogenesis. Moreover, we provided important hints of an effect modification by H. pylori infection on the cumulative effect of PGC and PTPN11 polymorphisms. Functional experiments and further independent large-scale studies especially in other ethnic populations are still needed to confirm our results.