Town in Worcester County, Maryland
Ocean City, Maryland
6,840 residents · 1 ZIP Code
- County
- Worcester County
- Population
- 6,840 ▼ 0.1% since 2020 (2025 est.)
- Rank in state
- 174th largest of 383 places
- Land area
- 4.4 sq mi · 1,546 people/sq mi
- Time zone
- Eastern Time
- ZIP Codes
- 21842
What county is Ocean City in?
Ocean City is in Worcester County, Maryland.
What stands out in Ocean City
- The share of residents born abroad is 10.1%, 2.1× the Worcester County (4.7%).
- The average household size is 1.77 people, 19% lower than Worcester County (2.19 people).
- The average commute is 20 minutes, 16% lower than Worcester County (23 minutes).
- The share of adults with a bachelor's degree is 41.7%, 18% higher than Worcester County (35.3%).
ZIP Codes in Ocean City
| ZIP Code | City | Population | Median income | Home value | Median age | Share in city |
|---|---|---|---|---|---|---|
| 21842 | Ocean City | 11,226 | $79,876 | $447,700 | 53.4 | 49% of ZIP |
PO Box and unique ZIP Codes
People in Ocean City
Age and sex
Race and ethnicity
- White84%
- Hispanic or Latino9.5%
- Other1.8%
- Asian1.7%
- Black1.6%
- Two or more races0.9%
- Pacific Islander0.4%
- American Indian / Alaska Native0.1%
Hispanic or Latino residents can be of any race; the other groups count non-Hispanic residents only.
Households
3,828 households, 1.77 people per household on average, 50.1% family households, and 42.1% people living alone.
Income in Ocean City
Housing in Ocean City
Owners and renters
- Owner-occupied 74.2%
- Renter-occupied 25.8%
Types of homes
- Single-family homes 22.3%
- 2–9 unit buildings 14.8%
- 10+ unit buildings 59.9%
- Mobile homes, RVs 2.9%
Work, commute and education
How workers get to work
- Drove alone66.3%
- Carpooled4.1%
- Public transit1.1%
- Walked3.9%
- Bicycle4.8%
- Worked from home17.4%
Education, adults 25+
- High school or higher95%
- Bachelor's or higher41.7%
- Graduate or professional degree16.4%
How Ocean City compares
| Ocean City | Worcester County | Maryland | United States | |
|---|---|---|---|---|
| Median household income | $77,750 | $81,745 | $103,678 | $80,734 |
| Per-capita income | $72,487 | $53,274 | $52,979 | $44,673 |
| Median home value | $429,000 | $374,700 | $419,900 | $332,700 |
| Median gross rent | $1,353/mo | $1,159/mo | $1,705/mo | $1,413/mo |
| Homeownership rate | 74.2% | 78% | 67.6% | 65.2% |
| Median age | 55.6 | 50.7 | 39.4 | 38.9 |
| Bachelor's degree or higher | 41.7% | 35.3% | 43.4% | 35.7% |
| Poverty rate | 10.9% | 9.9% | 9.4% | 12.5% |
| Unemployment rate | 5.7% | 6.7% | 4.9% | 5.2% |
| Mean commute | 20 min | 23 min | 31 min | 26 min |
| Worked from home | 17.4% | 12.3% | 19.3% | 15.1% |
| Broadband at home | 95.1% | 91.2% | 92.4% | 91% |
| Foreign-born residents | 10.1% | 4.7% | 16.6% | 14.1% |
Places near Ocean City
Area codes in Ocean City
Ocean City phone numbers use area codes 410, 443, and 667. See every phone prefix, carrier and the local time on Ocean City area codes at AreaCodeExplorer.
More about Ocean City, MD
From our sister sites, built on the same public data.
- Schools in Ocean City, MDSchoolsInspect
- Doctors in Ocean City, MDDoctorInspect
- Sunrise & sunset in Ocean City, MDDaylight Dial
- Earthquakes near Ocean City, MDQuakeLedger
- Area codes in Ocean City, MDAreaCodeExplorer
Ocean City, MD: questions and answers
What county is Ocean City, MD in?
What ZIP Codes are in Ocean City?
What is the population of Ocean City?
What time zone is Ocean City in?
What is the area code for Ocean City?
Sources: U.S. Census Bureau, American Community Survey 2020–2024 5-year estimates; 2025 Population Estimates; 2024 Gazetteer and cartographic boundary files. How we build these pages.