Digestive health

Stress and Spicy Food Don't Cause Ulcers. Here's What Does

Save

For decades this got blamed on nerves and hot sauce. It is neither. Here is what actually erodes the stomach or duodenal lining, why the old theory stuck around so long, and how a real ulcer differs from the milder inflammation called gastritis.

Last updated: July 2026

Talk to a clinician

Gale can help you find a clinician in your state and request a visit.

Find care →

The Myth: Stress and Spicy Food Cause Ulcers

For most of the twentieth century, doctors were taught that stomach ulcers came from stress, spicy food, and too much stomach acid produced by an anxious mind, advice that led millions of people toward bland diets and relaxation, neither of which reliably prevented or healed an ulcer.

That explanation held on for decades because it matched the timing of symptoms: eating something spicy or going through a stressful stretch often did make ulcer pain worse, which felt like proof of cause. It took the discovery that a bacterium could survive and thrive in the stomach's acidic environment to overturn that theory. The two things actually shown to cause the great majority of peptic ulcers are an infection and a class of common pain medications, neither of which has anything to do with what someone eats or how anxious they feel.

The Real Cause #1: H. Pylori Infection

Helicobacter pylori, a bacterium that burrows into the stomach's protective mucus layer, is the single most common cause of peptic ulcer disease worldwide, working through chronic inflammation that eventually breaks through the stomach or duodenal lining 1.

Once established, H. pylori infection can persist for years or decades without being addressed, and during that time it steadily weakens the lining's ability to protect itself from the stomach's own acid. The 2024 ACG treatment guideline for H. pylori confirms the bacterium as a cause not just of gastritis but of peptic ulcer disease and, less commonly, gastric cancer, and it now favors bismuth quadruple therapy as the first-line antibiotic regimen given how common resistance to older drugs like clarithromycin has become 1. Confirming and treating the infection is what actually resolves this cause, not a change in diet.

The Real Cause #2: NSAIDs

Regular use of NSAIDs such as ibuprofen, naproxen, or aspirin is the second major cause of peptic ulcers, working by blocking enzymes the stomach lining needs to keep making its own protective mucus and bicarbonate 2.

At a milder degree, this same mechanism produces the reactive gastropathy seen with NSAID or alcohol use, inflammation and irritation without a full break in the lining. With more prolonged or higher-dose use, the damage can go deep enough to erode all the way through the lining and form a genuine ulcer, a crater rather than surface inflammation 2. This risk climbs with age and with the dose and duration of NSAID use. Unlike H. pylori, this cause is entirely avoidable by adjusting or stopping the medication, once the ulcer and its cause have actually been identified rather than assumed.

Why Stress and Spicy Food Got the Blame

Stress and spicy food do not cause peptic ulcers, but they can make the pain from an ulcer that is already there feel worse, which is exactly the kind of correlation that made the old theory so convincing for so long.

Spicy or acidic foods can irritate an already-damaged stomach lining on contact, producing a burning sensation that has nothing to do with why the ulcer formed in the first place. Similarly, significant physical stress, critical illness, major trauma, extensive burns, can trigger a genuinely different kind of stomach damage known as stress-related erosive gastritis, a real phenomenon but a distinct one from the everyday psychological stress most people mean when they blame stress for their ulcer. Neither a stressful week nor a plate of hot wings put the hole in the stomach lining to begin with — but avoiding known irritants can still make an existing ulcer more comfortable while it heals.

Gastritis vs. Ulcer: What's Actually Different

Gastritis and a peptic ulcer share the same two leading causes, H. pylori and NSAIDs, but they are not the same finding: gastritis is inflammation of the lining, while an ulcer is an actual break, or crater, through it.

Both can be present together, and both are usually identified the same way, by endoscopy with biopsy when needed. what causes gastritis walks through the fuller list of causes behind stomach inflammation, including two, autoimmune disease and critical illness, that do not typically produce ulcers the same way H. pylori and NSAIDs do. The distinction matters less for what someone feels day to day and more for what a clinician expects to find and how they treat it once they look.

When Ulcer Symptoms Need a Closer Look

Most suspected ulcer symptoms in people under 60 without other red flags are reasonably managed with a test-and-treat approach for H. pylori or a trial of acid-suppressing medication, rather than an automatic endoscopy 3.

Alarm features change that calculus directly: the ACG and CAG dyspepsia guideline names bleeding, unintentional weight loss, and difficulty swallowing as reasons to move straight to endoscopy rather than try treatment first, and age 60 or older on its own is enough to warrant a scope 3. Unintentional weight loss in particular is a recognized red flag that prompts a broader evaluation for serious disease, not just an ulcer workup 4. Bleeding from an ulcer is its own emergency picture, covered in more detail elsewhere; what belongs here is the plain rule that pain paired with any of these features is not a stress-management problem. gastric vs duodenal ulcers differ in some of their triggers and timing, and duodenal ulcer pain in particular has a pattern, often easing right after eating, that is worth knowing on its own. What an ulcer actually feels like, gnawing or burning pain that often follows a pattern tied to meals, is covered separately as stomach ulcer symptoms, distinct from the cause question this page answers. Persistent upper-stomach pain that keeps returning also raises the reasonable question of whether stress itself plays any role at all; can stress cause stomach problems is answered honestly, separate from the ulcer-cause myth, on its own page.

Common questions

No, not on its own. The two causes behind the great majority of peptic ulcers are H. pylori infection and regular NSAID use. Significant physical stress, such as critical illness, can cause a different kind of stomach damage, but everyday psychological stress is not documented to cause ulcers, though it can make existing ulcer pain feel worse.

No. Spicy food does not create the underlying damage that forms an ulcer. It can irritate an already-damaged stomach lining and make symptoms more noticeable in someone who has an ulcer, which is likely why the myth persisted for so long, but it is not the cause.

Testing distinguishes them. A breath, stool, or blood test checks for H. pylori infection, while a detailed medication history covers regular NSAID or aspirin use. Sometimes both are present at once, since having one risk factor does not protect against the other, and treatment differs depending on which is driving the ulcer.

Some do improve if the underlying cause resolves, an NSAID is stopped, for instance, but H. pylori infection generally persists and keeps causing damage until it is specifically treated with antibiotics. Leaving either cause unaddressed raises the chance of complications like bleeding, so identifying and treating the actual cause matters more than waiting it out.

No. Gastritis is inflammation of the stomach lining; an ulcer is an actual break, or crater, through that lining, a deeper injury. They share the same two leading causes, H. pylori and NSAIDs, and can occur together, but they are distinguished by endoscopy rather than by symptoms alone.

Related

Say it back

How would you explain this to someone you love?

Two or three sentences, just as you’d say it. Gale reflects back what you focused on — a mirror, not a quiz.

Talk to a clinician

Gale can help you find a clinician in your state and request a visit.

Find care →

When Ulcer Pain Needs Urgent Attention

  • Vomiting blood or material that looks like coffee grounds
  • Black, tarry stools, or sudden, severe abdominal pain
  • Unintentional weight loss
  • Difficulty or pain swallowing

Vomiting blood, vomit that looks like coffee grounds, black tarry stools, or sudden severe abdominal pain can signal a bleeding or perforated ulcer. These are reasons to go to an emergency department immediately, not to wait for a scheduled appointment.

This article explains what causes peptic ulcers in general terms; it does not diagnose your pain. Only a clinician, usually with endoscopy or H. pylori testing, can confirm whether an ulcer is present and why.

References

  1. 1.Chey WD, Howden CW, Moss SF, Morgan DR, Greer KB, Grover S, Shah SC (2024). ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. American Journal of Gastroenterology. doi:10.14309/ajg.0000000000002968Supports that H. pylori causes peptic ulcer disease, along with dyspepsia, gastritis, and gastric cancer, and that current first-line treatment is bismuth quadruple therapy given rising clarithromycin resistance.
  2. 2.National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) (2019). Symptoms & Causes of Gastritis & Gastropathy. NIDDK, National Institutes of Health. linkIdentifies NSAID and alcohol use as a cause of reactive gastropathy through disruption of the stomach lining's protective mucus and bicarbonate production, the same mechanism that, at greater severity, produces an ulcer.
  3. 3.Moayyedi P, Lacy BE, Andrews CN, Enns RA, Howden CW, Vakil N (2017). ACG and CAG Clinical Guideline: Management of Dyspepsia. American Journal of Gastroenterology. doi:10.1038/ajg.2017.154Supports the age and alarm-feature threshold, bleeding, weight loss, dysphagia, age 60 and older, for moving to endoscopy rather than a test-and-treat or empiric-therapy approach.
  4. 4.Gaddey HL, Holder KK (2021). Unintentional Weight Loss in Older Adults. American Family Physician. linkSupports that unintentional weight loss is a recognized red flag warranting a broader medical workup for serious disease.

4 sources, numbered by first appearance. General health information, not medical advice. AI-assisted editorial content — every citation independently verified. Editorial policy