Hamburg is located in Erie county New york with a geographic area of 2.5 square miles. The total population in Hamburg is 9,672 with 49.1% male and 50.9% female. Children under age 5 represent 5.2% of the population, under age 18 equal 19.7% of the population and over age 65 is 19.9% of the population. The median household income is $85,208, per capita income is $47,729. There are a total of 4,268 housing units with 76.0% owner occupied. Education includes 15.3% of residents that are high school graduates and 57.4% with a bachelor's degree or higher. The average temperature in Hamburg in the summer is 70 degrees, and in the winter 27 degrees.