Homer is a city in Kenai Peninsula Borough in the U.S. state of Alaska. It is 218 mi southwest of Anchorage. According to the 2020 census, the population is 5,522, up from 5,003 in 2010.