Skip to content

ZIP code 21842: Ocean City, MD

21842 is a ZIP code in Ocean City, Maryland, mainly in Worcester County, part of the Ocean Pines, MD micro area. About 11,226 people live here.

Population
11,226
Median household income
$79,876
Typical home value
$444,800-0.8% in 12 months
Median rent
$1,394gross, per month
Median age
53.4
Homeowners
76%of occupied homes
Loading map…

Shaded: ZIP code 21842's area. Click anywhere on the map to see which ZIP code it's in.

ZIP codes within 10 milesWithin 25 miles

ZIP code 21842 details

CityOcean City
StateMaryland
CountyWorcester County
Metro areaOcean Pines, MD
Time zoneEastern Time (UTC−5), observes daylight saving time
TypeStandard (delivery area)
Land area9.1 sq mi, plus 12.3 sq mi of water
Population density1,240 people per sq mi
Bachelor's degree or higher40.7% of adults 25+
Average commute19.6 minutes
Center coordinates38.36309, -75.08503

Median rent in 21842 by bedrooms

SizeMedian gross rent
Studio$880/mo
1 bedroom$1,143/mo
2 bedrooms$1,397/mo
3 bedrooms$1,690/mo

Gross rent includes utilities paid by the tenant. ACS 2020–2024; sizes with too few rentals to estimate are left out.

ZIP codes near 21842

ZIP codeCityDistancePopulation
21843Ocean City, MD1.8 mi—
21813Bishopville, MD6.6 mi2,999
21862Showell, MD7.3 mi30
21811Berlin, MD8.0 mi24,377
19944Fenwick Island, DE8.1 mi636
19975Selbyville, DE8.7 mi10,862
19945Frankford, DE12.1 mi9,640
21872Whaleyville, MD12.1 mi661

Population and median household income: ACS 2020–2024 5-year estimates. Typical home value: Zillow Home Value Index (September 2026) where available, otherwise the ACS median owner-reported value. "PO Box" marks ZIP codes with no delivery area of their own. Methodology

Buying a home in 21842?

A typical home in ZIP code 21842 is worth about $444,800 (Zillow Home Value Index). The median household here earns $79,876 a year. See what buying here would cost per month, with Maryland average taxes and insurance filled in.

Monthly payment for a $444,800 homeWhat can a $79,876 income afford?Rental property numbers

About ZIP code 21842

What city is ZIP code 21842?

ZIP code 21842 is in Ocean City, MD, in Worcester County.

What county is ZIP code 21842 in?

21842 is mainly in Worcester County, Maryland.

What is the population of ZIP code 21842?

About 11,226 people live in ZIP code 21842, according to the American Community Survey 2020–2024 5-year estimates.

What time zone is ZIP code 21842 in?

21842 is in Eastern Time (UTC−5). It observes daylight saving time.

What other ZIP codes does Ocean City have?

Ocean City, MD also uses 21843.