Aims: To investigate the prognostic significance of hypoxia- and ferroptosis-related genes for gastric cancer (GC). Materials & methods: We extracted data on 259 hypoxia- and ferroptosis-related genes from The Cancer Genome Atlas and identified the differentially expressed genes between normal (n = 32) and tumor (n = 375) tissues. A risk score was established by univariate Cox regression analysis and LASSO penalized Cox regression analysis. Results: The risk score contained eight genes showed good performance in predicting overall survival and relapse-free survival in GC patients in both the training cohort (The Cancer Genome Atlas, n = 350) and the testing cohorts (GSE84437, n = 431; GSE62254, n = 300; GSE15459, n = 191; GSE26253, n = 432). Conclusion: The eight-gene signature may help to the improve the prognostic risk classification of GC.