A pontoon boat carrying five people flipped over Tuesday after hitting rocks in the Ocean City Inlet.