Skip to content

Ocean City, MD ZIP codes

Ocean City, Maryland has 2 ZIP codes, including 1 PO Box ZIP. They are in Worcester County.

Population in these ZIPs
11,226
Avg. median income
$79,900population-weighted
Typical home value
$444,800population-weighted
Metro area
Ocean Pines, MD
Loading map…

Click anywhere on the map to see which ZIP code it's in.

ZIP codes within 10 miles

Ocean City, MD ZIP codes list

Ocean City, MD ZIP codes
ZIP codeCountyPopulationMedian incomeTypical home value
21842Worcester County11,226$79,876$444,800
21843 PO BoxWorcester County———

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

Cities near Ocean City

Frequently asked questions

What is the ZIP code for Ocean City, MD?

Ocean City, MD has 2 ZIP codes: 21842 and 21843.

What county is Ocean City, Maryland in?

Ocean City ZIP codes are in Worcester County.

Which Ocean City ZIP codes are PO Boxes?

21843 is a PO Box or single-organization ZIP code; it has no residential delivery area.