Is stomach flu (gastroenteritis) contagious? The large majority of causes (viral and bacterial) of gastroenteritis are contagious, usually through food or water contamination. In addition, they can be transferred person-to-person.