Williamsburg is located at 37°16'14" North, 76°42'28" West (37.270556, -76.707778).
According to the United States Census Bureau, the city has a total area of 8.67 mi2 (22.47 km2). 8.54 mi2 (22.13 km2) of it is land and 0.13 mi2 (0.33 km2) of it is covered by water. The total area is 1.49% water.
Williamsburg is located in the Eastern Standard Time (EST) timezone, GMT-05:00. It observes Daylight Saving Time (DST).