The function of FPGS (folylpolyglutamate synthase, Ensembl gene identifier ENSG00000136877) is as follows. Catalyzes conversion of folates to polyglutamate derivatives allowing concentration of folate compounds in the cell and the intracellular retention of these cofactors, which are important substrates for most of the folate-dependent enzymes that are involved in one-carbon transfer reactions involved in purine, pyrimidine and amino acid synthesis. Unsubstituted reduced folates are the preferred substrates. Metabolizes methotrexate (MTX) to polyglutamates. {ECO:0000269|PubMed:8408018, ECO:0000269|PubMed:8408019, ECO:0000269|PubMed:8408021, ECO:0000269|PubMed:8662720}.