Digestive health

Gastric vs Duodenal Ulcers: Same Disease, Different Timing

Save

People often reach for a classic rule of thumb — that eating worsens gastric ulcer pain but eases duodenal ulcer pain — to guess which one they have. This explainer covers what actually causes both types, why that food-timing pattern isn't reliable enough to lean on, how endoscopy settles the question, and what treatment looks like once H. pylori is confirmed as the driver.

Last updated: July 2026

Talk to a clinician

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

Find care →

What actually separates a gastric ulcer from a duodenal one?

The difference is location, not severity. A gastric ulcer is a sore in the lining of the stomach itself; a duodenal ulcer forms just beyond the stomach, in the first stretch of the small intestine called the duodenum. Both are forms of peptic ulcer disease, and H. pylori infection is one of the two dominant causes behind both 1.

Neither location is inherently more dangerous than the other; what matters more for both is whether the ulcer is actively bleeding, how deep it goes, and whether the underlying cause gets addressed. The location mostly determines which nearby structures are at risk if a complication develops, and how the ulcer looks on endoscopy.

The duodenum picks up where the stomach's outlet ends — it's the first stretch of the small intestine, and the closest one to the stomach, which is part of why ulcers there get grouped with gastric ulcers under the same umbrella term, peptic ulcer disease, rather than treated as an entirely separate condition.

What causes both types of ulcer?

H. pylori infection and NSAID use are the two dominant causes of peptic ulcer disease, gastric and duodenal alike, and treating H. pylori when it's present is now the core of current guideline-directed therapy 1. Alcohol and NSAIDs can also inflame the stomach lining directly, through a different, non-infectious mechanism sometimes called reactive gastropathy rather than classic gastritis 2.

The idea that spicy food causes ulcers is a persistent spicy food ulcer myth — it can irritate an ulcer that's already there, but it doesn't create one in a healthy stomach lining. What causes ulcers really comes down to two things: infectious (H. pylori) and chemical (regular NSAID use), and identifying which one applies changes the treatment plan.

Because both causes are common and can coexist, someone taking NSAIDs regularly who also tests positive for H. pylori may be dealing with both mechanisms at once. A full history — how often NSAIDs are used, whether H. pylori has ever been tested for — usually shapes the treatment plan more than a single test result on its own.

Does the classic pain-timing pattern actually tell them apart?

There's a textbook teaching that gastric ulcer pain tends to worsen with eating, while duodenal ulcer pain often eases with food and returns a few hours later — but it's a generalization, not a reliable individual test, and plenty of people don't fit it cleanly in either direction. Leaning on meal-timing alone to self-diagnose which type of ulcer is present isn't something the pattern actually supports.

Stomach ulcer symptoms and duodenal ulcer symptoms overlap heavily anyway — burning or gnawing pain in the upper abdomen, sometimes at night, sometimes easing briefly with food or antacids. Both can also be completely silent, especially in older adults or people taking NSAIDs regularly, which is part of why the food-timing story gets more credit than it deserves as a diagnostic tool.

What's more useful than tracking meal timing alone is noticing whether the pain is new, whether it's progressively worsening, and whether it comes with other symptoms — nausea, appetite loss, feeling full after only a few bites — since that combination says more about how urgently it needs attention than where the pain sits relative to a meal.

So how do doctors actually tell them apart?

The only way to reliably tell a gastric ulcer from a duodenal one — or to confirm either is actually present rather than a different cause of stomach pain — is to look directly with an upper endoscopy. Guidelines reserve endoscopy for people who are 60 or older, or who have alarm features like bleeding or weight loss; younger people without those features are often tested and treated for H. pylori empirically first 3.

For someone with right-upper-quadrant pain that comes in waves after a fatty meal, biliary colic is a more likely explanation than an ulcer, and abdominal pain by location is often the first sorting tool a clinician uses before deciding what test to order next.

How does treating H. pylori actually work?

When H. pylori is confirmed as the cause, current guidance favors a combination regimen — bismuth quadruple therapy — as the preferred first attempt, a shift driven by rising resistance to an antibiotic that used to be the mainstay 1. Confirming that the infection is actually gone after treatment, rather than assuming it worked, is part of the recommended process 1.

A separate explainer covers what a urea breath test H. pylori actually involves, along with the other ways an infection gets identified. No specific dose or drug combination is something to expect from a general explainer like this one; that's a conversation for whoever is prescribing it.

A follow-up test after treatment is generally used to confirm the infection is actually gone, rather than assuming a completed course of medication worked — testing too soon can give a misleading result. NSAID-driven ulcers follow a different path: the priority there is stopping or reducing the NSAID where medically possible, since the ulcer is unlikely to fully heal while the irritant continues.

When does ulcer-like pain need prompt attention?

Most peptic ulcers are manageable once identified and treated, but a subset bleed, and unintentional weight loss alongside stomach pain is one of the clearest signals that something beyond a routine ulcer needs to be ruled out 4. That combination — ongoing pain plus weight loss the person didn't intend — is enough on its own to warrant prompt evaluation rather than waiting to see if it passes.

Diverticulosis is a separate condition that can also cause lower abdominal pain and is worth knowing as a distinct diagnosis, since not every stomach or abdominal complaint traces back to an ulcer at all.

Persistent pain that doesn't respond to standard treatment, even after H. pylori has been addressed and NSAIDs stopped, is itself a reason to revisit the diagnosis rather than assume the treatment just needs more time to work.

Common questions

Not inherently. Both are peptic ulcers, treated the same way once the cause — usually H. pylori or NSAID use — is identified. What matters more than location is whether the ulcer is bleeding, how deep it is, and whether the underlying cause gets addressed rather than just the pain.

Not reliably. Pain location and timing overlap heavily between the two, and both can be silent, especially in people taking NSAIDs regularly. Endoscopy — looking directly at the stomach and duodenum — is what actually confirms which type of ulcer is present, not the symptom pattern alone.

It depends on age and symptoms. Guidelines generally reserve endoscopy for people 60 or older or those with alarm features like bleeding or unintended weight loss; younger people without those features are often tested and treated for H. pylori first, without an endoscopy up front.

No — spicy food doesn't create an ulcer in a healthy stomach lining, though it can aggravate one that already exists. The two things that actually cause most peptic ulcers are H. pylori infection and regular NSAID use, not diet.

Addressing the underlying cause matters more than time alone. If H. pylori is present, guideline-directed treatment is what resolves it; if NSAIDs are the driver, the ulcer is unlikely to fully heal while use continues. Either way, the cause — not just the symptom — is what needs treating.

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 symptoms need urgent attention

  • Vomiting blood or material that looks like coffee grounds
  • Black, tarry, or maroon-colored stools
  • Unintentional weight loss alongside stomach pain
  • Sudden, severe abdominal pain, especially if the abdomen becomes rigid

Vomiting blood, black or tarry stools, or sudden severe abdominal pain are signs of possible ulcer bleeding or perforation and warrant an emergency room visit, not a scheduled appointment.

This article explains general patterns in peptic ulcer disease and is not a diagnosis. Ongoing or recurring stomach pain deserves an in-person evaluation, including endoscopy where a clinician recommends it.

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 naming H. pylori as a cause of peptic ulcer disease and current first-line treatment (bismuth quadruple therapy given rising clarithromycin resistance) plus confirmation of eradication.
  2. 2.National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) (2019). Symptoms & Causes of Gastritis & Gastropathy. NIDDK, National Institutes of Health. linkSupports naming H. pylori as the most common cause of gastritis and NSAID/alcohol-related reactive gastropathy as a separate, non-infectious mechanism.
  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/alarm-feature threshold determining whether dyspepsia is managed with test-and-treat/empiric PPI versus upper endoscopy.
  4. 4.Gaddey HL, Holder KK (2021). Unintentional Weight Loss in Older Adults. American Family Physician. linkSupports that unintentional weight loss alongside digestive symptoms is a red flag warranting evaluation for serious underlying disease.

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