The Town of Danvers is in southern Essex County and was one of the earliest settlements in the area. Danvers, MA is located in northeastern Massachusetts, bordered by Salem on the southeast, Wenham and Beverly on the east, Topsfield on the north, Middleton on the west, and Peabody on the south. Danvers, MA is 10 miles north of Lynn, 15 miles southeast of Lawrence, 17 miles north of Boston, and 231 miles from New York City. Danvers, Mass encompasses an area of 14.09 square miles with a population of 24,174 and has a moderate climate with an average temperature of 71.6 Fahrenheit in July and 25.8 Fahrenheit in January.