A stomach bug hits fast. One moment you feel fine, the next you are dealing with nausea, vomiting, or diarrhea. When your digestive system is inflamed, the last thing you want to do is eat. But your body still needs fuel and fluids to recover. The safest approach is to start with clear liquids, then slowly add bland, easy-to-digest foods as your stomach tolerates them. Think crackers, toast, bananas, and plain rice. Avoid dairy, grease, and heavy spices until you feel better for at least a day or two.
Why Your Stomach Rejects Food Right Now
Your gut lining is irritated. When a virus or bacteria causes gastroenteritis, the cells lining your intestines become inflamed. They cannot absorb nutrients or fluids normally. That is why water alone may not be enough — you also need electrolytes like sodium and potassium to replace what you lose through diarrhea or vomiting.
Your digestive tract also slows down or speeds up unpredictably. Nausea is your brain’s way of saying “stop putting things in here.” Forcing food when you feel sick often makes vomiting worse. The goal is not to eat as much as possible. The goal is to stay hydrated and give your gut time to heal.
What To Eat When You Have Tummy Bug: The BRAT Diet
The BRAT diet stands for bananas, rice, applesauce, and toast. It has been recommended by pediatricians and family doctors for decades. These foods are low in fiber, gentle on the stomach, and easy to digest. Bananas also replace potassium lost through diarrhea. White rice and white toast are bland starches that do not irritate the gut lining.
Applesauce provides some natural sugar for energy and pectin, which can help firm up stool. Choose plain, unsweetened applesauce. Avoid versions with added sugar or spices. The BRAT diet is not a long-term eating plan. It is a short-term bridge to get you through the worst 24 to 48 hours. Once you feel better, you need to return to a more balanced diet to get enough protein and other nutrients.
Other Bland Foods That Work Well
You are not limited to the four BRAT foods. Several other options are equally gentle on a recovering stomach.
- Saltine crackers or plain pretzels — dry, salty, and easy to tolerate in small amounts.
- Plain white rice or plain pasta — cooked soft, no butter or sauce.
- Boiled or baked potatoes without skin — skin is high in fiber and harder to digest.
- Plain chicken broth or vegetable broth — provides fluids and some sodium.
- Plain oatmeal or cream of wheat — cooked thin with water, not milk.
- Steamed carrots or green beans — soft and low in fiber.
- Plain baked chicken or turkey — no skin, no seasoning beyond a little salt.
Eat small portions. A few bites every hour is better than a full meal. Your stomach needs time to test each food before you add more. If a food makes your symptoms worse, stop eating it and go back to clear liquids for a few hours.
Fluids Matter More Than Food
Dehydration is the main danger with a stomach bug. You lose water and electrolytes every time you vomit or have diarrhea. Replacing those losses is more important than eating solid food. In the first few hours, focus entirely on fluids.
Clear liquids include water, clear broth, and oral rehydration solutions. Oral rehydration solutions are the gold standard because they contain the right balance of water, sugar, and electrolytes. They are available at most pharmacies under brand names like Pedialyte or generic store versions. Sports drinks contain sugar and some electrolytes, but they are not formulated for illness-related dehydration. They can work in a pinch, but they are not the best choice.
Sip slowly. Drinking too much at once can trigger vomiting. Take small sips every five to ten minutes. If you can keep fluids down for several hours, you can start adding bland foods. If you cannot keep any fluids down for more than 24 hours, you need medical attention.
Foods To Avoid Until You Are Fully Recovered
Some foods make diarrhea and nausea worse. Avoid them until you have gone at least 48 hours without symptoms.
- Dairy products — milk, cheese, yogurt, and ice cream. Lactose is hard to digest when your gut is inflamed, even if you are not normally lactose intolerant.
- Fried or greasy foods — they stimulate the gut and can worsen diarrhea.
- Spicy foods — chili, hot sauce, and curries irritate an already inflamed stomach lining.
- High-fiber foods — raw vegetables, whole grains, beans, and bran. Fiber pulls water into the intestines and makes diarrhea worse.
- Sugary drinks and sweets — juice, soda, and candy draw water into the gut and can prolong diarrhea.
- Caffeine and alcohol — both are dehydrating and can irritate the stomach.
This does not mean you can never eat these foods again. It means your gut needs time to repair its lining. Most people can return to a normal diet within a few days.
When To See a Doctor
Most stomach bugs resolve on their own within a few days. But some situations require medical care. Seek help if you have any of the following signs:
- Signs of dehydration — dark urine, urinating less often than usual, dry mouth, dizziness, or extreme thirst.
- Blood in vomit or stool — this can signal a more serious infection.
- High fever — a fever above 102°F that lasts more than a day.
- Severe abdominal pain — pain that is not relieved by passing gas or having a bowel movement.
- Vomiting lasting more than 48 hours — or the inability to keep down any fluids for 24 hours.
- Symptoms in infants, young children, or older adults — these groups dehydrate faster and need earlier medical attention.
No medication can cure a viral stomach bug. Antibiotics do not work against viruses. Anti-diarrheal medications like loperamide are sometimes used, but they are not recommended for everyone. They can make certain bacterial infections worse by trapping the bacteria in your gut. Ask a pharmacist or doctor before taking any over-the-counter medication for diarrhea.
How To Prevent Spreading It To Others
Stomach bugs are highly contagious. The viruses that cause them — norovirus being the most common — spread through tiny particles of vomit or stool. You can catch it from contaminated food, water, or surfaces. You can also catch it from close contact with an infected person.
Wash your hands with soap and water frequently, especially after using the bathroom and before preparing food. Hand sanitizer does not work well against norovirus. Soap and water are the only reliable way to remove the virus from your hands. Clean surfaces with a bleach-based disinfectant, and wash contaminated clothing and bedding in hot water.
Stay home until you have been symptom-free for at least 48 hours. You can still shed the virus after you feel better, so returning to work or school too soon can infect others.
Frequently Asked Questions
Can I eat eggs when I have a stomach bug?
Plain scrambled or boiled eggs are usually fine once you can keep fluids down. Avoid adding butter, milk, or cheese until you are fully recovered.
Is it better to eat or fast with a stomach bug?
Fluids come first, but you should eat small amounts of bland food as soon as you can tolerate them. Fasting for more than a few hours does not speed up recovery.
How long should I wait before eating normally again?
Wait at least 48 hours after your last episode of vomiting or diarrhea. Then add regular foods gradually, starting with the least irritating options.
Can I drink ginger ale for an upset stomach?
Flat ginger ale can help some people settle nausea, but the high sugar content can make diarrhea worse. Clear broth or an oral rehydration solution is a better choice.

