What Are Peptic Ulcers? Causes, Symptoms & Treatment

Peptic ulcers are open sores that develop in the lining of your stomach or the duodenum, the first section of your small intestine. Globally, about 33 million people are affected. Despite their reputation as a stress-related problem, the vast majority of peptic ulcers are caused by a bacterial infection or regular use of common pain relievers.

Types of Peptic Ulcers

The term “peptic” refers to the digestive acids involved, but where the sore forms determines the specific type. A gastric ulcer sits in the stomach lining itself, while a duodenal ulcer forms just past the stomach, in the upper part of the small intestine. Duodenal ulcers are more common overall. Both types develop when the acids your body uses to break down food begin to eat through the protective mucus layer that normally shields these tissues.

What Causes Them

Two culprits account for the overwhelming majority of peptic ulcers: a bacterium called H. pylori and a class of pain medications known as NSAIDs (ibuprofen, aspirin, naproxen).

H. pylori Infection

Helicobacter pylori is a spiral-shaped bacterium that colonizes the stomach lining. Once established, it uses several strategies to damage tissue. It injects proteins into the cells of the stomach wall, hijacking normal cell behavior and disrupting the tight junctions that hold the lining together. It also releases a toxin that punches small pores in cell membranes, making them leaky and vulnerable. Over time, the immune system’s inflammatory response to the infection causes additional collateral damage, weakening the protective barrier until acid breaks through and a sore forms.

Most people with H. pylori never develop an ulcer, but the infection is present in the majority of duodenal ulcer cases and a large share of gastric ulcers.

NSAID Use

NSAIDs work by blocking enzymes called COX-1 and COX-2, which produce compounds involved in pain and inflammation. The problem is that COX-1 also helps maintain the stomach’s defenses. It stimulates mucus and bicarbonate production, promotes blood flow to the lining, and supports cell turnover. When you take NSAIDs regularly, those protective mechanisms weaken. Acid secretion increases while the barrier holding it back thins, setting the stage for erosions and eventually ulcers.

How Peptic Ulcers Feel

The hallmark symptom is a burning or gnawing pain in the upper abdomen, roughly between your navel and breastbone. But the pattern of that pain differs depending on where the ulcer is.

Duodenal ulcers follow a recognizable rhythm. You typically wake up pain-free, then the ache appears by mid-morning. Eating or drinking milk buffers the acid and brings relief, but the pain returns two to three hours later as the stomach empties again. Nighttime pain that wakes you from sleep is also characteristic.

Gastric ulcers are less predictable. Eating sometimes helps, but it can also trigger or worsen the pain. There’s no consistent before-and-after-meals pattern the way there is with duodenal ulcers.

Other common symptoms include bloating, nausea, loss of appetite, and feeling full quickly. Some ulcers, particularly those caused by NSAIDs, produce no noticeable symptoms at all until a complication develops.

How Ulcers Are Diagnosed

If your doctor suspects a peptic ulcer, the first step is usually checking for an H. pylori infection. Several non-invasive tests can do this without looking inside your stomach:

  • Urea breath test: You swallow a small amount of specially labeled urea. If H. pylori is present, the bacteria break the urea down into carbon dioxide that shows up in your breath a few minutes later.
  • Stool antigen test: A lab checks a stool sample for proteins from the bacterium.
  • Blood test: This can detect antibodies to H. pylori, though it’s less precise because antibodies can linger long after an infection has cleared.

To confirm the ulcer itself, doctors often use an upper endoscopy. A thin, flexible tube with a camera is passed through your mouth and into your stomach, giving a direct view of the lining. During the procedure, small tissue samples can be taken to rule out other conditions and test for H. pylori at the same time.

Treatment and Healing

Treatment depends on the cause, but nearly every peptic ulcer regimen includes an acid-suppressing medication. Proton pump inhibitors (PPIs) reduce the amount of acid your stomach produces, giving the damaged tissue a chance to heal. Most ulcers close within four to eight weeks once acid levels drop.

If H. pylori is the cause, killing the infection is essential to prevent the ulcer from coming back. Current guidelines from the American College of Gastroenterology recommend a 14-day course of bismuth-based quadruple therapy as the first-line treatment. This involves a PPI plus three other medications taken multiple times per day. The older approach of using clarithromycin-based triple therapy is no longer recommended unless testing has confirmed the bacteria are sensitive to that antibiotic, because resistance rates have climbed too high in many regions.

For NSAID-caused ulcers, the most important step is stopping the offending medication if possible. A PPI alone is often enough to heal the sore once the drug that caused it is removed. If you need to continue taking NSAIDs for another condition, your doctor may keep you on a PPI long-term to protect the stomach lining.

Complications to Watch For

Most peptic ulcers heal without incident, but the risk of a serious complication runs about 2 to 3 percent per year for people with chronic ulcer disease. Bleeding is by far the most common, accounting for roughly 73 percent of ulcer complications. Perforation, where the ulcer erodes completely through the stomach or intestinal wall, makes up about 9 percent. Obstruction from swelling or scarring that blocks food from leaving the stomach accounts for another 3 percent.

Signs that an ulcer may be bleeding include vomiting material that looks like coffee grounds, black or tarry stools, lightheadedness, and sudden weakness. A perforation typically causes sudden, severe abdominal pain that doesn’t let up. Both are medical emergencies.

Alcohol, Diet, and Lifestyle Factors

Spicy food gets blamed for ulcers far more than the evidence supports. While certain foods may aggravate symptoms in some people, they don’t cause ulcers. The same is largely true for moderate alcohol consumption. There’s little evidence that alcohol directly causes peptic ulcers, but heavy drinking is a genuine risk factor. Excessive alcohol irritates and weakens the stomach lining, promoting the kind of chronic inflammation (gastritis) that can progress to ulcers over time. Drinking five or more servings per day has been linked to a higher risk of bleeding from existing ulcers.

Smoking is a clearer risk. It slows ulcer healing, increases the likelihood of recurrence, and raises the chance of complications. If you’re being treated for a peptic ulcer, quitting smoking measurably improves how well the treatment works.

From a practical standpoint, paying attention to which foods worsen your symptoms is more useful than following a generic “ulcer diet.” Coffee, acidic foods, and alcohol bother some people but not others. Eating smaller, more frequent meals can help manage symptoms by preventing the stomach from sitting empty for long stretches, especially with duodenal ulcers where the pain-relief-pain cycle is tied to meal timing.