Sunbury is located at 40°51'43" North, 76°47'40" West (40.862222, -76.794722).
According to the United States Census Bureau, the city has a total area of 2.15 mi2 (5.58 km2). 2.12 mi2 (5.50 km2) of it is land and 0.03 mi2 (0.08 km2) of it is covered by water. The total area is 1.39% water.
Sunbury is located in the Eastern Standard Time (EST) timezone, GMT-05:00. It observes Daylight Saving Time (DST).