We assessed the effect of rotavirus vaccination coverage on the number of inpatients with gastroenteritis of all ages in Japan. We identified patients admitted with all-cause gastroenteritis during 2011-2019 using data from the Diagnosis Procedure Combination system in Japan. We used generalized estimating equations with a Poisson distribution, using hospital codes as a cluster variable to estimate the impact of rotavirus vaccination coverage by prefecture on monthly numbers of inpatients with all-cause gastroenteritis. We analyzed 294,108 hospitalizations across 569 hospitals. Higher rotavirus vaccination coverage was associated with reduced gastroenteritis hospitalizations compared with the reference category of vaccination coverage <40% (e.g., for coverage >80%, adjusted incidence rate ratio was 0.87 [95% CI 0.83-0.90]). Our results show that achieving higher rotavirus vaccination coverage among infants could benefit the entire population by reducing overall hospitalizations for gastroenteritis for all age groups.