Parrot fish congregating at the top of the aquarium can be attributed to several factors, primarily including oxygen depletion, ammonia or chlorine poisoning, and parasite infestations. Understanding these causes is crucial for maintaining a healthy aquarium environment for your parrot fish.

1. Oxygen Depletion
Parrot fish require a high level of oxygen due to their unique physical characteristics. Their inability to fully close their mouths and possessing only half a gill impacts their ability to efficiently regulate water flow. Consequently, they are highly sensitive to low oxygen levels. When oxygen is insufficient, they will swim to the top of the tank in an attempt to get more air. If oxygen deficiency is the reason your parrot fish are frequently at the surface, you should perform a partial water change with well oxygenated water. Adding an air pump will also help to increase oxygen levels.
2. Ammonia or Chlorine Poisoning
Using tap water directly without proper treatment can introduce harmful substances that lead to poisoning. Tap water often contains ammonia and chlorine, both of which are toxic to parrot fish. These toxins can cause stress and lead to fish swimming at the top of the tank. If ammonia or chlorine poisoning is suspected, immediately perform a large partial water change using conditioned water. To properly prepare tap water for aquarium use, it is important to use a water conditioner to neutralize any harmful chemicals, and it is best to let tap water sit for 3-4 days to allow chlorine to dissipate before adding it to the aquarium. Additionally, install a good filter system to help maintain water quality.
3. Parasite Infestations
Infrequent water changes can lead to a buildup of harmful substances, which promotes the growth of parasites. Parrot fish may become infected when parasites proliferate. Such infections can also lead to them floating at the top of the tank. If a parasite infestation is suspected, perform a complete water change and administer appropriate medication to combat the parasites. It's imperative that all new aquarium inhabitants should be properly quarantined prior to being introduced into your main display tank.