Hannibal is a town in Oswego County, New York, United States. The population was 4,854 at the 2010 census. The name is derived from the hero of ancient Carthage, Hannibal.
According to the United States Census Bureau, the town has a total area of 44.8 square miles (116.0 km²), of which, 44.8 square miles (116.0 km²) of it is land and 0.04 square miles (0.1 km²) of it (0.04%) is water.
The west town line is the border of Cayuga County, New York.
As of the census of 2000, there were 4,956 people, 1,760 households, and 1,307 families residing in the town. The population density was 110.7 people per square mile (42.7/km²). There were 1,962 housing units at an average density of 43.8 per square mile (16.9/km²). The racial makeup of the town was 98.00% White, 0.22% Black or African American, 0.44% Native American, 0.12% Asian, 0.46% from other races, and 0.75% from two or more races. Hispanic or Latino of any race were 0.89% of the population.
There were 1,760 households out of which 41.1% had children under the age of 18 living with them, 56.3% were married couples living together, 11.7% had a female householder with no husband present, and 25.7% were non-families. 18.6% of all households were made up of individuals and 7.2% had someone living alone who was 65 years of age or older. The average household size was 2.81 and the average family size was 3.16.
In the town, the population was spread out with 30.5% under the age of 18, 8.3% from 18 to 24, 30.5% from 25 to 44, 22.2% from 45 to 64, and 8.4% who were 65 years of age or older. The median age was 34 years. For every 100 females, there were 101.3 males. For every 100 females age 18 and over, there were 99.6 males.
The median income for a household in the town was $35,278, and the median income for a family was $38,355. Males had a median income of $33,083 versus $23,667 for females. The per capita income for the town was $16,344. About 13.6% of families and 15.3% of the population were below the poverty line, including 20.3% of those under age 18 and 17.4% of those age 65 or over.