Farmington is a city in Davis County, Utah, United States. It is part of the Ogden–Clearfield, Utah Metropolitan Statistical Area. The population was 18,275 at the 2010 census and was estimated at 25,339 in 2019. An amusement park, called Lagoon Amusement Park, is located in Farmington.
The city was ranked 12th on Money magazine's "Best Places to Live" index in 2011.
The region that is now Farmington was settled in 1847 by the Haight family, a Mormon pioneer family, that established a farm and an inn. Five more pioneering families migrated to this region in the autumn of 1849. The region developed into an undefined community originally called North Cottonwood Settlement. In 1852, the territorial legislature picked North Cottonwood as the county seat and officially named it Farmington. Following orders from Daniel H. Wells and Brigham Young, Farmington residents built a wall around the city in 1853 under the direction of Major Thomas S. Smith. This walled townsite became known as "the Fort".