The distance to the ocean depends on where you're measuring from:
* From the Bangor City Center: The closest point on the ocean coast is approximately 40 miles (64 km) away, in the towns of Searsport or Belfast.
* From the mouth of the Penobscot River: This is about 25 miles (40 km) from Bangor.
So, while Bangor is not directly on the ocean, it's relatively close, making it a good base for exploring the Maine coast.