SYNTHETIC DEMONSTRATION — no real student or patient. Not a medical device.

Digestive health

Stomach Ulcer Symptoms: What That Gnawing Pain in Your Upper Belly Could Mean

Peptic ulcer pain is typically a burning, gnawing, or hollow ache in the upper middle abdomen, often worse on an empty stomach and sometimes eased briefly by eating or antacids. Some ulcers cause no pain at all. The most common causes are H. pylori infection and regular NSAID use; diagnosis requires clinical evaluation.

Talk to a clinician

Nina Osei, NPNurse Practitioner

checkups, refills & skin. Gale can match you with a licensed clinician for a visit.

Find care →

What does stomach ulcer pain typically feel like?

Most people with peptic ulcers describe a burning, gnawing, or hollow ache — sometimes called a 'hungry' feeling — centered just below the breastbone or in the upper middle abdomen. The discomfort usually comes and goes over days or weeks rather than being constant.

Timing relative to meals offers a useful clue. Gastric (stomach) ulcers sometimes worsen right after eating, when acid is released. Duodenal ulcers — which form in the first part of the small intestine — more commonly hurt when the stomach is empty, particularly overnight or in the early morning, and may ease temporarily after eating or taking an antacid 1.

Not everyone fits these patterns. Some people have an ulcer with no noticeable pain at all — which is one reason that a clinician's evaluation matters.

What other symptoms can accompany an ulcer?

Beyond the central ache, a peptic ulcer can also cause nausea (sometimes with vomiting), a feeling of fullness or bloating after small amounts of food, decreased appetite, or mild heartburn. These symptoms overlap heavily with other digestive conditions — including functional dyspepsia, GERD, and gastritis — which is why testing and a clinical evaluation are important for a clear diagnosis 2.

What causes peptic ulcers?

The two most common causes account for the large majority of cases 13:

H. pylori infection. Helicobacter pylori is a bacterium that erodes the protective mucus lining of the stomach or duodenum, allowing stomach acid to damage the tissue underneath. H. pylori infection is very common worldwide, and treating it is often curative 1.

Regular NSAID use. Ibuprofen, naproxen, aspirin, and similar medications taken regularly suppress the prostaglandins that protect the stomach lining. Daily or near-daily NSAID use is a leading cause of peptic ulcers 3.

Stress and spicy food do not cause ulcers on their own, though they may worsen discomfort once an ulcer is present. Smoking and heavy alcohol use slow healing and increase the risk of complications.

How are ulcers diagnosed?

A clinician will typically start by testing for H. pylori — this can be done with a breath test, stool antigen test, or blood antibody test 1. An upper endoscopy (EGD) can directly visualize the stomach and duodenum, confirm an ulcer, take biopsies to rule out cancer, and test for H. pylori at the same time 2. A complete blood count can detect anemia that might suggest slow bleeding from an ulcer 4.

What else could cause this kind of upper abdominal pain?

Upper abdominal pain has several common causes that can feel similar to an ulcer:

  • Functional dyspepsia — very common; the stomach is structurally normal but symptoms of bloating, early fullness, and nausea persist, often worsened by stress 2
  • GERD — burning that rises toward the chest or throat, worse lying down or after large meals 2
  • Gastritis — inflammation of the stomach lining without a full ulcer; can feel nearly identical
  • Gallbladder disease — upper-right or mid-upper abdominal pain, often after fatty meals, sometimes with radiation to the shoulder blade
  • Stomach cancer — uncommon, but worth discussing with a clinician if there is unintentional weight loss, persistent vomiting, difficulty swallowing, or you are over 55 2

When should you see a clinician?

If you are having recurrent upper abdominal pain that suggests an ulcer, it is worth contacting your primary care clinician. A straightforward test for H. pylori can be done without an endoscopy in many cases 1. If you take NSAIDs regularly and have developed stomach symptoms, tell your clinician — switching medications or adding a stomach-protective drug may be appropriate. Do not simply increase antacid use without an evaluation.

Common questions

Can I have a stomach ulcer without pain?

Yes. Some ulcers are 'silent' — they cause no noticeable pain and are only discovered when a complication such as bleeding develops. This is one reason that black or tarry stools, or vomiting blood, should never be ignored.

Does stress cause stomach ulcers?

Stress alone does not cause peptic ulcers. The two main causes are H. pylori infection and regular NSAID use. Stress and spicy food can worsen symptoms once an ulcer is present, but they are not the root cause.

How is H. pylori treated?

H. pylori is typically treated with a combination of antibiotics and acid-suppressing medication (a proton pump inhibitor) for one to two weeks. Eradicating the bacteria often heals the ulcer and prevents it from returning. Your clinician will confirm eradication with a follow-up test.

Is it safe to take ibuprofen if I have ulcer symptoms?

It is worth pausing regular NSAID use and discussing it with your clinician before continuing. NSAIDs are a leading cause of peptic ulcers and can worsen an existing one. A clinician can recommend alternatives or add a stomach-protective medication if NSAIDs are needed.

What is the difference between a stomach ulcer and indigestion?

Indigestion (functional dyspepsia) can feel very similar to an ulcer — upper abdominal discomfort, bloating, and nausea — but the stomach lining is structurally normal. An ulcer involves actual erosion of the stomach or duodenal lining, usually from H. pylori or NSAIDs. Testing is needed to tell them apart.

Talk to a clinician

Nina Osei, NPNurse Practitioner

checkups, refills & skin. Gale can match you with a licensed clinician for a visit.

Find care →

When stomach ulcer symptoms are an emergency

  • Vomiting blood or material that looks like coffee grounds
  • Black, tarry, or maroon stools — a sign of internal bleeding
  • Sudden severe stomach pain that came on like a thunderclap or knife-stab — possible ulcer perforation
  • Feeling faint, very pale, or cold and clammy with abdominal pain
  • Pain so severe you cannot get comfortable in any position

If you notice blood in vomit or very dark/tarry stools, or if abdominal pain becomes sudden and severe, call 911 or go to the emergency department immediately. Bleeding or perforated ulcers are life-threatening emergencies.

This article provides general health information and is not a diagnosis, medical opinion, or substitute for evaluation by a licensed clinician. If you are experiencing severe pain, vomiting blood, or black stools, seek emergency care immediately.

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.0000000000002968H. pylori as a primary cause of peptic ulcers, testing methods (breath test, stool antigen), and that eradicating H. pylori is often curative; also timing of pain relative to meals in duodenal vs gastric ulcers
  2. 2.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.154Differential diagnosis of upper abdominal pain including functional dyspepsia vs peptic ulcer, GERD overlap, and when endoscopy is indicated; stomach cancer as a differential in appropriate-risk patients
  3. 3.National Institute of Diabetes and Digestive and Kidney Diseases (2022). Peptic Ulcers (Stomach or Duodenal Ulcers). NIDDK Health Information. linkNSAID use as a leading cause of peptic ulcers alongside H. pylori; role of smoking and alcohol in impaired healing
  4. 4.Laine L, Barkun AN, Saltzman JR, Martel M, Leontiadis GI (2021). ACG Clinical Guideline: Upper Gastrointestinal and Ulcer Bleeding. American Journal of Gastroenterology. doi:10.14309/ajg.0000000000001245CBC as a test for anemia suggesting bleeding from a peptic ulcer; endoscopy in suspected upper GI bleeding

4 sources, numbered by first appearance. General health information, not medical advice — synthetic demonstration content.