Gettysburg is located at 39°49'50" North, 77°13'53" West (39.830833, -77.231389).
According to the United States Census Bureau, the borough has a total area of 1.65 mi2 (4.26 km2). 1.64 mi2 (4.25 km2) of it is land and 0.00 mi2 (0.01 km2) of it is covered by water. The total area is 0.29% water.
Gettysburg is located in the Eastern Standard Time (EST) timezone, GMT-05:00. It observes Daylight Saving Time (DST).