The time it takes for gut health to fully recover after the stomach flu can vary from person to person. Generally, it takes about 2-3 weeks for the gut microbiota to return to normal after a viral gastroenteritis infection. However, some people may experience lingering symptoms, such as diarrhoea, for extended periods.