A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Click a letter to see a list of conditions beginning with that letter.
Click 'Topic Index' to return to the index for the current topic.
Click 'Library Index' to return to the listing of all topics.

Peptic Ulcers

What is a peptic ulcer?

A peptic ulcer is a sore on the lining of your stomach or the first part of your small intestine (duodenum). Peptic ulcers are fairly common. There are two types:

  • A gastric ulcer is an ulcer in the stomach.

  • A duodenal ulcer is an ulcer in the duodenum.

Rarely, ulcers can happen farther down your intestine.

What causes peptic ulcers?

In the past, experts thought lifestyle factors, such as stress and diet, caused ulcers. Today, we know that stomach acids and other digestive juices help create ulcers. Peptic ulcers form when acid erodes the lining of the digestive tract.

The most common causes of peptic ulcers include:

  • H. pylori bacteria (Helicobacter pylori). Most ulcers are caused by an infection from a bacteria or germ called H. pylori. These bacteria hurt the mucus that protects the lining of your stomach and small intestine. Stomach acid then gets through to the lining.

  • Long-term use of NSAIDs (nonsteroidal anti-inflammatory medicines). These are over-the-counter pain and fever medicines such as aspirin, ibuprofen, and naproxen. Long-term use can damage the mucus that protects the lining of your stomach.

What are the symptoms of peptic ulcers?

The most common ulcer symptom is a dull or burning pain in your belly between your breastbone and your belly button. This pain often occurs between meals or may wake you up at night. It can last from a few minutes to a few hours.

Less common ulcer symptoms may include:

  • Feeling full after eating a small amount of food.

  • Burping.

  • Nausea.

  • Vomiting.

  • Not feeling hungry.

  • Losing weight without trying.

  • Bloody or black stool.

  • Vomiting blood.

Each person’s symptoms may vary. In some cases, ulcers don’t cause any symptoms.

Peptic ulcer symptoms may look like other health problems. Always see your doctor to be sure.

How are peptic ulcers diagnosed?

Your doctor will look at your past health and give you a physical exam. You may also have some tests.

Imaging tests used to diagnose ulcers include:

  • Upper GI (gastrointestinal) series or barium swallow. This test looks at your food pipe (esophagus), stomach, and the first part of the small intestine (duodenum). You will swallow a metallic fluid called barium. Barium coats the organs so that they can be seen on an X-ray. Live X-ray images (fluoroscopy) are viewed on a screen as the barium moves through your upper GI tract.

  • Upper endoscopy or EGD (esophagogastroduodenoscopy). This test looks at the lining of your upper digestive tract. It uses a thin lighted tube that has a camera at one end. The tube is put into your mouth and throat. Then it goes into your esophagus, stomach, and duodenum. A small tissue sample (biopsy) can be taken. This can be checked for H. pylori.

You may also have lab tests to see if you have an H. pylori infection. These may include:

  • Blood tests. These check for infection-fighting cells (antibodies) that mean you have H. pylori. Blood tests can also check for a low blood count if you've had bleeding from the ulcer.

  • Stool antigen test. A small sample of your stool is collected and sent to a lab. In 2 or 3 days, the test will show if you have H. pylori.

  • Urea breath test. This checks to see how much carbon dioxide is in your breath when you exhale. If the test shows higher than normal amounts of carbon dioxide, you have H. pylori.

How are peptic ulcers treated?

Treatment will depend on the type of ulcer you have. Treatment can include making lifestyle changes and taking medicines. In some cases, you may need surgery. Your doctor will create a care plan for you based on what is causing your ulcer.

Changes you can make may include:

  • Not eating certain foods. Don't eat any foods that make your symptoms worse. Avoid eating just before bedtime.

  • Quitting smoking. Smoking can keep your ulcer from healing. It's also linked to ulcers coming back after treatment.

  • Limiting alcohol and caffeine. They can make your symptoms worse.

  • Not using NSAIDs. These include aspirin and ibuprofen. Talk to your doctor about what you should take instead.

  • Stress management. Try to reduce your stress level and learn ways to better manage stress.

Medicines to treat ulcers may include:

  • Antibiotics. These medicines kill the H. pylori bacteria. Often, a mix of antibiotics and other medicines is used to cure the ulcer and get rid of the infection. It may take 8 to 12 weeks of medicine to relieve symptoms and heal the ulcer. Take all of the antibiotics you’re prescribed. Not taking the entire course can keep the bacteria in your system.

  • H2-blockers (histamine receptor blockers). These reduce how much acid your stomach makes by blocking a hormone called histamine. Histamine helps to make acid.

  • Proton pump inhibitors or PPIs. These lower stomach acid levels and protect the lining of your stomach and duodenum.

  • Mucosal protective medicines. These medicines protect the stomach's mucus lining from acid damage so that it can heal.

  • Antacids. These quickly weaken or neutralize stomach acid to ease your symptoms.

In most cases, medicines can heal ulcers quickly. After the H. pylori bacteria is gone, most ulcers don't come back. You may need to take medicine long term if your ulcer is from another medicine that you must continue to take. The ulcer medicine will help protect your stomach from another ulcer.

In rare cases, you may need surgery if medicines don’t help. You may also need surgery if your ulcer causes other medical problems.

What are possible complications of peptic ulcers?

Ulcers can cause serious problems if you don’t get treatment.

The most common problems include:

  • Bleeding. As an ulcer wears away the muscles of the stomach or duodenal wall, blood vessels may become damaged. This causes bleeding.

  • Hole (perforation). Sometimes, an ulcer makes a hole in the wall of your stomach or duodenum. This can lead to a serious infection that can spread throughout your abdomen called peritonitis.

  • Narrowing and blockage (obstruction). Ulcers that form where the duodenum joins the stomach can cause swelling and scarring. This can narrow or even block the opening to the duodenum. Food can’t leave your stomach and go into your small intestine. This causes vomiting. You can’t eat properly.

When to get medical help

Get emergency medical care right away if you have:

  • Bloody vomit or vomit with dark material that looks like coffee grounds.

  • Extreme weakness or dizziness.

  • Blood in your stools (your stools may look black or like tar).

  • Nausea or vomiting that doesn’t get better, or that gets worse.

  • A sudden, severe pain that may spread to your back.

See your doctor if you are losing weight without trying.

Key points about peptic ulcers

  • These ulcers are sores on the lining of your stomach or the first part of your small intestine (duodenum).

  • Stomach acids and other digestive juices help to make ulcers by burning the linings of these organs.

  • Most ulcers are caused by infection from a bacteria or germ called H. pylori ( Helicobacter pylori) or from long-term use of pain medicines called nonsteroidal anti-inflammatory drugs (NSAIDs).

  • The most common symptom is a dull or burning pain in the belly between the breastbone and the bellybutton.

  • Ulcers may be treated with a combination of lifestyle changes and medicines. In rare cases, surgery is needed.

Next steps

Tips to help you get the most from a visit to your doctor:

  • Know the reason for your visit and what you want to happen.

  • Before your visit, write down questions you want answered.

  • Bring someone with you to help you ask questions and remember what your doctor tells you.

  • At the visit, write down the name of a new diagnosis and any new medicines, treatments, or tests. Also, write down any new instructions your doctor gives you.

  • Know why a new medicine or treatment is prescribed, and how it will help you. Also, know what the side effects are.

  • Ask if your condition can be treated in other ways.

  • Know why a test or procedure is recommended and what the results could mean.

  • Know what to expect if you do not take the medicine or have the test or procedure.

  • If you have a follow-up appointment, write down the date, time, and purpose for that visit.

  • Know how you can contact your doctor if you have questions.

Online Medical Reviewer: Daphne Pierce-Smith RN MSN
Online Medical Reviewer: Lalitha Kadali
Online Medical Reviewer: Melinda Murray Ratini DO
Date Last Reviewed: 6/1/2025
© 2000-2025 The StayWell Company, LLC. All rights reserved. This information is not intended as a substitute for professional medical care. Always follow your healthcare professional's instructions.