Farmer City is a city in DeWitt County, Illinois, United States. The population was 2,037 at the 2010 census.
Farmer City is part of Blue Ridge Community Unit School District 18 sharing facilities with nearby Mansfield and Bellflower, Illinois. Farmer City facilities include the District Unit Office, the Ruth M. Schneider Elementary School (K-3) and Blue Ridge High School. Blue Ridge received a bronze in the U.S. News and World Report Best High Schools list.