The overall prognosis of advanced/metastatic gastric cancer (GC) remains poor despite the development of pharmacotherapy. Therefore, other treatment options, such as complementary and alternative medicine, should be considered to overcome this aggressive malignancy. Andrographis, which is a generally unharmful botanical compound, has gained increasing interest for its anticancer effects in multiple malignancies via the regulation of cancer progression-associated signaling pathways. In the present study, a series of in vitro experiments (cell proliferation, colony formation and apoptosis assays) was designed to elucidate the antitumor potential and mechanism of Andrographis in GC cells. The present study demonstrated that Andrographis exerted antitumor effects in GC cell lines (MKN74 and NUGC4) by inhibiting proliferation, reducing colony formation and enhancing apoptotic activity. Furthermore, it was demonstrated that the expression levels of the ferroptosis-associated genes heme oxygenase-1, glutamate-cysteine ligase catalytic and glutamate-cysteine ligase modifier were significantly upregulated after Andrographis treatment in both GC cell lines in reverse transcription-quantitative PCR experiments (P<0.05); this finding was further confirmed by immunoblotting assays (P<0.05). In conclusion, to the best of our knowledge, the present study was the first to demonstrate that Andrographis possessed antitumor properties by altering the expression levels of ferroptosis-associated genes, thereby providing novel insights into the potential of Andrographis as an adjunctive treatment option for patients with metastatic GC.