Hatfield is a borough in Montgomery County, Pennsylvania, United States. The population was 3,290 at the time of the 2010 census. It is part of the North Penn Valley region that is centered around the borough of Lansdale. The borough is surrounded by Hatfield Township.
According to the United States Census Bureau, the borough has a total area of 0.6 square miles (1.6 km2), all of it land.
As of the 2010 census, the borough was 66.6% White, 4.1% Black or African American, 0.1% Native American, 23.5% Asian, and 2.9% were two or more races. 6.8% of the population were of Hispanic or Latino ancestry
As of the census of 2000, there were 2,605 people, 1,106 households, and 650 families residing in the borough. The population density was 4,102.7 people per square mile (1,596.5/km2). There were 1,139 housing units at an average density of 1,793.9 per square mile (698.0/km2). The racial makeup of the borough was 82.19% White, 1.77% African American, 0.31% Native American, 12.05% Asian, 0.04% Pacific Islander, 1.42% from other races, and 2.23% from two or more races.