Univariate-cox regression analysis of 33 pyroptosis-related genes showed that GPX4 (HR: 1.24 (1.06–1.46); p = 0.008), NLRP7 (HR: 0.86 (0.76–0.96; p = 0.009), CASP6 (HR: 0.87: (0.76–0.99); p = 0.032), NLRP6 (HR: 0.90 (0.82–0.99); p = 0.04), IL6 (HR: 1.07 (1.00–1.13); p = 0.047), CASP5 (HR: 0.90 (0.82–0.99); p = 0.023), CASP4 (HR: 0.84 (0.71–0.999); p = 0.048) and TIRAP (HR: 0.73 (0.59–0.91); p = 0.004) had significant correlations to prognosis across 1275 gastric cancer patients. This evidence concerns the gene IL6 and gastric cancer.