Equine gastrointestinal microbial communities vary across the gastrointestinal tract and in response to diet or disease. Understanding the composition and stability of gastric fluid microbiota in healthy horses is a prerequisite to understanding changes associated with the development of disease. The objective of this study was to describe microbial communities in the gastric fluid and feces of healthy horses longitudinally. Horses were maintained on pasture (6 weeks), stabled (5 weeks), then returned to pasture. A consistent forage diet was provided throughout. Native gastric fluid and feces were collected weekly for full-length 16S ribosomal DNA sequencing and microbial profiling analysis. Fewer taxa were identified in the gastric fluid (770) than in the feces (5284). Species richness and diversity were significantly different between sample types (p < 0.001), but not between housing locations (p = 0.3). There was a significant effect of housing and horse on the Bray–Curtis compositional diversity of gastric (p = 0.005; p = 0.009) and fecal (p = 0.001; p = 0.001) microbiota. When horses moved from pasture to stable, the relative proportions of gastric fluid Lactobacillaceae increased and Streptococcaceae decreased, while fecal Firmicutes increased and Bacteriodota decreased. Within each housing condition, there was no significant week-to-week variation in gastric (p = 0.9) or fecal (p = 0.09) microbiota. Overall, these findings support the maintenance of stable gastric and fecal microbial populations under each management condition, providing a basis for further investigation of gastric fluid microbiota in diseases of the foregut.