Farmington is a city in Davis County, Utah, United States. It is part of the Ogden–Clearfield, Utah Metropolitan Statistical Area. The population was 24,531 at the 2020 census, up from 18,275 at the 2010 census. It is the county seat of Davis County.