Headache and Diarrhea at the Same Time: What's Causing It and What to Do
MomentaryBack to Blog
Diseases & Conditions

Headache and Diarrhea at the Same Time: What's Causing It and What to Do

Jayant PanwarJayant Panwar
March 11, 202610 min read

Headache and diarrhea occurring together is more common than most people realize, and the two symptoms are rarely a coincidence. They share several biological pathways, which means when one shows up, the other often follows.

The causes range from a common stomach bug to food poisoning, dehydration, or migraine. Each one calls for a slightly different response. This guide walks through the most likely explanations, how to tell them apart, and a clear action plan for managing both symptoms at home or knowing when to get help.


Why Headache and Diarrhea Often Happen Together

Headache and diarrhea co-occur because the brain and gut are in constant communication through overlapping biological systems.

The gut-brain connection

The vagus nerve runs directly from the brainstem to the digestive tract, creating a two-way communication highway between the gut and the central nervous system. Disruptions in one system reliably trigger responses in the other. The gut also produces roughly 90% of the body's serotonin, a neurotransmitter that regulates both bowel movement and pain signaling in the brain. When gut serotonin levels shift due to infection, stress, or inflammation, headache can follow.

How dehydration creates a feedback loop

Fluid loss from diarrhea sets off a specific chain of events: reduced blood volume leads to decreased oxygen delivery to the brain, which causes a throbbing headache that typically worsens when standing up. Nausea from that same headache suppresses the urge to drink, which deepens fluid loss and worsens both symptoms. Breaking this cycle early with consistent fluid intake is the single most effective home intervention for most cases.


The Most Common Causes: How to Tell Them Apart

Several conditions produce headache and diarrhea simultaneously. The pattern of onset, accompanying symptoms, and duration are the most reliable way to distinguish between them.

Viral gastroenteritis (stomach bug)

Viral gastroenteritis, often called the stomach flu, is caused by viruses such as norovirus or rotavirus infecting the digestive tract. Norovirus accounts for the majority of viral gastroenteritis cases in the US, according to the CDC. Symptoms typically begin within 12 to 48 hours of exposure and include watery diarrhea, nausea, vomiting, low-grade fever, body aches, and a diffuse headache. The headache here results primarily from systemic inflammation and fluid loss, not from a neurological event. A key distinguishing feature: fever and GI symptoms come first, and there is no light sensitivity or aura.

Food poisoning

Food poisoning produces a faster onset than a stomach bug, with symptoms appearing within one to six hours of eating contaminated food. The cause is bacterial toxins, most commonly from Salmonella, E. coli, or Staphylococcus aureus, which irritate the gut lining and trigger a systemic inflammatory response. Headache develops as a secondary effect of both the inflammatory cascade and fluid loss from diarrhea and vomiting. A strong clue: if others who ate the same meal have similar symptoms, food poisoning is the more likely explanation.

Migraine with gastrointestinal symptoms

Migraine is a neurological condition affecting roughly 15% of US adults, and its connection to gastrointestinal symptoms is well established. A 2022 study found that migraine occurs approximately 3.5 times more often in people who have gastrointestinal disorders such as irritable bowel syndrome, inflammatory bowel disease, and celiac disease.

Diarrhea can appear during the prodrome phase of a migraine attack, which is the period hours or even a day before head pain begins. This makes diarrhea an early warning sign in people with a known migraine history. The migraine headache itself is typically one-sided, pulsating, and accompanied by sensitivity to light and sound, which distinguishes it from the duller headache of dehydration or infection.

One practical note for people managing diagnosed migraine: diarrhea can interfere with the absorption of oral migraine medications. If this is a recurring pattern, a doctor can advise on medications absorbed through alternative routes, such as nasal sprays or sublingual formulations, which bypass the GI tract entirely.

Dehydration alone

Headache and loose stools can both occur from dehydration alone, without any infection present. Heat, physical exertion, alcohol, or simply not drinking enough fluid can deplete blood volume enough to trigger a throbbing headache and accelerate bowel motility. This type of headache tends to worsen on standing and improves within 30 to 60 minutes of adequate fluid intake. If no fever or vomiting is present and symptoms resolve quickly after rehydration, dehydration is likely the only cause.

Stress and anxiety

Acute stress triggers the release of cortisol and adrenaline, which increase gut motility and can produce loose stools or diarrhea while simultaneously causing muscle tension headaches. This connection is particularly relevant for people who have irritable bowel syndrome, a condition that frequently co-occurs with tension-type headaches. Stress as a cause is more likely when symptoms appear before a high-pressure event and resolve once it passes.

COVID-19 and influenza

This is a cause many people wonder about but few healthcare resources address directly. Studies estimate that between 15 and 20% of people with COVID-19 experience gastrointestinal symptoms including diarrhea, and headache is among the most commonly reported early symptoms of COVID infection. Influenza can also produce headache alongside GI symptoms, particularly in children. If headache and diarrhea are accompanied by fever, fatigue, or body aches, and respiratory symptoms develop within the following day or two, testing for COVID-19 or flu is a reasonable next step. Momentary Lab's AI healthcare navigator can help assess symptoms and identify whether an in-person evaluation makes sense.


When Symptoms Last More Than a Day or Two

Duration is one of the most reliable signals for deciding how to respond. Most causes of headache and diarrhea resolve on their own within 24 to 72 hours with basic home care.

Signs it can be managed at home

Symptoms can typically be managed without medical attention when: the headache is mild to moderate and responds to over-the-counter pain relief, diarrhea is not bloody, no fever above 101°F is present, fluids can be kept down, and the overall pattern is improving within 24 to 48 hours.

When to contact a doctor

Medical evaluation is appropriate when: symptoms persist beyond 48 hours without improvement, fever rises above 101°F, diarrhea occurs more than five times within 24 hours, fluids cannot be held down, or a person with a known migraine history notices a new or significantly different symptom pattern. A doctor can advise on individual cases and recommend testing where appropriate. Finding a specialist through Momentary Lab makes it straightforward to connect with the right provider based on location and insurance.

Emergency warning signs

Seek emergency care for any of the following: a sudden, severe headache unlike any experienced before (sometimes called a thunderclap headache), high fever combined with a stiff neck, blood in the stool, confusion or a significant decrease in urination, or neurological changes such as slurred speech, vision changes, or weakness on one side of the body. These signs are uncommon alongside the typical causes of headache and diarrhea, but the body responds well when care is sought promptly.


What to Do Right Now: A Step-by-Step Home Protocol

When headache and diarrhea hit at the same time, this sequence addresses both symptoms without aggravating either one.

Step 1: Stop eating solid food temporarily and switch to clear fluids. Give the gut a short rest. Start with small, frequent sips of fluid rather than large amounts at once.

Step 2: Use oral rehydration solution rather than plain water. Plain water does not replace the electrolytes lost through diarrhea. Oral rehydration solution, which contains a specific glucose-sodium balance, restores electrolyte levels faster than water alone. Commercial ORS sachets are widely available, or a doctor can advise on preparation of an equivalent solution.

Step 3: Choose acetaminophen over ibuprofen or aspirin for headache relief. Ibuprofen and aspirin are NSAIDs that can irritate an already-inflamed gastrointestinal tract. Acetaminophen is gentler on the gut and is the preferred option when diarrhea is present.

Step 4: Rest in a cool, dim environment if migraine is suspected. Light and sound sensitivity during a headache suggests a neurological component. Reducing sensory input can help break the cycle.

Step 5: Reintroduce bland food once vomiting has stopped for at least two hours. The BRAT diet (bananas, rice, applesauce, toast) provides easily digestible carbohydrates without taxing the GI tract. Avoid caffeine, alcohol, dairy, and fatty or spicy foods until symptoms have fully resolved.


Long-Term Management If This Keeps Happening

Recurring episodes of headache and diarrhea together are worth investigating rather than repeatedly treating as isolated incidents. Thyroid dysfunction, for example, is one underlying cause of persistent or recurring headaches that is frequently overlooked; hypothyroidism and headache explains this connection in more detail.

People with comorbid irritable bowel syndrome and migraine, a pairing supported by research, may benefit from working with both a neurologist and a gastroenterologist. Keeping a combined symptom diary that tracks headache onset, stool changes, food intake, stress levels, and sleep can reveal patterns that are not obvious from memory alone. Common dietary triggers for both migraine and GI disturbance include caffeine, alcohol, monosodium glutamate, aged cheeses, and cured meats.

Preventive migraine medications, which a neurologist can prescribe, may also reduce GI symptom frequency in people whose diarrhea is consistently tied to migraine prodrome. A doctor can advise on whether this approach makes sense based on individual history. Momentary Lab's specialist directory includes neurologists and gastroenterologists searchable by location and insurance.


Headache and Diarrhea in Children: What's Different

Children dehydrate significantly faster than adults, which changes the calculus for when to seek care.

The rotavirus vaccine series, given in the first six months of life, has substantially reduced the rate of severe viral gastroenteritis in young children in the US. Still, when a child has both headache and diarrhea, parents should watch for signs of dehydration that develop faster and more seriously than in adults: no tears when crying, dry mouth and lips, sunken eyes, and no urination for six or more hours. These signs in a child warrant a pediatric evaluation rather than home management alone. Any child with a headache, diarrhea, and a stiff neck should receive emergency evaluation without delay.


Frequently Asked Questions

Can diarrhea cause a headache? Yes. Diarrhea causes fluid loss that reduces blood volume, which decreases oxygen delivery to the brain and produces a throbbing headache. Replacing fluids promptly typically resolves this type of headache within an hour.

Is headache and diarrhea a sign of COVID-19? Both headache and diarrhea are documented symptoms of COVID-19. Studies estimate that between 15 and 20% of COVID-19 patients experience gastrointestinal symptoms, and headache is one of the most commonly reported early symptoms. If respiratory symptoms follow within 24 to 48 hours, COVID testing is advisable.

What does it mean when headache and diarrhea occur together? In most cases, the combination indicates a gastrointestinal infection, food poisoning, dehydration, or a migraine episode. It is rarely a sign of something serious when symptoms are mild and improve within a day or two.

Should ibuprofen be taken for a headache when diarrhea is present? Acetaminophen is the better choice when diarrhea is present. Ibuprofen and aspirin can irritate the GI tract lining, which may worsen nausea and diarrhea in an already-inflamed digestive system.

How long should headache and diarrhea last? Most causes resolve within one to three days with rest and rehydration. Symptoms persisting beyond 48 hours, worsening over time, or accompanied by high fever or blood in the stool warrant medical evaluation.

When should someone go to the emergency room for headache and diarrhea? Emergency care is needed for a sudden, severe headache with no prior history, high fever combined with neck stiffness, blood in stool, confusion, significantly reduced urination, or any signs of neurological change.

Jayant Panwar

Written by

Jayant Panwar

Share this article