ABSTRACT Early detection is crucial for increasing the survival rate of gastric cancer (GC). We aimed to identify a methylated cell-free DNA (cfDNA) marker panel for detecting GC. The differentially methylated CpGs (DMCs) were selected from datasets of The Cancer Genome Atlas (TCGA) and Gene Expression Omnibus (GEO) databases. The selected DMCs were validated and further selected in tissue samples (40 gastric cancer and 36 healthy white blood cell samples) and in a quarter sample volume of plasma samples (37 gastric cancer, 12 benign gastric disease, and 43 healthy individuals). The marker combination selected was then evaluated in a normal sample volume of plasma samples (35 gastric cancer, 39 control diseases, and 40 healthy individuals) using real-time methylation-specific PCR (MSP). The analysis of the results compared methods based on 2−ΔΔCt values and Ct values. In the results, 30 DMCs were selected through bioinformatics methods, and then 5 were selected for biological validation. The marker combination of two fragments of IRF4 (IRF4–1 and IRF4–2) and one of ZEB2 was selected due to its good performance. The Ct-based method was selected for its good results and practical advantages. The assay, IRF4–1 and IRF4–2 in one fluorescence channel and ZEB2 in another, obtained 74.3% sensitivity for the GC group at any stage, at 92.4% specificity. In conclusion, the panel of IRF4 and ZEB2 in plasma cfDNA demonstrates good diagnostic performance and application potential in clinical settings.