Harlan is located in Shelby county Iowa with a geographic area of 4.4 square miles. The total population in Harlan is 4,813 with 47.8% male and 52.2% female. Children under age 5 represent 6.2% of the population, under age 18 equal 19.4% of the population and over age 65 is 26.1% of the population. The median household income is $50,379, per capita income is $34,257. There are a total of 2,309 housing units with 66.4% owner occupied. Education includes 26.8% of residents that are high school graduates and 22.4% with a bachelor's degree or higher. The average temperature in Harlan in the summer is 72 degrees, and in the winter 23 degrees.