Town guide

Ocean City, Maryland

Ocean City is a town in Worcester County, Maryland, home to about 6,903 people across 4.5 square miles. Its ZIP code is 21842.

Homes sold for a median of $437 per square foot in the three months ending August 2026, a balanced market.

Population6,9031,524 per sq mi
Median home value$429,000Census, as estimated by owners
Price per sq ft$437Sold homes, 3 months to August 2026
Sold over asking9%Latest 3 months

ZIP codes in Ocean City

1 ZIP code

Each card is that ZIP code’s whole market, including any part outside Ocean City. Seller’s market: under 4 months of supply; buyer’s market: over 6. Methodology

The Ocean City guide is on the way

We’re writing up Ocean City’s story and what everyday life there is like, for people thinking about moving in.

  • History
  • What it’s like to live there
  • Getting around
  • Things to do

Are you a local agent who knows Ocean City well? Agents who advertise here will be able to write the guide. Advertise on OfferBacked

Around Ocean City

Distances

Nearest major airportBaltimore/Washington International Thurgood Marshall Airport (BWI)103 miles away
Closer regional airportOcean City Municipal Airport (OCE)3 miles away
Nearest city of 250,000+Baltimore, MD106 miles away
Nearest city of 1 million+Philadelphia, PA116 miles away

Straight-line distances from the center of Ocean City; driving is longer.

Source: Airports from OurAirports (scheduled passenger service); city centers and populations from the U.S. Census Bureau.

Who represents Ocean City

Source: Members of Congress from the congress-legislators project; districts from the Census Bureau’s relationship files; governor and mayor from Wikidata.

Population over time

Ocean City had 6,844 residents in the 2020 census, down 5% since 2000.

It’s the 173rd largest of 527 towns in Maryland by population.

Worcester County grew from 20,865 residents in 1900 to 52,460 in 2020.

Ocean City population by census2000: 7,173, 2010: 7,102, 2020: 6,8447,17320007,10220106,8442020

Worcester County, 1900–2020

Worcester County population, 1900 to 20201900: 20,865, 1910: 21,841, 1920: 22,309, 1930: 21,624, 1940: 21,245, 1950: 23,148, 1960: 23,733, 1970: 24,442, 1980: 30,889, 1990: 35,028, 2000: 46,543, 2010: 51,454, 2020: 52,46021K’00’1022K’20’3021K’40’5024K’60’7031K’80’9047K’00’1052K’20

Source: U.S. Census Bureau decennial censuses (counties 1900–1990 from the Bureau’s historical county file).

Weather by month

Average highs peak around 84°F in summer, and winter lows average 28°F. About 42.7 inches of rain and melted snow fall in a typical year.

Average high and low temperature and precipitation by month near Ocean CityJan: high 45°F, low 28°F, 3.4 in; Feb: high 47°F, low 29°F, 3 in; Mar: high 52°F, low 35°F, 3.9 in; Apr: high 62°F, low 44°F, 3 in; May: high 70°F, low 53°F, 3.8 in; Jun: high 79°F, low 63°F, 3.3 in; Jul: high 84°F, low 68°F, 3.8 in; Aug: high 83°F, low 67°F, 3.8 in; Sep: high 77°F, low 61°F, 3.9 in; Oct: high 68°F, low 49°F, 4 in; Nov: high 58°F, low 39°F, 3.2 in; Dec: high 50°F, low 32°F, 3.6 in45°28°Jan3.447°29°Feb3.052°35°Mar3.962°44°Apr3.070°53°May3.879°63°Jun3.384°68°Jul3.883°67°Aug3.877°61°Sep3.968°49°Oct4.058°39°Nov3.250°32°Dec3.6Rain and melted snow, inches

Source: NOAA 1991–2020 climate normals, Ocean City Muni Ap, MD weather station (3 miles away).

Jobs in Worcester County

20,249 jobs at 2,256 businesses in Worcester County. The biggest industries by employees:

Largest industries in Worcester CountyHotels and restaurants: 7,125 jobs; Retail trade: 3,787 jobs; Health care and social assistance: 2,510 jobs; Other services: 1,231 jobs; Construction: 1,086 jobs; Arts, entertainment and recreation: 877 jobs; Professional services: 679 jobs; Manufacturing: 609 jobsHotels and restaurants 35% Retail trade 19% Health care and social assistance 12% Other services 6% Construction 5% Arts, entertainment and recreation 4% Professional services 3% Manufacturing 3%

Source: U.S. Census Bureau County Business Patterns 2023 (private employers; jobs counted where people work).

Health care

75 doctors and other health care providers list an office in Ocean City.

Nearest hospitals

  • Atlantic General HospitalGeneral hospital · emergency room · CMS rating 3 of 5 · Berlin6.8 miles
  • Tidalhealth Peninsula Regional, INCGeneral hospital · emergency room · CMS rating 4 of 5 · Salisbury27.8 miles
  • Beebe Medical CenterGeneral hospital · emergency room · CMS rating 3 of 5 · Lewes30.2 miles

Providers with an office here

Primary care doctors10
Specialist doctors6
Dentists11
Nurse practitioners and physician assistants20
Mental health providers17
Physical and occupational therapists6
Optometrists1
Chiropractors4
Pharmacies6

Source: Hospitals from CMS Hospital General Information (ratings are CMS overall star ratings); straight-line distances; providers from the CMS National Plan and Provider Enumeration System (NPPES), by practice address and primary specialty.

Places in and around Ocean City

Parks (5 nearby)

  • Homer Gudelsky Park · 1 acres0.7 mi

Grocery stores (1 nearby)

  • Food Lion1.5 mi

Pharmacies (1 nearby)

  • Hi Tide Dispensary1.6 mi

Libraries

  • Worcester County Library - Ocean Pines Branch5.3 mi
  • Worcester County Library5.5 mi

Museums (4 nearby)

  • United State Lifesaving Station Museum0.4 mi
  • Ripley's Believe It or Not Museum0.6 mi
  • Ocean City Life Saving Station0.8 mi
  • Ocean City Life Saving Station0.8 mi

Counts are within about 1.5 miles of the center of town.

Source: Map data © OpenStreetMap contributors (openstreetmap.org/copyright), as mapped by volunteers; it can miss places or include closed ones.

Colleges, teams and notable people

Established in 1875.

Source: Wikidata (wikidata.org), the free knowledge base; people are listed by place of birth.

Schools in Ocean City

Public schools here are run by Worcester County Public Schools. Check each district’s attendance zones for a specific address.

Public schools (1)
SchoolGradesStudentsTypeDistance
Ocean City ElementaryOcean CityPre-K–4566Public1.4 mi
Private schools (1)
SchoolGradesStudentsAffiliationDistance
Seaside Christian AcademyOcean CityPre-K–12188Baptist1.4 mi

Source: U.S. Department of Education, NCES: Common Core of Data (2024-2025) for public schools; Private School Universe Survey (2023-2024) for private schools. Listed by address; we don’t rate schools.

From OfferBacked · Free

Get matched with a local agent.

Buying or selling around Ocean City? Tell us what you need and when. No agents advertise here yet, so we’ll keep your request for up to 30 days and send it to local agents who join. No obligation, and you choose who to work with.

Get matched

Where Ocean City is

Loading map…

Towns near Ocean City

All Maryland towns →

Shares ZIP codes with West Ocean City.

Town boundaries don’t always match ZIP codes: a ZIP code can cross into neighboring towns, and a town can share a ZIP code with its neighbors. Facts describe the town itself; market figures describe whole ZIP codes.