The driving distance between Ocean City, New Jersey and Atlantic City, New Jersey is approximately 19 miles (31 kilometers) via the Garden State Parkway and local roads.
South on Garden State Parkway to Exit 30 (Somers Point), then west on US-9 / Roosevelt Blvd across the Beesley's Point Bridge (or newer parallel span) into Atlantic City. Alternatively, take NJ-152 / NJ-52 causeway via Somers Point–Longport–Atlantic City.
Both are Jersey Shore barrier-island communities; Ocean City is family-oriented and dry (no alcohol sales), while Atlantic City is the gaming/entertainment hub.