Skip to main content
Read about

Stomach Ulcer: Top 2 Causes

Stomach ulcers are a painful but treatable condition. Learn how to prevent them.
Yellow stomach with two sets of brown concentric circles inside.
Tooltip Icon.
Written by Shria Kumar, MD.
Therapeutic Endoscopy Fellow, MD Anderson Cancer Center, Houston, TX
Last updated April 30, 2024

Stomach ulcer quiz

Take a quiz to find out if you have stomach ulcer.

Care Plan


First steps to consider

  • Stomach ulcers (peptic ulcers) should always be treated by a doctor.
  • Your doctor will probably recommend taking OTC or prescription proton pump inhibitors (PPIs)
  • You will likely need to see a doctor in person.
See care providers

Emergency Care

Arrow Icon.

Call 911 or go to the ER if you have any of the following symptoms:

  • Bleeding (black tarry stool)
  • Shortness of breath
  • Feeling lightheaded or dizzy
  • Vomiting
  • Severe abdominal pain
  • Unexplained weight loss

What is a stomach ulcer?

Stomach ulcers can form anywhere in the stomach. They are sores or breaks in the stomach lining and are caused by inflammation. They are also called peptic ulcers or peptic ulcer disease.

The inflammation can be from a longstanding bacterial infection from the bacteria H pylori. Or it can be related to medication, such as nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen (Advil, Motrin) and aspirin, among others. These are the two most common causes.

Stomach ulcers can be acute (short-term) or chronic (long-term), depending on the cause.

How do you know if you have a stomach ulcer?

You’ll feel pain in the center of your stomach, particularly after eating. Acid secretion in the stomach increases to help digest food. This can irritate the ulcer, causing pain.

You may also have bleeding (black, tarry stool or bloody vomit), heartburn, nausea, and vomiting. You may stop feeling hungry or try to avoid food because of the pain, leading to weight loss.

Serious symptoms, including unexplained weight loss, bleeding, and vomiting, can also be a sign of other issues with your GI tract. Talking to your doctor is important, as they will help you figure out what is going on.

Dr. Rx

Symptoms I listen for when diagnosing this illness: Burning belly pain just above the belly button, often made better or worse by eating foods, and even causing nighttime awakening. Any signs of bleeding, such as having tarry black stools or vomiting blood, also alert me to the possibility of an ulcer. —Dr. Shria Kumar

Main symptoms

  • Abdominal pain (usually in the center of your abdomen, does not move to your back or shoulder, and is worse when eating)
  • Bleeding (black, tarry stool; or bloody vomit)
  • Heartburn
  • Weight loss
  • Nausea or vomiting
  • Avoidance of eating (either because you’re not hungry or the pain it causes)
  • Bloating
  • Feeling full
  • Difficulty or pain with swallowing

Other symptoms you may have

  • Anemia, or low blood counts. Your doctor would confirm with a blood test. Though anemia can be caused by many other medical issues.

What makes you more likely to have it

Stomach ulcers can happen to anyone. But there are a few risk factors that make someone more likely to get it, including a family history of ulcer disease.

The two most common causes are:

  • H pylori is a common bacteria that infects over half the world’s population. It’s often acquired in childhood, and usually causes no issues. The vast majority of people who have the infection never have any symptoms. However, some can develop stomach ulcers.
  • Nonsteroidal medications, such as aspirin, ibuprofen (Motrin, Advil), naproxen (Aleve). Often these are taken as a treatment for pain or prevention for joint or muscle inflammation and pain. Talk to your doctor before starting nonsteroidals. For some people, nonsteroidals should be taken with an antacid medication, to minimize developing stomach ulcers.

There are other, less common, causes.

  • Stress ulcers. These are not from day-to-day stress as widely believed. They are caused by severe illness, such as severe burns, trauma, or being critically ill in an intensive care unit.
  • Radiation therapy for cancers.
  • Viruses.
  • Low blood flow.
  • Medications.
  • Zollinger-Ellison syndrome (unusual amount of excess acid).
  • Smoking.
  • Crohn's disease.

Next steps

If you are worried you have a stomach ulcer, call your doctor. If bleeding—black and tarry or bloody stool or vomit—or have severe nausea and vomiting, go to the ER.

Stomach ulcers in children

Children can also develop stomach ulcers, for similar reasons as adults. But ulcers are less common in children. Keep in mind that symptoms may be harder to figure out in children and babies (stomach ulcers are very rare in babies). Talking with your pediatrician is important.

What causes ulcers in the stomach?

The stomach is essential to breaking down the foods we eat. This means it is a high acid area. The lining of your stomach is generally tough and able to handle it. But if there is inflammation, from H pylori infection or nonsteroidal agents, this lining can become irritated, interfering with the stomach’s defenses. Then, because of the acid in the stomach, the ulcer may form.

Pro Tip

It is very rare that everyday stress—think work, home, or otherwise—results in a stomach ulcer. —Dr. Kumar

Stomach ulcer treatment

Treatment usually involves 1) diagnosing the ulcer, 2) diagnosing the cause, and 3) providing acid protection and treating the cause.

To diagnose an ulcer, a gastroenterologist (doctor who specializes in intestinal problems) will do an endoscopy of your upper gastrointestinal tract. It’s a flexible tube with a camera that is placed through the mouth, into the stomach area. It allows the gastroenterologist to see if there are ulcers in the stomach. Biopsies may be taken to look for H pylori infection.

The biopsies and a careful medical history will help the doctor figure out the cause.

If it’s H pylori, you’ll be prescribed antibiotics to treat the infection. Once you are treated for H pylori, a repeat test should be done to check that the infection is gone. Usually, a stool sample is sent to a laboratory or a breath test is done to look for the bacteria.

When nonsteroidal medications are the cause, your doctor will consider lowering or changing what you are taking. Reducing stomach acid with a proton pump inhibitor (like Nexium and Prilosec) can help with healing.


  • Antibiotics. Even if you start to feel better after a few days, it’s important to finish the entire course of antibiotics.
  • High-dose acid suppression medication. Acid production is lessened with a proton pump inhibitor (like Nexium and Prilosec) to allow the stomach to heal. These are usually used short-term (2 to 3 months).

Ready to treat your stomach ulcer?

We show you only the best treatments for your condition and symptoms—all vetted by our medical team. And when you’re not sure what’s wrong, Buoy can guide you in the right direction.See all treatment options
Illustration of two people discussing treatment.

Pro Tip

Ask your doctor: Why did I get this ulcer? Your doctor can help pinpoint the most likely cause of your ulcer. If it was the stomach bacteria, treat it! If it was lots of nonsteroidals, you may be able to switch to alternative medications. —Dr. Kumar

Follow up

A few months after treating an ulcer, you will have another endoscopy. This is to check that the stomach lining is completely healed.


The best way to prevent stomach ulcers is to always let your doctor know about any medications you are taking. Especially important for over-the-counter medications, like nonsteroidals.

Depending on your medical history, your doctor may suggest switching to other medications, such as acetaminophen (Tylenol) or nonsteroidals that are less likely to cause ulcers. They may decrease the dose of the nonsteroidals you are taking. Or prescribe antacid medication to protect the stomach while taking the nonsteroidals.

Share your story
Once your story receives approval from our editors, it will exist on Buoy as a helpful resource for others who may experience something similar.
The stories shared below are not written by Buoy employees. Buoy does not endorse any of the information in these stories. Whenever you have questions or concerns about a medical condition, you should always contact your doctor or a healthcare provider.
Therapeutic Endoscopy Fellow, MD Anderson Cancer Center, Houston, TX
Dr. Kumar is a gastroenterologist, who completed her fellowship at the Hospital of the University of Pennsylvania in Philadelphia. She received her undergraduate degrees in Religious Studies and Chemistry from New York University (2010) and graduated from the Albert Einstein College of Medicine (2014), where she was inducted into the Alpha Omega Alpha Honor Medical Society. She is completing her t...
Read full bio

Was this article helpful?

19 people found this helpful
Tooltip Icon.
Read this next
Slide 1 of 4