Winchester is a town located 8.2 miles north of downtown Boston, Massachusetts, United States in Middlesex County. It is one of the wealthiest municipalities in Massachusetts and functions largely as a bedroom community for professionals who work in the greater Boston area. The population was 22,970 at the 2020 United States Census.