Plan your trip to the beach with this snapshot of year-round temperatures in Ocean City: The hottest months are usually August and July, with an average temperature of 28°C, while the coldest months are January and February, with an average of 14°C. The rainiest months in Ocean City are August, July, June and December, with each month seeing an average of 182 mm of rainfall.