Haverhill ( ) is a city in Essex County, Massachusetts, United States. Haverhill is located 35 miles north of Boston on the New Hampshire border and about 17 miles from the Atlantic Ocean. The population was 60,879 at the 2010 census.