Harmar Township is a township in Allegheny County, Pennsylvania, United States. The population was 2,921 at the 2010 census.
The township was named after Harmar Denny, a U.S. congressman and son of Ebenezer Denny.
According to the United States Census Bureau, the township has a total area of 6.4 square miles (17 km2), of which 6.0 square miles (16 km2) is land and 0.5 square miles (1.3 km2), or 7.45%, is water.
Harmar Township is entirely in the Allegheny River drainage basin and contains one undeveloped state park, Allegheny Islands State Park, on three alluvial islands in the Allegheny River. Deer Creek flows through the township; it joins the Allegheny at Harmar.
As of the census of 2000, there were 3,242 people, 1,522 households, and 882 families residing in the township. The population density was 543.3 people per square mile (209.7/km²). There were 1,637 housing units at an average density of 274.3/sq mi (105.9/km²). The racial makeup of the township was 97.75% White, 0.68% African American, 0.09% Native American, 0.99% Asian, 0.06% from other races, and 0.43% from two or more races. Hispanic or Latino of any race were 0.56% of the population.