Yellow goatfish are commonly found swimming in large schools over sandy bottoms. They use their long, sensitive barbels to locate polychaete worms, clams, isopods, amphipods and other crustaceans in the sand. When not feeding, they are often found in groups, sheltering in the reef.