Maryland · Census place 2458225
Ocean City, Maryland
Ocean City is a town in Worcester County, Maryland with an estimated 6,884 residents on July 1, 2024. It is the 31st largest of 100 incorporated places of 1,000+ people in the state.
- Population 2024
- 6,884
- #31 of 100 in Maryland
- Change since 2020
- +0.5%
- +35 people
- Land area
- 4.4 sq mi
- + 5.11 sq mi water
- Density
- 1,554 / sq mi
- State median 2,607
Measure from here
Tools and pages that start from Ocean City
Ocean City population, 2020 to 2024
Ocean City added 35 residents from July 2020 to July 2024, a change of +0.5%. In the latest year it moved by -42. Among 46 Maryland places of 5,000 or more, that growth ranks 30th; the median place changed by +1.3%. The median place of 5,000+ in Maryland has 10,155 people, so Ocean City is 68% of it.
Ocean City covers 4.43 square miles of land and 5.11 of water, for 1,554 people per square mile of land. The median Maryland place of 5,000+ has 2,607, so Ocean City is less dense than the typical town.
What county Ocean City is in
All of Ocean City's residents live in Worcester County, which had 54,337 residents in 2024. Ocean City holds 12.7% of the county's population. The shaded shape is on the map above; dots mark the eight nearest places.
ZIP codes in Ocean City
1 ZIP Code Tabulation Area (ZCTA) overlaps Ocean City by at least 10% of the ZCTA's or the town's land: 21842. ZCTAs are Census approximations of USPS ZIP code delivery areas. The list comes from the 2020 ZCTA to place relationship file, so a town that annexed land after 2020 may reach into ZIP codes not listed here.
Where Ocean City is
The Census internal point of Ocean City is at 38.393100, -75.071200. Annapolis, the capital, is 86.6 miles WNW in a straight line. The nearest larger place is Millsboro, DE (7,864 people), 18.7 miles away. The nearest city of 100,000 or more is Baltimore, MD, 103.8 miles away.
Internal point
- Decimal
- 38.393100, -75.071200
- DMS
- 38°23'35.16"N 75°04'16.32"W
- UTM
- 18N 493782.3E 4249434.1N
- Geohash
- dqfd7tqb4
- Plus code
- 87C69WVH+6G
Daylight in Ocean City
At 38.39° N, Ocean City gets about 14 h 51 min of daylight around the June solstice and 9 h 29 min around the December solstice, a swing of 5 h 21 min. Figures are sunrise to sunset from the SunCalc model for June 21 and December 21, 2026.
Places near Ocean City
The eight nearest incorporated places of 1,000+ in Maryland, measured between internal points. The closest is Berlin, 8.9 miles away, with 5,349 people.
Questions people ask
What is the population of Ocean City, MD?
6,884 on July 1, 2024, in the Census Vintage 2024 estimates. That is up 35 (0.5%) from 6,849 in July 2020.
What county is Ocean City in?
Worcester County. All of its residents live in that county.
What ZIP codes cover Ocean City?
1 ZIP Code Tabulation Area overlaps it by at least 10% of either area: 21842.
How far is Ocean City from Annapolis?
86.6 miles (139.4 km) in a straight line, heading WNW from Ocean City.
What is the nearest larger city to Ocean City?
Millsboro, DE, with 7,864 residents, 18.7 miles away between internal points.
Sources and data as of
Data as of: Census Vintage 2024 subcounty estimates (July 1, 2024), 2024 Gazetteer places, 2020 ZCTA to place relationship file.
- 01Census Vintage 2024 subcounty population estimates
- 02Census 2024 Gazetteer, places
- 03Census 2020 ZCTA to place relationship file
- 04Census 2024 cartographic boundary file, counties (1:5,000,000)
How every number is computed: methodology. Spotted a wrong figure? Report an error.