To manipulate nasal microbiota for respiratory health, we need to better understand how this microbial community is assembled and maintained. Previous work has demonstrated that the pH in the nasal passage experiences temporal fluctuations. Yet, the impact of such pH fluctuations on nasal microbiota is not fully understood. Here, we examine how temporal fluctuations in pH might affect the coexistence of nasal bacteria in in silico communities. We take advantage of the cultivability of nasal bacteria to experimentally assess their responses to pH and the presence of other species. Based on experimentally observed responses, we formulate a mathematical model to numerically investigate the impact of temporal pH fluctuations on species coexistence. We assemble in silico nasal communities using up to 20 strains that resemble the isolates that we have experimentally characterized. We then subject these in silico communities to pH fluctuations and assess how the community composition and coexistence is impacted. Using this model, we then simulate pH fluctuations—varying in amplitude or frequency—to identify conditions that best support species coexistence. We find that the composition of nasal communities is generally robust against pH fluctuations within the expected range of amplitudes and frequencies. Our results also show that cooperative communities and communities with lower niche overlap have significantly lower composition deviations when exposed to temporal pH fluctuations. Overall, our data suggest that nasal microbiota could be robust against environmental fluctuations.