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
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
| City | Ocean City |
|---|---|
| State | Maryland |
| County | Worcester County |
| Metro area | Ocean Pines, MD |
| Time zone | Eastern Time (UTC−5), observes daylight saving time |
| Type | Standard (delivery area) |
| Land area | 9.1 sq mi, plus 12.3 sq mi of water |
| Population density | 1,240 people per sq mi |
| Bachelor's degree or higher | 40.7% of adults 25+ |
| Average commute | 19.6 minutes |
| Center coordinates | 38.36309, -75.08503 |
Median rent in 21842 by bedrooms
| Size | Median 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 code | City | Distance | Population |
|---|---|---|---|
| 21843 | Ocean City, MD | 1.8 mi | — |
| 21813 | Bishopville, MD | 6.6 mi | 2,999 |
| 21862 | Showell, MD | 7.3 mi | 30 |
| 21811 | Berlin, MD | 8.0 mi | 24,377 |
| 19944 | Fenwick Island, DE | 8.1 mi | 636 |
| 19975 | Selbyville, DE | 8.7 mi | 10,862 |
| 19945 | Frankford, DE | 12.1 mi | 9,640 |
| 21872 | Whaleyville, MD | 12.1 mi | 661 |
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.