Farmington is a town located in the northern part of Ontario County, New York, United States.
The town was formed along with its county in 1789, and settlement of the region began the same year.
According to the United States Census Bureau, the town has a total area of 39.5 square miles (102 km2), all land.
18.6% of all households were made up of individuals, and 4.7% had someone living alone who was 65 years of age or older.
The Ontario County Sheriff's department provides law enforcement in the town as well as the New York State Police.
The New York State Police Troop E headquarters is located in Farmington and serves a 10-county region.
Victor-Farmington Volunteer Ambulance provides EMS service to the town.