GDP-l-galactose phosphorylase (GGP) is a key rate-limiting enzyme in plant ascorbic acid synthesis, which plays an important role in plant growth and development as well as stress response. However, the presence of GGP and its function in potato and pepper are not known. In this study, we first identified two GGP genes in each potato and pepper genomes using a genome-wide search approach. We then analyzed their physicochemical properties, conserved domains, protein structures and phylogenetic relationships. Phylogenetic tree analysis revealed that members of the potato and pepper GGP gene families are related to eggplant (Solanum melongena L.), Arabidopsis (Arabidopsis thaliana L.), tobacco (Nicotiana tabacum L.) and tomato (Solanum lycopersicum L.), with tomato being the most closely related. The promoter sequences mainly contain homeopathic elements such as light-responsive, hormone-responsive and stress-responsive, with light-responsive elements being the most abundant. By analyzing the structure of the genes, it was found that there is no transmembrane structure or signal peptide in the GGP gene family of potatoes and peppers, and that all of its members are hydrophilic proteins. The expression profiles of different tissues show that StGGP1 has the highest expression levels in leaves, StGGP2 has the highest expression levels in stamens, and CaGGPs have the highest expression levels in the early stages of fruit development (Dev1). It was found that StGGPs and CaGGPs genes showed different response to phytohormones and abiotic stresses. Abscisic acid (ABA) treatment induced the most significant change in the expression of StGGPs, while the expression of CaGGPs showed the most pronounced change under methyl jasmonate (MeJA) treatment. StGGPs responded mainly to dark treatment, whereas CaGGPs responded mainly to NaCl stress. These results provide an important basis for a detailed study about the functions of GGP homologous genes in potato and pepper in response to abiotic stresses.