A nervous stomach — butterflies, nausea, cramping or an urgent need for the bathroom when you're stressed — is not imaginary and not a character flaw. It's the physical signature of the gut-brain axis: the same wiring that lets your gut inform your mood lets your brain reach straight into your gut. When "stomach and nerves" seem linked, it's because they are.
What's actually happening when stress hits your gut
Two systems carry the signal. The first is the stress-hormone pathway — the HPA axis — which floods the body with cortisol and adrenaline; animal work shows this system is itself calibrated by gut bacteria early in life, and a disrupted microbiome produces an exaggerated stress response.[1] The second is the vagus nerve, the direct data cable between brain and gut: it changes gut motility, secretion and sensitivity in real time, which is why anxiety can translate into cramps or urgency within minutes.[2]
Why it goes both ways
The traffic isn't one-directional. Because roughly 90% of vagus fibres carry information from the gut to the brain, an irritated or inflamed gut also feeds unease back upward — which is why gut trouble and anxiety so often travel together, each amplifying the other.[2][3] Reviews of the microbiota-gut-brain axis describe exactly this loop: the microbiome influences anxiety, and stress reshapes the microbiome.[3][4]
What helps
Because the vagus nerve is the shared channel, the things that calm it — slow breathing, regular sleep, movement — genuinely settle the gut, not as a placebo but through the same nerve. And because the microbiome sets the baseline for how reactive that whole system is, its composition matters. To see what state your own gut is in, at-home microbiome testing maps the bacteria that tune this stress response.
Can an upset stomach cause anxiety (not just the other way around)?
Yes — the traffic runs both ways. Because most vagus-nerve fibres carry information from gut to brain, an irritated, inflamed or churning gut can feed unease upward, making you feel anxious or on-edge even when nothing else is wrong. This is why gut trouble and anxiety so often travel together, each amplifying the other (Breit et al., 2018, PMID 29593576).
Can coffee cause anxiety or an upset stomach?
For some people, yes. Caffeine is a stimulant that can heighten the body’s stress-hormone response and jangle an already-sensitive gut, and coffee also nudges gut motility — which is why "coffee for the stomach" cuts both ways: it gets some people moving but leaves others queasy or jittery. If coffee reliably brings on butterflies or urgency for you, that is your gut-brain axis responding as designed; see coffee, anxiety and the gut for the detail. None of this is a disorder to be treated — it is a signal to work with.
