Hamburg, NY has a population of 9,576 and is the 4,065th largest city in the United States. The population density is 3,862 per sq mi which is 977% higher than the New York average and 4163% higher than the national average. The median age in Hamburg is 41 which is approximately 6% higher than the New York average of 38. In Hamburg, 62% of the population over 15 years of age are married, 96% speak English and 1% speak Spanish. 87% of Hamburg residents were born in New York, 12% were born out of state, 0% were born outside of the United States and 1% were foreign born.