Why Am I Throwing Up in the Middle of the Night?

Waking up to vomit is alarming, but most of the time the cause is ordinary: a stomach bug, something you ate, or stomach acid that creeps up while you lie flat. When it keeps happening, the timing becomes a clue that helps a doctor narrow down the cause.

A Stomach Bug or Something You Ate

Food poisoning can strike a few hours after dinner. Some kinds bring on vomiting, diarrhea and fever as soon as 3 hours after eating.1PubMed. Outbreak of Staphylococcal food poisoning due to SEA-producing Staphylococcus aureus An evening meal can therefore make you sick around midnight, while you are already asleep. Stomach viruses also spread easily in households, so another sick family member is a useful clue.

A single bad night with diarrhea or fever points to infection or something you ate. The 3-hour window is only the fast end, though. Different germs and toxins take anywhere from a few hours to a day or more to cause symptoms, so the meal worth suspecting could be lunch, or even something from the day before. A shared meal is a clue only if others who ate it got sick too. Food poisoning and a stomach virus can look the same at first, and the home care is identical.

Vomiting from a stomach bug usually stops within 24 to 48 hours. Night after night of vomiting is not a bug and needs a different explanation. If it keeps waking you, write down the time and date of each episode.

To get through the night, rest the stomach for about an hour after the last vomit, then start small sips of water or an oral rehydration drink. Sleep propped up or on your side so you can’t choke. Bland foods like toast or rice can come back once fluids stay down. Darker urine and dizziness when you stand up are signs you are falling behind on fluids.

Acid Reflux While You Sleep

Acid production builds through the day and peaks late in the evening, roughly between 10 pm and 2 am.2ChronoPhysiology and Therapy. Circadian rhythm and sleep influences on digestive physiology and disorders When you lie flat, gravity stops helping to keep acid down just as production is near its peak. That is also why a big late dinner is worse than the same meal at lunchtime: the stomach is still full of food and acid when you lie down.

Reflux, where stomach contents back up into the food pipe, actually happens less often during sleep.3PubMed Central. Gastroesophageal Reflux Disease and Sleep Disorders: Evidence for a Causal Link and Therapeutic Implications When it does happen, the acid lingers, because you almost stop swallowing and saliva dries up.3PubMed Central. Gastroesophageal Reflux Disease and Sleep Disorders: Evidence for a Causal Link and Therapeutic Implications Sleep also lets acid travel higher up toward the throat.3PubMed Central. Gastroesophageal Reflux Disease and Sleep Disorders: Evidence for a Causal Link and Therapeutic Implications

The throat and airway are far more sensitive to acid than the food pipe, so even a small amount can set off coughing, choking or a sudden gag. Coughing hard can itself trigger retching, which is why the cough often comes before the vomiting. You may wake suddenly with a burning throat or a feeling of choking, and some people bring up a mouthful of sour liquid. This is different from the forceful vomiting of a bug. Reflux is often worse after a large or late meal, alcohol, or lying down soon after eating.

You can have this without daytime heartburn. Sitting and standing upright, plus regular swallowing, protect you during the day, so symptoms may only show up at night. Night-only symptoms still count as reflux and are worth mentioning to a doctor. Over-the-counter antacids can help occasional episodes, but regular use needs a check-up.

What Helps With Night-Time Reflux

Treatment guidelines advise not eating in the 3 hours before lying down.4PubMed Central. Systematic review: Clinical effectiveness of interventions for the treatment of nocturnal gastroesophageal reflux A late meal raised acid exposure and the number of reflux episodes compared with an early evening meal, and the effect was strongest in people who are overweight or have a hiatal hernia.4PubMed Central. Systematic review: Clinical effectiveness of interventions for the treatment of nocturnal gastroesophageal reflux Smaller evening meals put less pressure on the stomach, and cutting back on alcohol and late snacks reduces night acid.

Raising the head of the bed eases symptoms for many people. With the head of the bed raised about 20 cm (8 inches), about 7 in 10 people with night reflux felt clearly better, versus 1 in 3 lying flat.4PubMed Central. Systematic review: Clinical effectiveness of interventions for the treatment of nocturnal gastroesophageal reflux Raising the bed changed the acid measurements only a little, so the relief is mostly in how people feel.4PubMed Central. Systematic review: Clinical effectiveness of interventions for the treatment of nocturnal gastroesophageal reflux5PubMed. Impact of head of bed elevation in symptoms of patients with gastroesophageal reflux disease: a randomized single-blind study (IBELGA)Try it for a few weeks and keep it if it helps.

Use bed risers or blocks under the head legs, or a foam wedge under the mattress. Stacking pillows bends the neck rather than raising the chest, and it works less well. Sleeping on your left side is also commonly advised for reflux.

Improvement is usually gradual: fewer waking episodes and less sour taste, rather than symptoms vanishing overnight. See a doctor if the changes don’t help within a few weeks.

Repeated Night Vomiting From Gut and Body Conditions

Gallstone attacks favour the night. About 3 in 4 gallstone pain attacks happen in the late evening or at night.6PubMed. Pain attacks in non-complicated and complicated gallstone disease have a characteristic pattern and are accompanied by dyspepsia in most patients: the results of a prospective study They usually last over an hour, with pain in the upper right or middle belly. Fatty food triggers attacks for fewer than half of people.6PubMed. Pain attacks in non-complicated and complicated gallstone disease have a characteristic pattern and are accompanied by dyspepsia in most patients: the results of a prospective study The pain is typically a steady, severe ache that can spread to the right shoulder blade or back, whereas reflux burns higher up behind the breastbone. Gallstone pain does not ease with antacids or by changing position, and it tends to build over minutes and then fade over hours. Fever, yellowing of the skin or eyes, or pain that doesn’t settle needs urgent assessment, as these can signal a blocked bile duct or infection.

A stomach that empties too slowly, called gastroparesis, leaves food sitting there for hours. Vomiting woke more than half of people with this condition at night, often bringing up undigested food.7PubMed Central. Nausea and Vomiting in Gastroparesis: Similarities and Differences in Idiopathic and Diabetic Gastroparesis It is more common in people with diabetes, who often vomit in the morning before eating.7PubMed Central. Nausea and Vomiting in Gastroparesis: Similarities and Differences in Idiopathic and Diabetic Gastroparesis Besides vomiting, people often feel full after only a few bites, bloated, and nauseated well after eating. Diabetes is a common cause, but some cases follow infections or surgery, and many have no clear cause.

Cyclic vomiting syndrome causes repeated bouts of intense vomiting with normal stretches between them. Bouts often start suddenly in the early morning,8UPMC Physician Resources. Cyclic Vomiting Syndrome: Recognition and Guidelines for Treatment so a person may simply wake and start vomiting with no warning.9National Institute of Diabetes and Digestive and Kidney Diseases. Cyclic Vomiting Syndrome Regular heavy cannabis use can cause a similar pattern.

In pregnancy, morning sickness often hits on waking. One idea is that low blood sugar after the overnight fast triggers it.10International Journal of Reproduction, Contraception, Obstetrics and Gynecology. Morning sickness in pregnancy: Mini review of possible causes with proposal for monitoring by diagnostic methods A small snack before bed or on waking may help.

If you see a doctor, bring clues. Note what time episodes start and how long they last, and whether you bring up recent food, old food, sour liquid or bile. Mention diabetes, the possibility of pregnancy and any cannabis use. Say where any belly pain sits and whether it follows a meal.

Other Causes That Strike at Night

Positional vertigo, an inner ear problem, causes spinning dizziness and nausea when you move your head.11Better Health Channel. Benign paroxysmal positional vertigo (BPPV) Rolling over or getting out of bed are common triggers.11Better Health Channel. Benign paroxysmal positional vertigo (BPPV) Nausea that starts the moment you turn in bed suggests the inner ear. Positional vertigo gives a spinning sensation lasting seconds to a minute or so, whereas stomach nausea builds slowly and doesn’t depend on movement. Vomiting can happen with a strong spell, but it is not usually the main symptom.

For positional vertigo, get up slowly, sit on the edge of the bed for a moment, and avoid sudden head turns while dizzy. A doctor or physiotherapist can do a series of head movements that moves the tiny crystals in the inner ear back into place, and it often works within a visit or two. Vertigo with double vision, weakness, trouble speaking or a severe sudden headache is not routine and needs emergency care.

In sleep apnea, breathing stops and restarts repeatedly during sleep. The strain of breathing against a blocked airway can push stomach contents upward.3PubMed Central. Gastroesophageal Reflux Disease and Sleep Disorders: Evidence for a Causal Link and Therapeutic Implications Frequent waking and movement in apnea came just before sudden acid surges.12PubMed. Nasal CPAP reduces gastroesophageal reflux in obstructive sleep apnea syndrome CPAP, the breathing machine used for apnea, reduced reflux in people with apnea.12PubMed. Nasal CPAP reduces gastroesophageal reflux in obstructive sleep apnea syndrome Loud snoring, gasping and daytime sleepiness suggest apnea worth testing.

Night panic attacks can bring nausea with a racing heart, sweating and shortness of breath.13Canyon Creek Behavioral Health. Nocturnal Panic Attacks: Causes, Signs & Prevention In children, abdominal migraine causes bouts of severe belly pain lasting an hour or more, often with nausea or vomiting.14PubMed Central. Pediatric abdominal migraine: current perspectives on a lesser known entity In 3 in 4 children, these bouts begin between midnight and early morning.15PubMed Central. Brain to Belly: Abdominal Variants of Migraine and Functional Abdominal Pain Disorders Associated With Migraine A child with abdominal migraine often has a family history of migraine and is well between bouts.

When Night Vomiting Is an Emergency

Headaches that wake you or are worst on waking, especially with vomiting, need a prompt medical check to rule out raised pressure inside the skull.16PubMed. Not all morning headaches are due to brain tumours Pressure rises when you lie flat, which is why the headache and vomiting tend to be worst on waking. In children, the headache may ease after vomiting.17PEMBlog. Symptoms associated with brain tumors in children Vision changes, drowsiness, weakness or clumsiness make the need for prompt care stronger. A sudden, severe headache, or one that follows a head injury, is an emergency without waiting. Most morning headaches are not tumours, though.16PubMed. Not all morning headaches are due to brain tumours

Other warning signs:

Green vomit can mean bile, which may suggest a blockage in the bowel, especially with a swollen belly. Blood in the vomit, whether bright red or dark like coffee grounds, means bleeding somewhere in the upper gut. Constant severe belly pain, rather than cramps that come and go, can signal conditions such as appendicitis or a blocked bowel.

Headache and flu-like illness in winter, with others at home also unwell, can be carbon monoxide poisoning.21PubMed. Carbon monoxide poisoning Leave the home, get fresh air and call emergency services. A carbon monoxide alarm near the bedrooms guards against this.

Call emergency services for any red flag, especially in a child. People with diabetes should check blood sugar and ketones if they can.

Seeing a Doctor About Repeated Episodes

Repeated night vomiting with no clear cause deserves a doctor’s visit. The doctor will ask when the vomiting begins, how long after eating, what comes up and what else you feel, because these answers point to the likely cause. They will also review your medicines and alcohol or cannabis use. An examination of the belly, and sometimes checks of blood pressure or hydration, come before any scans.

Some medicines, including newer weight-loss and diabetes injections, often cause nausea. These injections slow the stomach, particularly after dose increases. Other culprits include some antibiotics, iron tablets, anti-inflammatory painkillers and opioids. Don’t stop a prescribed medicine on your own; tell the prescriber, who can adjust the dose, timing or choice.

Depending on your story, you may be offered tests. An ultrasound looks for gallstones, a stomach emptying scan checks for gastroparesis, and a sleep study tests for apnea. Blood tests check sugar, pregnancy and dehydration. A scope test examines the food pipe and stomach for reflux damage.

A symptom diary makes all of this easier. Record the time, the meal, what came up and any headache or pain. Two weeks of notes often reveal a pattern.