For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Peptic ulcer

A peptic ulcer is an open sore in the lining of the stomach or the first part of the small intestine, most often caused by H. pylori bacteria or NSAID pain relievers.

Overview

A peptic ulcer is an open sore that forms in the lining of your stomach or in the duodenum, the first part of your small intestine just past the stomach. Doctors call this peptic ulcer disease. An ulcer in the stomach is called a gastric ulcer, and one in the duodenum is called a duodenal ulcer. Duodenal ulcers are more common.

Your stomach makes strong acid and a digestive enzyme called pepsin to break down food. Normally a layer of mucus and other natural defences protect the lining from this acid. An ulcer forms when those defences are weakened and acid wears away a patch of the lining.

Peptic ulcers are common, and the good news is that most heal well with treatment. Finding and treating the cause is the key to stopping them from coming back.

Symptoms

Some people with an ulcer have no symptoms at all, especially older adults and people taking pain relievers. When symptoms do happen, they can include:

  • A burning or gnawing pain in the upper middle part of your belly, between your breastbone and belly button
  • Pain that comes and goes over days or weeks
  • Pain that may ease for a while after eating or taking an antacid (more typical of duodenal ulcers), or pain that gets worse after eating (more typical of stomach ulcers)
  • Pain that wakes you at night
  • Feeling full quickly, bloating or burping
  • Nausea (feeling sick to your stomach)
  • Poor appetite or losing weight without trying

Signs of a serious problem

Sometimes an ulcer bleeds or makes a hole in the wall of the stomach or intestine. Signs include vomiting blood or material that looks like coffee grounds, black, sticky, tar-like stools, sudden severe belly pain, or feeling faint. These need emergency care.

Causes

Stress and spicy food were once blamed for ulcers. We now know they do not cause ulcers, although they may make symptoms feel worse. The two main causes are:

H. pylori infection

Helicobacter pylori (H. pylori) is a type of bacteria that can live in the lining of the stomach for many years. Many people pick it up in childhood. In some people it causes long-lasting inflammation that damages the protective lining and leads to an ulcer.

NSAID pain relievers

Nonsteroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen, naproxen, diclofenac and aspirin, even low-dose aspirin taken for the heart, reduce substances in the body that help protect the stomach lining. Taking them often, at higher amounts, or for a long time raises the chance of an ulcer.

Less common causes

  • Zollinger-Ellison syndrome, a rare condition in which tumours cause the stomach to make far too much acid
  • Severe illness, such as major burns, head injury or being in intensive care (sometimes called stress ulcers)
  • Stomach cancer, which can look like an ulcer
  • Ulcers at the join after weight-loss or stomach surgery (marginal ulcers)

Risk factors

You may be more likely to get a peptic ulcer or a complication if you:

  • Have an H. pylori infection
  • Take NSAIDs or aspirin regularly
  • Are over 65
  • Have had an ulcer before
  • Take NSAIDs together with blood thinners (such as warfarin or apixaban), corticosteroids (such as prednisone), or certain antidepressants called SSRIs
  • Smoke
  • Drink a lot of alcohol
  • Have serious heart, kidney, liver or lung disease

Diagnosis

Your doctor will ask about your symptoms and the medicines you take, including ones you buy without a prescription. They will also examine your belly. Tests may include:

  • H. pylori tests: a breath test (you drink a liquid and breathe into a bag), a stool test, or tests on small tissue samples taken during endoscopy. Some medicines, including acid-reducing medicines, antibiotics and bismuth, can make breath and stool tests less accurate, so you may be asked to stop them for a short time beforehand. Only do this if your clinician tells you to.
  • Upper endoscopy (gastroscopy): a doctor passes a thin, flexible tube with a camera through your mouth into your stomach and duodenum while you are sedated. This shows the ulcer directly, and small tissue samples (biopsies) can be taken to check for H. pylori and to rule out cancer.
  • Blood tests: to look for anemia (a low red blood cell count), which can happen if an ulcer has been slowly bleeding.

Endoscopy is usually advised if you are older, have warning signs such as weight loss, trouble swallowing, vomiting or bleeding, or if symptoms do not settle with treatment.

Treatment

Treatment aims to heal the ulcer, relieve pain, treat the cause and prevent it coming back.

Medicines that lower stomach acid

Proton pump inhibitors (PPIs), such as omeprazole, esomeprazole, lansoprazole, pantoprazole and rabeprazole, strongly reduce the acid your stomach makes. This gives the ulcer time to heal, usually over 4 to 8 weeks. H2 blockers such as famotidine also reduce acid but less strongly, and are used less often for ulcers today.

Treating H. pylori

If you have H. pylori, you will take a combination of medicines, usually for 14 days. This typically includes a PPI with two or three antibiotics, such as amoxicillin, clarithromycin, metronidazole or tetracycline, and sometimes bismuth subsalicylate. Your doctor will choose a combination based on local resistance patterns and any antibiotics you have taken before. It is very important to take every dose, even if you feel better, because stopping early can let the bacteria survive and become resistant.

About 4 weeks after finishing treatment, you should have a test to make sure the infection is gone.

If NSAIDs are the cause

Your clinician may advise stopping the NSAID or switching to another pain reliever, such as acetaminophen. If you need to keep taking an NSAID or aspirin for another health reason, they may add a PPI to protect your stomach. Do not stop low-dose aspirin or other prescribed medicines on your own; talk to your clinician first.

Treating complications

A bleeding ulcer is usually treated during an endoscopy, where the doctor can seal the bleeding spot, along with strong acid-lowering medicine given through a vein. A perforation (hole) or blockage may need surgery. Surgery for ulcers is now much less common than in the past.

Living with a peptic ulcer

While your ulcer heals, these steps can help:

  • Take your medicines exactly as prescribed and finish the full course
  • Check labels on cold, flu and pain products, as many contain NSAIDs or aspirin
  • Use acetaminophen for pain if it is safe for you, and ask your pharmacist if you are unsure
  • Stop smoking, as smoking slows healing and makes ulcers more likely to return
  • Limit alcohol
  • Avoid foods and drinks that seem to make your pain worse; there is no special ulcer diet, so eat a balanced diet that suits you

Tell any doctor, dentist or pharmacist who treats you that you have had an ulcer, so they can choose medicines carefully.

Complications

  • Bleeding: the most common complication. It can be slow, causing tiredness and anemia, or sudden and severe.
  • Perforation: the ulcer goes right through the wall, letting stomach contents leak into the belly. This causes sudden, severe pain and is a surgical emergency.
  • Gastric outlet obstruction: swelling or scarring blocks food from leaving the stomach, causing repeated vomiting, fullness and weight loss.
  • Stomach cancer: long-term H. pylori infection raises the risk of stomach cancer, which is one reason treating it matters.

Outlook

Most peptic ulcers heal within a few weeks to a couple of months with treatment. Once H. pylori is cleared and NSAIDs are avoided or used with stomach protection, ulcers are much less likely to come back. Complications such as bleeding and perforation are serious, especially in older people, but they can usually be treated successfully when care is quick.

Prevention

  • Use NSAIDs only when needed, at the lowest effective amount and for the shortest time
  • Ask your clinician whether you need stomach protection if you must take NSAIDs or aspirin long term, especially if you are older or have had an ulcer
  • Get tested and treated for H. pylori if your doctor recommends it
  • Do not smoke, and keep alcohol within recommended limits
  • Wash your hands well and drink safe water, which may lower the chance of picking up H. pylori

In Canada

In Canada, the urea breath test is available in many provinces, though access and coverage vary by province. Bismuth subsalicylate and several acid-reducing medicines can be bought without a prescription; ask your pharmacist before using them alongside other medicines. Tetracycline for H. pylori therapy can sometimes be hard to find, and your pharmacist or doctor can suggest alternatives.

When to get medical help

See your doctor if you have:

  • Burning or gnawing upper belly pain that keeps coming back or lasts more than a few days
  • Indigestion along with weight loss, trouble swallowing, poor appetite or repeated vomiting
  • Unusual tiredness, shortness of breath or pale skin, which can be signs of anemia
  • Symptoms that return after ulcer treatment

Call emergency services or go to the nearest emergency department right away if you:

  • Vomit blood or material that looks like coffee grounds
  • Have black, tar-like or bloody stools
  • Have sudden, severe belly pain, especially if your belly feels hard
  • Feel faint, dizzy, confused or have a fast heartbeat

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Peptic Ulcer. meshb.nlm.nih.gov
  2. NIDDK: Peptic Ulcers (Stomach and Duodenal Ulcers). niddk.nih.gov/health-information/digestive-diseases/peptic-ulcers-stomach-ulcers
  3. MedlinePlus: Peptic Ulcer. medlineplus.gov/pepticulcer.html
  4. NHS: Stomach ulcer. nhs.uk/conditions/stomach-ulcer/
  5. NICE: Gastro-oesophageal reflux disease and dyspepsia in adults: investigation and management (CG184). nice.org.uk/guidance/cg184