Pelagic fish live in the pelagic zone of ocean or lake waters – being neither close to the bottom nor near the shore – in contrast with demersal fish that do live on or near the bottom, and reef fish that are associated with coral reefs. The marine pelagic environment is the largest aquatic habitat on Earth, occupying 1,370 million cubic kilometres (330 million cubic miles), and is the habitat for 11% of known fish species. The oceans have a mean depth of 4000 metres. About 98% of the total water volume is below 100 metres (330 ft), and 75% is below 1,000 metres (3,300 ft).
Marine pelagic fish can be divided into pelagic coastal fish and oceanic pelagic fish. Coastal fish inhabit the relatively shallow and sunlit waters above the continental shelf, while oceanic fish inhabit the vast and deep waters beyond the continental shelf (even though they also may swim inshore). Pelagic fish range in size from small coastal forage fish, such as herrings and sardines, to large apex predator oceanic fishes, such as bluefin tuna and oceanic sharks. They are usually agile swimmers with streamlined bodies, capable of sustained cruising on long-distance migrations. Many pelagic fish swim in schools weighing hundreds of tonnes. Others are solitary, such as the large ocean sunfish weighing more than 500 kilograms, which sometimes drift passively with ocean currents, eating jellyfish.