Harrisburg is located at 40°16'24" North, 76°53'3" West (40.273611, -76.884444).
According to the United States Census Bureau, the city has a total area of 11.44 mi2 (29.63 km2). 8.11 mi2 (21.01 km2) of it is land and 3.33 mi2 (8.62 km2) of it is covered by water. The total area is 29.10% water.
Harrisburg is located in the Eastern Standard Time (EST) timezone, GMT-05:00. It observes Daylight Saving Time (DST).