Spicy food causes stomach pain because capsaicin, the compound that makes peppers hot, activates pain receptors lining your digestive tract. These are the same receptors that detect scalding heat, so your gut literally interprets spicy food as a burn. The pain is real, but in most cases it’s temporary and doesn’t mean anything is damaged.
How Capsaicin Triggers Pain in Your Gut
Your stomach and intestines are lined with sensory nerve fibers that contain a receptor called TRPV1. This receptor’s normal job is detecting dangerous heat and acidic conditions, essentially acting as an alarm system for your digestive tract. Capsaicin happens to fit into this receptor like a key in a lock, switching it on even though there’s no actual thermal burn happening.
When capsaicin activates TRPV1, the receptor opens and allows calcium and other charged particles to flood into nerve cells. This triggers a cascade of pain signals sent straight to your brain, producing that familiar burning sensation. The feeling isn’t limited to your mouth. TRPV1 receptors are found throughout the entire gastrointestinal tract, which is why the burning can follow the food all the way down, from your esophagus to your stomach to your intestines.
Spicy Food Doesn’t Cause Ulcers
One of the most persistent beliefs about spicy food is that it causes stomach ulcers. Research has shown the opposite is closer to the truth. Capsaicin does not stimulate acid secretion. It actually inhibits it, while also promoting the release of protective mucus and increasing blood flow to the stomach lining, both of which help prevent and heal ulcers. Ulcers are caused by overuse of anti-inflammatory painkillers like ibuprofen and by infection with the bacterium H. pylori, not by chili peppers.
That said, if you already have an ulcer, gastritis, or another condition affecting your stomach lining, capsaicin will still activate those pain receptors and make the area feel significantly worse. The distinction matters: spicy food irritates, but it doesn’t injure healthy tissue.
Why Some People Feel It More Than Others
Your genetics play a measurable role in how intensely you experience spicy food. Variations in bitter taste receptor genes, particularly one called TAS2R38, influence how much burn and bitterness you perceive from capsaicin. People who carry two copies of the more sensitive version of this gene perceive significantly greater bitterness and intensity from capsaicin compared to those with the less sensitive version. This is part of why two people can eat the same dish and have wildly different reactions.
Beyond genetics, your baseline gut sensitivity matters. People with irritable bowel syndrome (IBS) tend to have higher numbers of TRPV1 receptors in their intestinal lining, a condition called visceral hypersensitivity. In one study, women who ate spicy foods 10 or more times per week had a significantly higher prevalence of IBS symptoms (about 30%) compared to women who never ate spicy foods (18%). The relationship likely runs both directions: sensitive guts react more to spice, and frequent spice exposure may amplify symptoms in people already prone to IBS.
The Reflux Connection
If your pain feels more like burning behind the breastbone than deep in your stomach, capsaicin may be worsening acid reflux. In people with non-erosive reflux disease, eating chili significantly increased abdominal burning compared to a placebo meal. The mechanism involves the stomach relaxing more than it should after a spicy meal, which increases the rate of transient relaxations in the valve between your esophagus and stomach. Each relaxation is an opportunity for acid to creep upward.
Healthy volunteers in the same study didn’t show the same exaggerated response, which suggests that spicy food primarily amplifies reflux symptoms in people who already have some degree of the condition rather than creating the problem from scratch.
What Happens Further Down
Capsaicin doesn’t get fully neutralized in the stomach. As it moves into the intestines, it continues activating TRPV1 receptors along the way. This can speed up intestinal contractions, pushing food through faster than normal and pulling more water into the bowel. The result is cramping, urgency, and loose stools, sometimes within a few hours of eating. The burning sensation during a bowel movement happens because TRPV1 receptors are present in the rectum and anus too, and capsaicin is still chemically active at that point.
How You Build Tolerance Over Time
Regular spicy food eaters aren’t imagining their increased tolerance. TRPV1 receptors undergo a process called desensitization when they’re repeatedly exposed to capsaicin. After activation, the receptor’s internal structure physically changes through an interaction between different parts of the protein, making it progressively less responsive. This desensitization happens on a scale from milliseconds to days depending on the level of exposure.
This is why someone who grows up eating spicy cuisine can handle heat levels that would be agonizing for a newcomer. The receptors are still there, but they’ve been effectively turned down. If you stop eating spicy food for a while, sensitivity gradually returns as receptors reset.
What Actually Helps
If your stomach is already hurting, dairy is your best first move. Milk contains casein, a protein that binds to capsaicin and strips it away from your receptors, similar to how dish soap cuts through grease. Water doesn’t work because capsaicin is fat-soluble, not water-soluble. It just spreads it around. Full-fat milk, yogurt, or ice cream will be more effective than skim because the fat also helps dissolve capsaicin.
For the stomach pain itself, an over-the-counter antacid can help if reflux is part of the picture. Eating a starchy food like rice or bread alongside spicy dishes can slow the direct contact between capsaicin and your stomach lining. Eating spicy food on an empty stomach is one of the fastest ways to maximize pain, because there’s nothing to buffer the capsaicin’s contact with your gut wall.
If you want to enjoy spicier food over time, the most effective strategy is gradual, consistent exposure. Start with milder peppers and slowly increase the heat level over weeks. Your TRPV1 receptors will desensitize, and what once caused pain will register as a pleasant warmth. Most capsaicin-related stomach discomfort resolves on its own within a few hours as the compound moves through your system and breaks down.

