Essex is a coastal town in Essex County, Massachusetts, 26 miles (42 km) north of Boston and 13 miles (21 km) southeast of Newburyport. The population was 3,675 at the 2020 census.[1]