Ocean City, MD has a population of 7,041 and is the 5,161st largest city in the United States. The population density is 1,597 per sq mi which is 237% higher than the Maryland average and 1662% higher than the national average. The median age in Ocean City is 56 which is approximately 47% higher than the Maryland average of 38. In Ocean City, 59% of the population over 15 years of age are married, 92% speak English and 2% speak Spanish. 47% of Ocean City residents were born in Maryland, 44% were born out of state, 1% were born outside of the United States and 8% were foreign born.