Why Did I Throw Up: Causes and What to Do Next

Vomiting is your body’s way of forcefully ejecting something it perceives as harmful, whether that’s contaminated food, a virus, or even an overwhelming emotional signal. Most of the time, throwing up once or twice resolves on its own within a day or two. But the specific reason depends on what happened in the hours and days before it started.

How Your Body Triggers Vomiting

Vomiting isn’t random. It’s a coordinated reflex controlled by a cluster of neurons in the brainstem. A specialized region called the chemoreceptor trigger zone sits outside the blood-brain barrier, which means it can directly detect toxins, medications, and other substances circulating in your blood. When it picks up something problematic, it sends the signal to vomit.

But that’s not the only pathway. Your gut has its own line of communication to the brain through the vagus nerve. When your stomach lining is irritated or your stomach is overstretched, vagal nerve fibers fire signals upward to the same brainstem area. This is why eating something bad, taking a pill on an empty stomach, or simply eating too much can all make you throw up. Your inner ear, your emotions, and even strong smells can activate the same reflex through different routes.

Food Poisoning vs. Stomach Virus

These two are the most common culprits, and the timing of your symptoms is the easiest way to tell them apart.

Food poisoning hits fast. Symptoms typically appear within a few hours of eating contaminated food. If you ate something questionable at lunch and were throwing up by dinner, food poisoning is the likely explanation. Some bacterial toxins, particularly from staph-contaminated food, can cause vomiting in as little as one to six hours. Most people feel better within 48 hours.

A stomach virus (often called “stomach flu,” though it’s unrelated to influenza) takes longer to show up. Norovirus and rotavirus are the most common causes, and symptoms usually begin one to two days after exposure. Stomach viruses also tend to come with watery diarrhea, body aches, and sometimes a low fever. A typical case lasts about 48 hours, though severe infections can drag on for more than two weeks. If other people around you are sick too, a virus is the most likely cause.

Medications That Cause Nausea

If you recently started a new medication or changed your dose, that’s worth considering. Nausea and vomiting are among the most common side effects across many drug categories. Certain chemotherapy drugs cause vomiting in up to 70% of patients. Antidepressants in the SSRI class, opioid painkillers, and some diabetes medications cause nausea in 20 to 50% of people who take them. Even common over-the-counter painkillers like ibuprofen and aspirin can irritate your stomach lining enough to trigger vomiting, especially on an empty stomach.

The mechanism varies. Some drugs directly stimulate the chemoreceptor trigger zone in your brainstem. Others irritate the stomach lining, which activates that vagal nerve pathway. If you suspect a medication is the cause, don’t stop taking it abruptly. Talk to your prescriber about whether to adjust the timing, take it with food, or switch to an alternative.

Stress, Anxiety, and the Gut-Brain Connection

Your brain and your digestive system are in constant two-way communication. When you’re under intense stress or experiencing anxiety, your body floods itself with hormones that activate the fight-or-flight response. That survival mode diverts resources away from digestion, which can cause nausea, abdominal pain, changes in bowel habits, and in some cases, actual vomiting.

Stress-related vomiting is more common than many people realize. It can happen before a big presentation, during a panic attack, after receiving shocking news, or during prolonged periods of emotional strain. If you notice a pattern between high-stress moments and throwing up, and no other medical cause fits, stress is likely playing a role.

Motion Sickness

If you threw up during or shortly after a car ride, boat trip, amusement park visit, or even while using a virtual reality headset, motion sickness is the explanation. It happens when your brain receives conflicting signals: your inner ear detects movement, but your eyes see something stationary (like the inside of a car), or vice versa. Your brain interprets this mismatch as a sign that something has gone wrong, and one of its responses is to trigger nausea and vomiting.

Some people are far more susceptible than others. Reading in a moving vehicle, sitting in back seats, and riding on boats in rough water are classic triggers. Symptoms usually resolve quickly once the motion stops.

Pregnancy

For anyone who could be pregnant, nausea and vomiting in the first trimester is extremely common. It’s driven largely by a hormone called hCG, which rises exponentially during the first seven weeks of pregnancy, peaks around weeks 9 to 12, then gradually declines. Nausea follows a similar timeline, peaking around the 9th week. Higher hCG levels are associated with more severe symptoms.

Despite being called “morning sickness,” it can happen at any time of day. In its most severe form, called hyperemesis gravidarum, vomiting is persistent enough to cause dehydration and weight loss. Most cases, however, ease significantly by the start of the second trimester.

Other Common Causes

Several other conditions can trigger vomiting that doesn’t neatly fit the categories above:

  • Alcohol. Drinking too much irritates the stomach lining and raises blood alcohol to levels your chemoreceptor trigger zone flags as toxic.
  • Migraines. Nausea and vomiting accompany migraines in many people, driven by the same brainstem pathways involved in the headache itself.
  • Gastroparesis. A condition where the stomach empties too slowly, often linked to diabetes or nerve damage. It causes nausea, vomiting of undigested food, bloating, and feeling full after just a few bites. Diagnosis involves measuring how fast food leaves your stomach, typically with a four-hour scan.
  • Concussion or head injury. Vomiting after hitting your head is a red flag that warrants immediate medical attention.

What to Eat After Throwing Up

The classic advice is the BRAT diet: bananas, rice, applesauce, and toast. That’s fine for a day or two, but there’s no research showing it’s better than other bland options. Brothy soups, oatmeal, boiled potatoes, crackers, and unsweetened dry cereal are equally easy on the stomach.

Once your stomach settles, shift toward more nutritious foods that are still gentle to digest: cooked squash, sweet potatoes without skin, avocado, skinless chicken, fish, and eggs. These provide the protein and nutrients your body needs to recover. Staying on a highly restricted diet for longer than a couple of days can actually slow your recovery by depriving you of essential nutrition. Small, frequent sips of water or an electrolyte drink are more important than food in the first several hours.

Signs That Need Medical Attention

Most vomiting passes on its own, but certain warning signs indicate something more serious. Seek immediate care if your vomit contains blood, looks like coffee grounds, or is green. These can signal bleeding in your digestive tract or a bowel obstruction.

Watch for signs of dehydration: excessive thirst, dry mouth, dark urine, urinating much less than usual, or feeling dizzy when you stand up. Dehydration is the most common complication of prolonged vomiting, and young children are especially vulnerable. For adults, vomiting that lasts more than two days warrants a doctor’s visit. For children under two, the threshold is 24 hours; for infants, 12 hours. Severe abdominal pain alongside vomiting, particularly if it’s localized to one area, also calls for prompt evaluation.