Worcester County · Maryland

ZIP Code 21842

Ocean City, MD · 11,226 residents

City (USPS)
Ocean City
Time zone
Eastern Time
Area code
410, 443, and 667
Coordinates
38.3631° N, 75.0850° W
Land area
9.1 sq mi · 1,240 people/sq mi
75.3°W75.2°W75.1°W75.0°W74.9°W38.3°N38.4°N38.5°NZIP 19930ZIP 19944ZIP 19945ZIP 19975ZIP 21811ZIP 21813ZIP 21841ZIP 21850ZIP 21862ZIP 21863ZIP 21872ZIP 2187419945218112181319975218722187421862218425 miN
ZIP Code 21842 (highlighted) with bordering ZIP Codes and county lines. Select a neighbor to open it.

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.

Population11,226±570
Median household income$79,876
Median home value$447,700
Median rent$1,394/mo
Median age53.4
Households5,751

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

Median age53.4
Under 1813%
65 and older27.4%
Born abroad9%
Moved here in the last year11.6%

Age and sex

MaleAgeFemale
4.0%80+3.2%
5.2%70–795.8%
9.5%60–699.6%
7.2%50–599.8%
6.6%40–494.9%
3.3%30–394.5%
6.4%20–295.8%
3.5%10–192.9%
3.6%0–94.1%
Share of all residents in each age group

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$79,876±$5,443
Per-capita income$75,528
Poverty rate9.4%
Income inequality (Gini)0.550 = equal, 1 = unequal

Median household income ranks 312th of 400 ZIP Codes in Maryland. Richest ZIP Codes in Maryland

10%Under $25k
15%$25k–50k
19%$50k–75k
14%$75k–100k
16%$100k–150k
8%$150k–200k
17%$200k+
Households by annual income

Housing in ZIP 21842

Median home value$447,700
Median gross rent$1,394/mo
Housing units32,621
Median year built1983
Vacant82.4%

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

Mean commute20 minone way
Unemployment rate7.6%
Labor force participation64.4%age 16+
Broadband at home95.2%households

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 21842Worcester CountyMarylandUnited 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 rate76%78%67.6%65.2%
Median age53.450.739.438.9
Bachelor's degree or higher40.7%35.3%43.4%35.7%
Poverty rate9.4%9.9%9.4%12.5%
Unemployment rate7.6%6.7%4.9%5.2%
Mean commute20 min23 min31 min26 min
Worked from home13%12.3%19.3%15.1%
Broadband at home95.2%91.2%92.4%91%
Foreign-born residents9%4.7%16.6%14.1%

ZIP Codes bordering 21842

ZIP CodeCityPopulationMedian incomeHome valueMedian ageDirection
21813Bishopville2,999$121,472$628,00053.2NW · 6.6 mi
21811Berlin24,377$90,082$388,90054.9W · 8.0 mi
19944Fenwick Island636$121,250$1,189,30069.8N · 8.1 mi
19975Selbyville10,862$88,568$462,70059.6NW · 8.7 mi

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?
ZIP Code 21842 is in Worcester County, Maryland.
What city is ZIP Code 21842 in?
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 is the population of ZIP Code 21842?
About 11,226 people live in ZIP Code 21842, according to the Census Bureau's American Community Survey (2020–2024).
What time zone is 21842 in?
ZIP Code 21842 is in the Eastern Time zone (America/New_York).
What is the median household income in 21842?
The median household income in ZIP Code 21842 is $79,876 (2020–2024 ACS), compared with $81,745 in Worcester County and $103,678 in Maryland.
Which ZIP Codes border 21842?
21813 (Bishopville), 21811 (Berlin), 19944 (Fenwick Island), and 19975 (Selbyville).

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.