Ocean City is located at 39°16'39" North, 74°34'28" West (39.277500, -74.574722).
According to the United States Census Bureau, the city has a total area of 11.07 mi2 (28.68 km2). 6.92 mi2 (17.92 km2) of it is land and 4.16 mi2 (10.76 km2) of it is covered by water. The total area is 37.53% water.
Ocean City is located in the Eastern Standard Time (EST) timezone, GMT-05:00. It observes Daylight Saving Time (DST).