Our study demonstrated that higher folate and lower B12, as well as MTHFR rs1801131, may be independent risk factors for GDM. Here, MTHFR is linked to gestational diabetes.