K-On! was based on a real-world elementary school in Toyosato. According to this article on Wikipedia, the elementary school moved to a new building in 2004.
Is the old elementary school open year-round to visitors and anime fans?
Anime & Manga Stack Exchange is a question and answer site for anime and manga fans. It only takes a minute to sign up.Sign up to join this community
Yes it's open to public. The other room of the building is using as office of city.
Some small things if you want to visit.