ZIP Code 21842 Map
Census ZIP Code Tabulation Area 21842 in Ocean City, MD (Worcester County). ZCTA boundaries closely approximate USPS delivery areas.
ZIP 21842 Demographics
Source: U.S. Census Bureau, American Community Survey 2020-2024 5-year estimates.
Population
11,226
Households
5,751
Median household income
$79,876
Median age
53.4 years
Median home value
$447,700
Median gross rent
$1,394/mo
Owner-occupied homes
76%
Bachelor's degree or higher
40.7%
Below poverty level
9.4%
Land area
9.1 sq mi
Population density
1,240 / sq mi
Cities served
County
Climate of Ocean City
30-year averages (1991–2020) from the Ocean City Muni Ap, Md weather station, elevation 12 ft, 2.9 miles from the city center.
Warmest month
Jul · avg high 84°F
Coldest month
Jan · avg low 28°F
Annual precipitation
42.6 in
Average Monthly Temperatures (°F)
| Month | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Avg high °F | 45 | 47 | 52 | 62 | 70 | 79 | 84 | 83 | 77 | 68 | 58 | 50 |
| Avg low °F | 28 | 29 | 35 | 44 | 53 | 63 | 68 | 67 | 61 | 49 | 39 | 32 |
| Precip. in | 3.39 | 2.95 | 3.86 | 3.00 | 3.76 | 3.32 | 3.77 | 3.83 | 3.93 | 4.04 | 3.18 | 3.60 |
Source: NOAA NCEI U.S. Climate Normals, 1991–2020. Conditions at the station may differ from other parts of the city.
Natural Hazard Risk in ZIP 21842
FEMA National Risk Index ratings for Worcester County, compared with all U.S. counties.
Overall risk
Score 68.2 of 100
Expected annual loss
Buildings, population & agriculture
Social vulnerability
Susceptibility to hazard impacts
Community resilience
Ability to prepare & recover
Risk by Hazard
- HurricaneRelatively Moderate
- Coastal FloodingRelatively High
- Winter WeatherRelatively Moderate
- Cold WaveRelatively Moderate
- WildfireRelatively Low
- DroughtRelatively Moderate
- Ice StormRelatively Low
- Heat WaveRelatively Low
- Inland FloodingRelatively Low
- EarthquakeVery Low
- LightningRelatively Low
- Strong WindRelatively Low
- TornadoVery Low
- LandslideVery Low
- HailVery Low
Source: FEMA National Risk Index (December 2025 release). County-level ratings are relative to other U.S. counties and are not a property-specific assessment.