BackgroundGlycosylation involved in various biological function, aberrant glycosylation plays an important role in cancer development and progression. Glycosyltransferase 8 domain containing 1 (GLT8D1) and GLT8D2, as members of the glycosyltransferase family proteins, are associated with transferase activity. However, the association between GLT8D1/2 and gastric cancer (GC) remains unclear. We aimed to investigate the potential prognostic value and oncogenic role of GLT8D1/2 in GC.MethodsThe relationship between GLT8D1/2 and GC was evaluated through comprehensive bioinformatics approaches. A series of factors like gene expression patterns, Kaplan-Meier survival analyses, Cox regression analyses, prognostic nomogram, calibration curves, ROC curves, function enrichment analyses, tumor immunity association, genetic alterations, and DNA methylation were included. Data and statistical analyses were performed using R software (v3.6.3).ResultsBoth GLT8D1 and GLT8D2 expression were significantly upregulated in GC tissues(n = 414) compared with normal tissues(n = 210), and high expression of GLT8D1/2 was remarkably correlated with poor prognosis for GC patients. Cox regression analyses implied that GLT8D1/2 could act as independent prognostic factors in GC. Furthermore, gene function analyses indicated that multiple signaling pathways involving tumor oncogenesis and development enriched, such as mTOR, cell cycle, MAPK, Notch, Hedgehog, FGF, and PI3K-Akt signaling pathways. Moreover, GLT8D1/2 was significantly associated with immune cell infiltration, immune checkpoint genes, and immune regulators TMB/MSI.ConclusionGLT8D1/2 may serve as potential prognostic markers of poor prognosis in GC correlated with tumor immunity. The study provided an insight into identifying potential biomarkers and targets for prognosis, immunotherapy response, and therapy in GC.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12920-023-01559-y.