Eastham /ˈiːsthæm/ is a town in Barnstable County, Massachusetts, United States, Barnstable County being coextensive with Cape Cod. The population was 4,956 at the 2010 census.For geographic and demographic information about the village of North Eastham, please see North Eastham, Massachusetts.