The straight-line ("as the crow flies") distance from Baltimore, Maryland to the Atlantic Ocean is approximately 15 miles (24 kilometers).
Baltimore sits on the Patapsco River estuary, which flows into the Chesapeake Bay. The Bay extends ~200 miles south to the Atlantic at the Virginia Capes (Cape Henry/Charles).
The 15-mile figure measures to the nearest point of the Chesapeake Bay's main stem near the Bay Bridge (US-50/301). To reach the open Atlantic Ocean proper (past the Bay mouth), the water distance is ~180 miles southeast.
Baltimore is a major inland port—the Chesapeake Bay's depth and the Chesapeake & Delaware Canal allow ocean-going vessels to reach its terminals.