Harlem Township is located in Winnebago County, Illinois. As of the 2010 census, its population was 40,158 and it contained 16,025 housing units.
According to the 2010 census, the township has a total area of , of which (or 98.23%) is land and (or 1.77%) is water.