Lockport is located at 43°10'13" North, 78°41'25" West (43.170278, -78.690278).
According to the United States Census Bureau, the city has a total area of 8.65 mi2 (22.40 km2). 8.53 mi2 (22.09 km2) of it is land and 0.12 mi2 (0.31 km2) of it is covered by water. The total area is 1.39% water.
Lockport is located in the Eastern Standard Time (EST) timezone, GMT-05:00. It observes Daylight Saving Time (DST).