Mercer is a town in Somerset County, Maine, United States. The town was named after the Revolutionary War hero Hugh Mercer. The population was 709 at the 2020 census. According to the United States Census Bureau, the town has a total area of 27.36 square miles, of which 26.71 square miles is land and 0.65 square miles is water.