Westfield is a city in Hampden County, in the Pioneer Valley of western Massachusetts, United States. Westfield was first settled in 1660. It is part of the Springfield, Massachusetts Metropolitan Statistical Area. The population was 40,834 at the 2020 census.