The unscientific application of nitrogen (N) fertilizer not only increases the economic input of pear growers but also leads to environmental pollution. Improving plant N use efficiency (NUE) is the most effective economical method to solve the above problems. The absorption and utilization of N by plants is a complicated process. Glutamine synthetase (GS) and glutamate synthase (GOGAT) are crucial for synthesizing glutamate from ammonium in plants. However, their gene family in pears has not been documented. This study identified 29 genes belonging to the GS and GOGAT family in the genomes of Pyrus betulaefolia (P.be, 10 genes), Pyrus pyrifolia (P.py, 9 genes), and Pyrus bretschneideri (P.br, 10 genes). These genes were classified into two GS subgroups (GS1 and GS2) and two GOGAT subgroups (Fd–GOGAT and NADH–GOGAT). The similar exon–intron structures and conserved motifs within each cluster suggest the evolutionary conservation of these genes. Meanwhile, segmental duplication has driven the expansion and evolution of the GS and GOGAT gene families in pear. The tissue–specific expression dynamics of PbeGS and PbeGOGAT genes suggest significant roles in pear growth and development. Cis–acting elements of the GS and GOGAT gene promoters are crucial for plant development, hormonal responses, and stress reactions. Furthermore, qRT–PCR analysis indicated that PbeGSs and PbeGOGATs showed differential expression under exogenous hormones (GA3, IAA, SA, ABA) and abiotic stress (NO3− and salt stress). In which, the expression of PbeGS2.2 was up–regulated under hormone treatment and down–regulated under salt stress. Furthermore, physiological experiments demonstrated that GA3 and IAA promoted GS, Fd–GOGAT, and NADH–GOGAT enzyme activities, as well as the N content. Correlation analysis revealed a significant positive relationship between PbeGS1.1, PbeGS2.2, PbeNADH–GOGATs, and the N content. Therefore, PbeGS1.1, PbeGS2.2, and PbeNADH–GOGATs could be key candidate genes for improving NUE under plant hormone and abiotic stress response. To the best of our knowledge, our study provides valuable biological information about the GS and GOGAT family in the pear for the first time and establishes a foundation for molecular breeding aimed at developing high NUE pear rootstocks.