Mansfield is a town located in the U.S. state of Massachusetts. It is within Bristol County near to Providence, Rhode Island. Mansfield was incorporated in 1775. It has a total area of 20.7 square miles at 42°02′00″N 71°13′10″W. The elevation is 160 feet above sea level. As of the 2010 census data, it had a total population of 23,184. The population density was 1,130.9/sq mi. Estimated per capita income in 2016 was $43,704. Recent job growth is positively increased by 1.50 percent. The average travel time is 25 minutes. It has Zip code 02048.