Stomach Ulcer

A stomach ulcer is a sore or open wound in the lining of the stomach. It can cause pain and sometimes bleeding.

Condition

What people with Stomach Ulcer report

Every report comes from a Lived member, sent anonymously.

Have you tried Prilosec (Omeprazole) for Stomach Ulcer?

NameHow it went

About Stomach Ulcer

What It Is

A stomach ulcer, also called a gastric ulcer, is an open sore in the lining of the stomach. Normally that lining protects itself from the acid the stomach uses to digest food. When the protection breaks down, acid wears into the tissue and creates an ulcer. Stomach ulcers and similar sores in the duodenum, the first part of the small intestine, are together known as peptic ulcers. The most common symptom is a dull or burning pain in the upper abdomen, between the belly button and the breastbone. It may come and go over days or weeks. Some people notice it on an empty stomach or at night, while for others eating makes it worse. Bloating, belching, nausea and feeling full too quickly are also common. Many people have no symptoms at all until the ulcer causes a complication such as bleeding, which is one reason ulcers matter: left untreated, they tend to get worse.

Causes & Risk Factors

Most stomach ulcers have one of two causes. The first is infection with Helicobacter pylori (H. pylori), a common bacterium that lives in the stomach. Most people who carry it never develop an ulcer, but in some it weakens the stomach's protective lining. The second is regular use of nonsteroidal anti-inflammatory drugs (NSAIDs), the pain relievers that include aspirin, ibuprofen and naproxen. The risk rises with long-term use, higher doses, taking more than one NSAID, or taking an NSAID together with H. pylori infection or with medicines such as corticosteroids or blood thinners. Older age, smoking and a previous ulcer also make an ulcer more likely. Stress and spicy food do not cause ulcers, although they can make symptoms feel worse. Less often, an ulcer comes from another illness, such as Crohn's disease, a rare acid-producing tumor or stomach cancer, which is part of why finding the cause matters.

How It's Diagnosed

A doctor starts with your symptoms, your medical history and every medicine you take, including over-the-counter pain relievers. Because a stomach ulcer can't be confirmed from symptoms alone, the key test is an upper endoscopy: a doctor passes a thin, flexible tube with a camera through the mouth to look directly at the stomach lining. During endoscopy, the doctor typically takes small tissue samples (biopsies). These can show H. pylori, and they matter specifically for stomach ulcers because a stomach cancer can occasionally look like an ordinary ulcer. Separately, H. pylori can be checked with a breath test, a stool test or a blood test. Blood tests can also look for anemia, a low red blood cell count that can follow slow bleeding from an ulcer.

Treatment Options

Treatment has two goals: heal the ulcer and remove its cause so it does not come back. Healing relies on reducing stomach acid, most often with a proton pump inhibitor (PPI), a drug that sharply cuts acid production, such as omeprazole (Prilosec). Most ulcers heal within about four weeks of acid suppression, though larger stomach ulcers can take around eight. Histamine-2 (H2) blockers such as famotidine (Pepcid), which block a different signal that triggers acid, are a milder acid-reducing option. Antacids can ease pain briefly but do not heal an ulcer. If H. pylori is present, clearing it is what prevents most ulcers from returning. Treatment combines two or more antibiotics with a PPI, often with bismuth as well, usually for 14 days. Taking every dose matters, because stopping early can leave resistant bacteria behind. A follow-up breath or stool test at least four weeks after finishing antibiotics confirms whether the infection is gone; if not, a different combination is used. If an NSAID caused the ulcer, stopping it allows most ulcers to heal and greatly lowers the chance of another one. When someone needs to keep taking an NSAID or aspirin for another condition, the doctor may lower the dose, switch the medicine or add a daily PPI for protection. Quitting smoking helps ulcers heal. Surgery is now rarely needed except for complications or ulcers that will not heal.

What to Expect

Once the cause is treated, most stomach ulcers heal completely. Feeling better is not the same as being healed, so it is worth finishing the full course of medicine and any follow-up testing the doctor recommends. The outlook depends largely on the cause. An ulcer caused by H. pylori rarely returns once the infection is confirmed gone. An NSAID-related ulcer can recur if those medicines are restarted without protection, so it helps to check with a doctor or pharmacist before taking any over-the-counter pain reliever. If an ulcer does not heal as expected or comes back, the doctor may look again for H. pylori or another cause and may recommend a repeat endoscopy with biopsies.

When to Seek Help

See a doctor if upper abdominal pain or indigestion keeps coming back, especially if you take NSAIDs or aspirin regularly. If you are already being treated for an ulcer, contact your care team promptly if symptoms change or get worse. Ulcers can bleed or wear a hole through the stomach wall. Vomiting blood or material that looks like coffee grounds, black or tarry stool, or blood in the stool are signs of bleeding, and sudden, sharp abdominal pain that does not go away can mean a perforation; get emergency care right away for any of these. Call 911 if they come with fainting, a racing pulse, confusion or cold, clammy skin, which can signal dangerous blood loss.

Questions to Ask Your Doctor

  1. 1.What do you think caused my ulcer, and how will we confirm it?
  2. 2.If I have H. pylori, which treatment do you recommend, and when should I be retested to make sure it is gone?
  3. 3.How long will I need acid-reducing medicine, and how will we know the ulcer has healed?
  4. 4.Which pain relievers are safe for me now, and if I need aspirin or an NSAID for another condition, how can I protect my stomach?
  5. 5.Will I need another endoscopy, and what would make you recommend one?

Last reviewed • Oct 2026

Educational content, not medical advice.