Why Does Pooping Make My Headache Go Away?

Feeling a headache lift after a bowel movement isn’t in your head. Your gut and your brain are closely wired together, and constipation or other gut trouble often travels with headaches. The relief seems to come less from one switch than from several things easing at once: pressure, nerve signals and the body’s chemical messengers.

How Often Headaches and Constipation Go Together

The overlap is best documented in children. In one group of children and teens with frequent headaches, 1 in 4 was constipated, more than in children generally.1PubMed Central. The relationship between primary headache and constipation in children and adolescents Looked at from the other side, about 1 in 5 constipated children had headaches, compared with about 1 in 18 children without constipation.2PubMed. Comorbidity of headache and functional constipation in children: a cross-sectional survey That gap showed up mainly in headaches that weren’t migraines, such as tension headaches, the dull, band-like kind.2PubMed. Comorbidity of headache and functional constipation in children: a cross-sectional survey

It helps to know which kind you get. A migraine is usually a throbbing pain, often on one side, with nausea or sensitivity to light. A tension-type headache feels like a tight band or pressure across the forehead or the back of the head.

A typical bowel-linked headache is a dull, heavy pressure that builds over a day or two without a bowel movement and fades within an hour or so after you finally go. Timing is one clue among several. If the headache reliably tracks stretches of constipation rather than stress or missed meals, the bowel may be a contributor.

Adults with migraine carry more gut problems too. They were about four times as likely to have constipation as people without migraine.3PubMed. Comorbidity of gastrointestinal disorders, migraine, and tension-type headache: a cross-sectional study in Iran They were also roughly four to five times as likely to have irritable bowel syndrome, indigestion and heartburn.3PubMed. Comorbidity of gastrointestinal disorders, migraine, and tension-type headache: a cross-sectional study in Iran

Treating the bowel can help the head. In the children’s study, headaches improved after constipation was treated.1PubMed Central. The relationship between primary headache and constipation in children and adolescents Still, studies like these show the two go together, not that one always causes the other. Stress, poor sleep and dehydration can trigger both constipation and headaches. Some headache medicines, especially codeine-type painkillers, cause constipation. So the arrow can point either way, or both.

Belly Pressure and Your Head

A sudden rise in pressure inside the abdomen raises pressure inside the skull.4PubMed. A proposed relationship between increased intra-abdominal, intrathoracic, and intracranial pressure The abdomen pushes up pressure in the chest, which partly blocks blood draining out of the head through the neck veins.4PubMed. A proposed relationship between increased intra-abdominal, intrathoracic, and intracranial pressure Carrying a lot of weight around the middle raises belly pressure in the same way, and it has been tied to a condition of raised pressure around the brain.5PubMed. Increased intra-abdominal pressure and cardiac filling pressures in obesity-associated pseudotumor cerebri When chest pressure is higher, the head can feel full or congested. When pressure falls, drainage gets easier, which fits the feeling of the head “clearing.” A stool-filled colon and trapped gas both take up room, so the abdomen feels tight and distended.

Emptying a bloated bowel may lower that pressure, though this hasn’t been measured directly in everyday headaches. The direct measurements come from sudden spikes such as coughing or straining, not from slow bloating, and nobody has measured head pressure before and after an ordinary bowel movement in people with headaches. This is a reasoned fit, not a demonstrated cause. If it plays a role, it fits the heavy, full-headed feeling better than a sharp migraine.

Gut Nerves and Chemical Messengers

The gut makes and uses some of the same chemicals involved in headache. Most of the body’s serotonin is made by cells lining the gut and released as the bowel moves.6IntechOpen. Unlocking the Mysteries: Serotonin Receptor Networks Explored Serotonin is a chemical messenger used in both the brain and the gut. In the gut it helps trigger the muscle waves that move food along, so changes in its release can speed up or slow the bowel. It also helps control how tightly blood vessels in the head squeeze,6IntechOpen. Unlocking the Mysteries: Serotonin Receptor Networks Explored so shifts in gut serotonin could plausibly affect head pain, though this isn’t fully worked out.

CGRP, a pain-signalling chemical central to migraine, is made by nerves in the gut as well as nerves around the head.7PubMed Central. A link between gastrointestinal disorders and migraine: Insights into the gut–brain connection Migraine medicines that block CGRP work on a chemical the gut also uses.7PubMed Central. A link between gastrointestinal disorders and migraine: Insights into the gut–brain connection That helps explain why constipation is a known side effect of some of these medicines, which is worth knowing if you take one.

The gut is lined with millions of nerve cells that talk to the brain constantly, through nerves and the bloodstream. Bloating and cramping are signals the brain has to process, and a brain already prone to headache may react more strongly to them.

An irritated gut can also make nerves more sensitive. In irritable bowel syndrome, constant signals from the bowel can make the spinal cord oversensitive, so pain is felt more widely.8Elsevier / PubMed Central. Peripheral and central contributions to hyperalgesia in irritable bowel syndrome

The gut lining matters too. When it gets leakier, bacterial fragments can enter the blood and stir up inflammation linked to migraine.9PubMed Central. Migraine and the Gut–Brain Axis—The Role of Microbiome-Targeted Biotics A sluggish, irritated bowel may keep these signals going, and moving it along may quiet them.

Why Straining Sometimes Triggers a Headache Instead

Coughing and straining raise chest and belly pressure, briefly raising pressure in the head.10PubMed Central. Headache associated with cough: a review Cough, exercise and sex headaches are rare types linked to sudden strain and pressure surges.11PubMed. Cough, exertional, and sex headaches So hard straining can cause a headache, while finally emptying the bowel may relieve one.

Straining holds your breath and clamps the belly muscles, producing a short pressure spike in the chest and head. A bowel that has emptied leaves the belly softer and less pressurised.

A straining headache typically comes on during the push or just after, as a sudden, short burst of head pain. It often lasts seconds to minutes, though some linger longer. That differs from the slow, dull headache that eases after a bowel movement, which is relieved by finishing rather than triggered by the act.

A sudden, severe headache that peaks within a minute needs emergency care. A first-ever straining headache should be checked by a doctor, since sometimes a structural problem is behind it. Seek urgent help for the worst headache of your life, or one with weakness, confusion or vision loss.

Easing Constipation to Head Off Headaches

Fibre, fluids and regular movement are the first-line ways to prevent constipation. Aim for fruit, vegetables, beans and whole grains, and add fibre slowly over a couple of weeks so the gut can adjust and you get less gas. Fibre needs fluid to work; without enough water it can leave stools harder. If you’re already badly constipated, a sudden jump in fibre can feel worse before it feels better.

Going when you feel the urge, and not rushing, helps avoid straining. Eating or drinking, especially after waking, triggers a natural wave of bowel movement, so a warm drink and a few unhurried minutes on the toilet after breakfast give that reflex a chance. If nothing happens, get up and try again later rather than pushing. Resting your feet on a low stool brings your knees above your hips, a squatting-like posture that helps the muscles around the rectum relax. If that isn’t enough, a pharmacist can suggest a gentle stool softener or fibre supplement.

What you take for the headache matters too. Taking painkillers on many days a month can cause rebound headaches, which doctors call medication overuse headache.12PubMed Central. Medication overuse headache is associated with elevated lipopolysaccharide binding protein and pro-inflammatory molecules in the bloodstream Rebound headache has been linked to a leakier gut and more inflammation in the blood.12PubMed Central. Medication overuse headache is associated with elevated lipopolysaccharide binding protein and pro-inflammatory molecules in the bloodstream Codeine-type painkillers commonly cause constipation, so frequent use may feed both problems at once.

A simple diary can show your own pattern. Note headache days, bowel movements and stool type, then add sleep, water, food and medicines. After a few weeks, patterns tend to become clear, and the diary is worth bringing to your doctor.

See a doctor for ongoing constipation, blood in your stool or weight loss, or if you have headaches on more than half of days. The same goes if you need painkillers more than a couple of days a week. A doctor can check for irritable bowel syndrome or other gut conditions linked to headaches.