Background Activity of cytochrome P450 (CYP), a polymorphic carcinogen-activating enzyme, is exaggerated following Helicobacter pylori infection. We studied the role of CYP2E1, CYP1A2 (rs762551), and CYP1A1 (rs4646903) polymorphisms in association with H. pylori infection in gastric carcinogenesis. Methods Genotyping of CYP2E1 (96-bp insertion), CYP1A2 (164A to C), and CYP1A1 (3801C to T) was carried out in 88, 76, 53, and 170 patients with gastric cancer (GC), functional dyspepsia (FD), peptic ulcer (PU), and healthy controls (HC), respectively. Serum IgG antibody (all subjects), rapid urease test, and histology (GC, FD, and PU patients) were used to test for H. pylori. Results CYP2E1 gene polymorphism was more common among patients with GC than HC and PU [48/88 (54.5 %) Conclusions The presence of CYP2E1 (96-bp insertion) is associated with increased risk of GC even in absence of H. pylori. CYP1A2 CC or CT is associated with reduced risk of GC.