Worcester County · Maryland
ZIP Code 21842
Ocean City, MD · 11,226 residents
- County
- Worcester County
- City (USPS)
- Ocean City
- State
- Maryland
- Time zone
- Eastern Time
- Coordinates
- 38.3631° N, 75.0850° W
- Land area
- 9.1 sq mi · 1,240 people/sq mi
What county is 21842 in?
ZIP Code 21842 is in Worcester County, Maryland.
The Postal Service's default place name for 21842 is Ocean City. By Census boundaries it covers Ocean City (town, 49% of the land) and West Ocean City (community, 39% of the land). The remaining 11% is unincorporated.
What stands out in ZIP 21842
- The share of residents born abroad is 9%, 91% higher than Worcester County (4.7%).
- The median rent is $1,394 a month, 20% higher than Worcester County ($1,159 a month).
- The median home value is $447,700, 19% higher than Worcester County ($374,700).
- The average commute is 20 minutes, 16% lower than Worcester County (23 minutes).
People in ZIP 21842
Age and sex
Race and ethnicity
- White85.9%
- Hispanic or Latino8.3%
- Black1.8%
- Two or more races1.4%
- Other1.2%
- Asian1.1%
- Pacific Islander0.3%
- American Indian / Alaska Native0.1%
Hispanic or Latino residents can be of any race; the other groups count non-Hispanic residents only.
Households
5,751 households, 1.92 people per household on average, 52.4% family households, and 39.5% people living alone.
Income in ZIP 21842
Median household income ranks 312th of 400 ZIP Codes in Maryland. Richest ZIP Codes in Maryland
Housing in ZIP 21842
Owners and renters
- Owner-occupied 76%
- Renter-occupied 24%
Types of homes
- Single-family homes 27.6%
- 2–9 unit buildings 14%
- 10+ unit buildings 55.1%
- Mobile homes, RVs 3.3%
Work, commute and education
How workers get to work
- Drove alone73.7%
- Carpooled4%
- Public transit0.7%
- Walked3.6%
- Bicycle3.2%
- Worked from home13%
Education, adults 25+
- High school or higher94.8%
- Bachelor's or higher40.7%
- Graduate or professional degree16.1%
How ZIP 21842 compares
| ZIP 21842 | Worcester County | Maryland | United States | |
|---|---|---|---|---|
| Median household income | $79,876 | $81,745 | $103,678 | $80,734 |
| Per-capita income | $75,528 | $53,274 | $52,979 | $44,673 |
| Median home value | $447,700 | $374,700 | $419,900 | $332,700 |
| Median gross rent | $1,394/mo | $1,159/mo | $1,705/mo | $1,413/mo |
| Homeownership rate | 76% | 78% | 67.6% | 65.2% |
| Median age | 53.4 | 50.7 | 39.4 | 38.9 |
| Bachelor's degree or higher | 40.7% | 35.3% | 43.4% | 35.7% |
| Poverty rate | 9.4% | 9.9% | 9.4% | 12.5% |
| Unemployment rate | 7.6% | 6.7% | 4.9% | 5.2% |
| Mean commute | 20 min | 23 min | 31 min | 26 min |
| Worked from home | 13% | 12.3% | 19.3% | 15.1% |
| Broadband at home | 95.2% | 91.2% | 92.4% | 91% |
| Foreign-born residents | 9% | 4.7% | 16.6% | 14.1% |
ZIP Codes bordering 21842
Cities and communities in 21842
Area codes for 21842
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.
ZIP Code 21842: questions and answers
What county is ZIP Code 21842 in?
What city is ZIP Code 21842 in?
What is the population of ZIP Code 21842?
What time zone is 21842 in?
What is the median household income in 21842?
Which ZIP Codes border 21842?
Sources: U.S. Census Bureau, American Community Survey 2020–2024 5-year estimates; 2025 Population Estimates; 2024 Gazetteer and cartographic boundary files; ZIP Code place names: GeoNames (CC BY 4.0). How we build these pages.