The prevalence of gastric disorders in high-performance horses, especially gastric ulceration, ranges from 50 to 90%. These pathological conditions have negative impacts on athletic performance and health. This study was designed to evaluate changes in gastric pH during a 24 h period and to compare gastrin concentrations at different time points in horses undergoing general inhalation anesthesia and dorsal recumbency. Twenty-two mixed-breed mares weighing 400 ± 50 kg and aged 8 ± 2 years were used. Of these, eight were fasted for 8 h and submitted to 90 min of general inhalation anesthesia in dorsal recumbency. Gastric juice samples were collected prior to anesthesia (T0), and then at 15 min intervals during anesthesia (T15-T90). After recovery from anesthesia (45 ± 1 min), samples were collected every hour for 24 h (T1 to T24) for gastric juice pH measurement. During this period, mares had free access to Bermuda grass hay and water and were fed a commercial concentrate twice (T4 and T16). In a second group (control), four non-anesthetized mares were submitted to 8 h of fasting followed by nasogastric intubation. Gastric juice samples were then collected at T0, T15, T30, T45, T60, T75, and T90. During this period, mares did not receive food or water. After 45 min, mares had free access to Bermuda grass hay and water, and gastric juice samples were collected every hour for four hours (T1 to T4). In a third group comprising ten non-fasted, non-anesthetized mares with free access to Bermuda grass hay and water, gastric juice samples were collected 30 min after concentrate intake (T0). In anesthetized mares, blood gastrin levels were measured prior to anesthesia (8 h fasting; baseline), during recovery from anesthesia, and 4 months after the anesthetic procedure, 90 min after the morning meal. Mean values of gastric juice pH remained acidic during general anesthesia. Mean pH values were within the physiological range (4.52 ± 1.69) and did not differ significantly between time points (T15-T90; p > 0.05). After recovery from anesthesia, mean gastric pH values increased and remained in the alkaline range throughout the 24 h period of evaluation. Significant differences were observed between T0 (4.88 ± 2.38), T5 (7.08 ± 0.89), T8 (7.43 ± 0.22), T9 (7.28 ± 0.36), T11 (7.26 ± 0.71), T13 (6.74 ± 0.90), and T17 (6.94 ± 1.04) (p < 0.05). The mean gastric juice pH ranged from weakly acidic to neutral or weakly alkaline in all groups, regardless of food and water intake (i.e., in the fasted, non-fasted, and fed states). Mean gastric pH measured in the control group did not differ from values measured during the 24 h post-anesthesia period or in the non-fasted group. Gastrin concentrations increased significantly during the post-anesthetic period compared to baseline (20.15 ± 7.65 pg/mL and 15.15 ± 3.82 pg/mL respectively; p < 0.05). General inhalation anesthesia and dorsal recumbency did not affect gastric juice pH, which remained acidic and within the physiological range. Gastric juice pH was weakly alkaline after recovery from anesthesia and in the fasted and fed states. Serum gastrin levels increased in response to general inhalation anesthesia in dorsal recumbency and were not influenced by fasting. Preventive pharmacological measures are not required in horses submitted to general anesthesia and dorsal recumbency.