21842 ZIP Code Profile, Map, Data & Demographics


ZIP Code 21842: Basic Data & USPS Preferred City Name

Preferred Name, USPS
Ocean City, MD 21842

Not Acceptable, USPS
North Ocean City, MD 21842
West Ocean City, MD 21842

  • ZIP Code Type: STANDARD
  • County: Worcester County
  • Centroid: Latitude 38.388, Longitude -75.107
  • Time Zone: Eastern Time Zone (UTC -5 hours)
  • Observes DST: Yes
  • Businesses Addresses: 1,536
  • PO Box Addresses: 0
  • Residential Addresses: 7,543
    • Multi-Family Addresses: 1,209
    • Single Family Addresses: 6,334

The ZIP Code maps and database are updated 4 times per year.
Database updated: July 1, 2023, Maps updated: May 3, 2023.


Ocean City, MD 21842 Data & Demographics (As of July 1, 2023)


Total Population 11,072 (100%)
Population in Households 11,001 (99.4%)
Population in Families 7,389 (66.7%)
Population in Group Quarters1 71 ( 0.6%)
Population Density 511
Diversity Index2 30


Median Household Income $64,587
Average Household Income $110,460
% of Income for Mortgage4 38%
Per Capita Income $56,431
Wealth Index5 130
Socioeconomic Status Index6 Moderate (51.1)


Total HU (Housing Units) 32,751 (100%)
Owner Occupied HU 4,146 (12.7%)
Renter Occupied HU 1,509 ( 4.6%)
Vacant Housing Units 27,096 (82.7%)
Median Home Value $406,066
Average Home Value $482,978
Housing Affordability Index3 64


Total Households 5,655
Average Household Size 1.95
Family Households 2,832
Average Family Size 3.00
  1. Group Quarters - a place where people live or stay in a group living arrangement. Includes college residents halls, nursing facilities, military barracks, and correctional facilities.
  2. The Diversity Index is a scale of 0 to 100 that represents the likelihood that two persons, chosen at random from the same area, belong to different races or ethnic groups. If an area's entire population belongs to one race AND one ethnic group, then the area has zero diversity. An area's diversity index increases to 100 when the population is evenly divided into two or more race/ethnic groups.
  3. The Housing Affordability Index base is 100 and represents a balance point where a resident with a median household income can normally qualify to purchase a median price home. Values above 100 indicate increased affordability, while values below 100 indicate decreased affordability.
  4. The % of Income for Mortgage quantifies the percentage of median household income dedicated to mortgage payments on a home priced at the median value (assuming a 30-year mortgage and a 20% down payment).
  5. The Wealth Index is based on a number of indicators of affluence including average household income and average net worth, but it also includes the value of material possessions and resources. It represents the wealth of the area relative to the national level. Values above or below 100 represent above-average wealth or below-average wealth compared to the national level.
  6. The Socioeconomic Index ranges from zero (lowest relative status) to 100 (highest relative status). This measure quantifies disparities in social position of an area's inhabitants and is built from a broad range of demographic, housing, and socioeconomic inputs. More information on this measure can be found in Esri's SEI tutorial.


2020-2023 2023-2028
Population 0.05% -0.42%
Households -0.08% -0.24%
Families   -0.29%
Median Household Income   1.77%
Per Capita Income   2.55%
Owner Occupied HU   -0.09%

Ocean City, MD 21842 - Peer Comparisons by Rank and Percentile

The table below compares 21842 to the other 458 ZIP Codes in Maryland by rank and percentile using July 1, 2023 data. The location Ranked # 1 has the highest value. A location that ranks higher than 75% of its peers would be in the 75th percentile of the peer group.

Variable Description Rank Percentile
Total Population # 175 62nd
Population Density # 206 55th
Median Household Income # 381 17th
Housing Affordability Index # 48 10th
Per Capita Income # 160 65th
Diversity Index # 347 24th

Additional comparisons and rankings can be made with a VERY EASY TO USE Maryland Census Data Comparison Tool.

Popular Places Near ZIP Code 21842

Use HTL Address Research for a Maryland Address and get...

Boundary Maps, Demographic Data, School Zones Review maps and data for the neighborhood, city, county, ZIP Code, and school zone. July 1, 2023, data includes home values, household income, percentage of homes owned, rented or vacant, etc.

Quick & Easy Ways to...

  1. Get Current Demographic Data for Cities, Towns, and ZIP Codes
  2. View Boundary Maps, for Cities, Towns, and ZIP Codes
  3. Locate Physical, Cultural, and Historical Features

Maryland Census Data Comparison Tool

Compare Maryland July 1, 2023 Data
Highest or Lowest:

More Tools and Resources:

  1. For information about schools and school attendance zones, use the HTL Address Tool
  2. Our new HTL Neighborhood Explorer provides lots of detail about any neighborhood.
  3. The new 2-Minute Introduction and Concise Guide to Big Data which will help you make the most effective use of HomeTownLocator Tools.
  4. See the References & Data Sources page for more information about methodology and sources of data.