What Is a Gastric Ulcer? Causes, Symptoms & Treatment

A gastric ulcer is an open sore that forms in the lining of the stomach when the protective mucus barrier breaks down and stomach acid eats into the tissue beneath it. The two most common triggers are infection with the bacterium Helicobacter pylori and regular use of nonsteroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen or aspirin. Most gastric ulcers cause a gnawing or burning pain in the upper abdomen, but the condition ranges from a mild nuisance to a life-threatening emergency depending on how deep the sore becomes and whether it bleeds or perforates through the stomach wall.

How the Stomach Normally Protects Itself

Your stomach produces hydrochloric acid strong enough to break down food proteins and kill most swallowed bacteria. Under normal conditions, this acid does not harm you because a thick layer of mucus gel coats the stomach lining and acts as a physical barrier. Pepsin, the enzyme that digests protein, is also kept at bay by this mucus layer. New mucus is continuously secreted to replace whatever pepsin dissolves at the surface, so the barrier stays intact.

When that balance tips, trouble starts. Acid can diffuse backward into the lining, disrupting cells from the inside, while pepsin degrades the structural proteins of exposed tissue. Research shows that in people who develop ulcers, the proportion of a particularly aggressive form of pepsin (pepsin 1) in gastric juice rises four- to fivefold, and this form breaks down mucus at up to six times the rate of the pepsin most people produce in greatest quantity.1PubMed. Pepsins and the mucus barrier in peptic ulcer disease Anything that weakens the mucus layer, boosts acid production, or does both at once can set the stage for a gastric ulcer.

The Main Causes

Helicobacter pylori Infection

H. pylori is a spiral-shaped bacterium that burrows into the stomach’s mucus layer, where it can survive for decades. Once attached to the stomach lining, it damages the tiny finger-like projections on cell surfaces and releases a toxin that causes cells to form internal vacuoles and eventually die.2Gastroenterology. How Does Helicobacter pylori Cause Mucosal Damage? Direct Mechanisms The bacterium also produces an enzyme called urease that generates ammonia, which is directly toxic to stomach cells. On top of that, its own protease and lipase enzymes degrade the mucus and phospholipid layer that normally shields the epithelium, allowing acid to reach vulnerable tissue.

The pattern of inflammation H. pylori triggers determines what disease develops. When the infection produces widespread inflammation with atrophic changes to the stomach lining, gastric ulcers (and in some cases gastric cancer) are more likely. When inflammation concentrates in the lower stomach without atrophy, duodenal ulcers are the more common outcome.3PubMed Central. History of Helicobacter pylori, duodenal ulcer, gastric ulcer and gastric cancer The discovery of this bacterium in 1982 by Barry Marshall and Robin Warren, who later won the Nobel Prize for it, transformed ulcer treatment from lifelong acid suppression to a curable infection.4PubMed Central. 23 years of the discovery of Helicobacter pylori: is the debate over?

NSAIDs

Drugs like ibuprofen, naproxen, and aspirin are the second leading cause of gastric ulcers. They work by blocking enzymes called cyclooxygenases, which is how they reduce pain and inflammation. The problem is that those same enzymes also produce prostaglandins that protect the stomach lining by promoting mucus and blood flow. When prostaglandin production drops, the stomach becomes vulnerable. Animal research has shown that the earliest event after this prostaglandin drop is abnormal stomach contractions (gastric hypermotility), which occurs even before the lining becomes more permeable to acid.5PubMed Central. Pathogenesis of NSAID-induced gastric damage: importance of cyclooxygenase inhibition and gastric hypermotility

NSAID-related ulcers are particularly sneaky because these drugs also suppress pain signaling, so you can develop a significant ulcer with fewer warning symptoms. Clinical data link NSAID use to a high rate of ulcer complications, and the drugs appear both to worsen pre-existing ulcer disease and to cause ulcers from scratch.6Annals of Internal Medicine. Nonsteroidal anti-inflammatory drugs and peptic ulcer disease People who need long-term NSAID therapy are often prescribed a stomach-protective medication alongside it for this reason.

Stress-Related Mucosal Disease

The kind of stress that causes stomach ulcers is not everyday job pressure. It is the extreme physiological stress of critical illness: major burns, head injuries, sepsis, or being on a mechanical ventilator. In these settings, blood flow to the stomach lining drops sharply, and the combination of reduced blood supply and ongoing acid exposure can cause erosions or frank ulcers within hours.7PubMed. Stress-related mucosal disease in critically ill patients Patients in intensive care units are routinely given acid-suppressing drugs to prevent this.

Risk Factors That Make Ulcers More Likely

Smoking has one of the clearest links to gastric ulcers outside of H. pylori and NSAIDs. Smokers develop ulcers more often, heal more slowly even with medication, and relapse at higher rates than nonsmokers.8PubMed. Effects of nicotine, alcohol and caffeine on the incidence, healing and recurrence rate of peptic ulcer Smoking also increases the reflux of bile salts from the small intestine back into the stomach, which further damages the lining and raises the chance of gastric ulcers in particular.9PubMed. Smoking and the pathogenesis of gastroduodenal ulcer–recent mechanistic update What makes it worse is that smoking amplifies the damage from other ulcer triggers. If you smoke and also have H. pylori, take NSAIDs, or drink heavily, your risk multiplies.

Alcohol, on its own at moderate levels, probably does not cause ulcers. But chronic heavy drinking damages the mucosal barrier and changes stomach tissue in ways that make it more vulnerable. Combining alcohol with smoking raises the risk considerably more than either habit alone.10PubMed. Alcohol drinking and cigarette smoking: a “partner” for gastric ulceration Caffeine, despite its reputation, does not appear to increase ulcer rates at normal intake levels.

A much rarer cause worth knowing about is Zollinger-Ellison syndrome, a condition in which a tumor (usually in the pancreas or duodenum) secretes massive amounts of the hormone gastrin, driving stomach acid production to levels far above normal. People with this syndrome tend to develop recurrent, hard-to-treat ulcers along with severe acid reflux and chronic diarrhea.11PubMed Central. Gastrinoma and Zollinger Ellison syndrome: A roadmap for the management between new and old therapies It accounts for a tiny fraction of all ulcers, but doctors consider it when ulcers keep coming back despite standard treatment.

Symptoms and When to Worry

The classic symptom of a gastric ulcer is a burning or gnawing pain in the upper middle abdomen, typically between the breastbone and the navel. This pain often appears one to three hours after eating or on an empty stomach, and eating food or taking an antacid usually brings temporary relief.12Journal Wetenskap Health. Gastric Ulcers; Causes, Symptoms, Treatment, and Prevention Some people describe it as a painful hunger. The pain tends to come and go over days or weeks rather than being constant, which can fool people into thinking the problem has resolved on its own.

Other common symptoms include bloating, nausea, and feeling full after eating only a small amount. Some people lose their appetite and gradually lose weight. Heartburn and acid taste in the mouth overlap with simple acid reflux, which is why many people treat themselves with over-the-counter antacids for months before seeing a doctor.

Certain symptoms demand immediate medical attention because they signal complications. Vomiting blood (which can look bright red or resemble dark coffee grounds), passing black tarry stools, sudden severe abdominal pain that does not let up, or feeling faint and lightheaded are all red flags for bleeding or perforation.

Complications

Most gastric ulcers heal with treatment and never become dangerous. But an ulcer that goes unrecognized or untreated can lead to serious problems.

  • Bleeding: An ulcer that erodes into a blood vessel can cause slow, chronic blood loss leading to iron-deficiency anemia, or sudden massive bleeding that is a medical emergency. Acute upper gastrointestinal bleeding carries a hospital death rate above ten percent, and peptic ulcer is one of the most common causes.13Oxford Academic. Management of haematemesis and melaena Bleeding ulcers are typically treated during endoscopy with injection of dilute adrenaline, heat application, or clips to seal the vessel.
  • Perforation: When an ulcer burns entirely through the stomach wall, stomach contents leak into the abdominal cavity, causing intense pain and peritonitis. Acidic fluid in the abdomen triggers rapid, widespread inflammation that can progress to sepsis and organ failure if not treated surgically.14The Lancet. Perforated peptic ulcer Posterior perforations, where the ulcer erodes toward the back rather than the front of the stomach, can be harder to diagnose because the initial exam findings may be subtle.15Surgery, Gastroenterology and Oncology. Posterior Perforation by Peptic Ulcer. Our 12-Year Experience of 6 Cases
  • Gastric outlet obstruction: Chronic ulcers near the exit of the stomach can cause swelling and scarring that narrows the passage, leading to persistent vomiting and inability to keep food down.

Perforation and refractory bleeding are among the scenarios that may require surgery, though these have become much less common in the era of effective acid-suppressing and anti-H. pylori medications.16PubMed Central. The surgical management of complicated peptic ulcer disease: An EAST video presentation

Diagnosis

If your doctor suspects a gastric ulcer, the most direct way to confirm it is upper endoscopy, in which a thin flexible camera is passed through the mouth into the stomach. The doctor can see the ulcer, measure its size, and take small tissue samples (biopsies) to rule out cancer and test for H. pylori. Visual inspection during endoscopy is reliable, though there is a slight tendency to over-call suspicious-looking areas as malignant, which is why biopsies are taken routinely.17PubMed Central. Gastric cancer detection in gastric ulcer disease

Testing for H. pylori specifically can also be done without endoscopy. The urea breath test, where you swallow a small amount of labeled urea and then breathe into a collection device, has the highest accuracy among non-invasive options. Stool antigen tests are a cheaper alternative with similar performance. Blood antibody tests are less useful because they only show that you have been exposed to the bacterium at some point, not that you have a current infection, and antibodies can persist long after successful treatment.18PubMed Central. Non-invasive tests for the diagnosis of helicobacter pylori: state of the art A Cochrane review confirmed that urea breath tests had the highest diagnostic accuracy for detecting active infection in people who had not recently taken antibiotics or acid-suppressing drugs.19PubMed Central. Non-invasive diagnostic tests for Helicobacter pylori infection

Treatment

Acid Suppression

The cornerstone of gastric ulcer treatment is reducing the amount of acid the stomach makes so the sore can heal. Proton pump inhibitors (PPIs) such as omeprazole, lansoprazole, and pantoprazole are the most effective drugs for this because they shut down the acid-producing pumps in the stomach lining directly. A PPI can keep stomach pH above a level that allows healing for roughly fifteen to twenty-two hours a day, far longer than older alternatives.20PubMed Central. Comparing the Safety and Efficacy of Proton Pump Inhibitors and Histamine-2 Receptor Antagonists in the Management of Patients With Peptic Ulcer Disease: A Systematic Review A meta-analysis of thirty trials found PPIs healed gastric ulcers about a third faster than older acid blockers (H2 receptor antagonists) at two weeks.21PubMed Central. Are proton pump inhibitors the first choice for acute treatment of gastric ulcers? A meta analysis of randomized clinical trials

That said, H2 receptor antagonists like ranitidine and famotidine still have a role. One study comparing the two drug classes in ulcers created during an endoscopic procedure found similar healing rates between them, suggesting the advantage of PPIs may narrow in certain clinical contexts.22Journal of Clinical Biochemistry and Nutrition. Gastric ulcer healing after treatment of endoscopic submucosal dissection in Japanese: comparison of H2 receptor antagonist and proton pump inhibitor administration For most standard gastric ulcers, though, PPIs are the first choice. A typical course lasts four to eight weeks.

Eradicating H. pylori

If testing reveals H. pylori, getting rid of the bacterium is essential. A single antibiotic alone will not do the job. The standard approach combines two or more antibiotics with a PPI (or sometimes a bismuth compound) for ten to fourteen days, which achieves eradication rates of about ninety percent or higher.23Archives of Internal Medicine. Treatment of Helicobacter pylori Infection Eliminating the infection dramatically reduces the chance of the ulcer returning, which is why confirming eradication with a follow-up breath test or stool antigen test matters. Skipping antibiotics and just taking acid-suppressing drugs will heal the sore temporarily, but the ulcer tends to come back once you stop the medication because the underlying infection persists.

When Surgery Is Needed

Surgery for gastric ulcers has become uncommon thanks to PPIs and H. pylori treatment, but it has not disappeared. Free perforation that leaks stomach contents into the abdomen almost always requires an operation to close the hole and wash out the abdominal cavity. Massive bleeding that endoscopy cannot control also leads to the operating room, as does gastric outlet obstruction that does not respond to medical therapy.16PubMed Central. The surgical management of complicated peptic ulcer disease: An EAST video presentation Giant ulcers, loosely defined as those greater than about two centimeters, can be technically challenging to repair and sometimes require removal of a portion of the stomach.

Preventing Ulcers and Reducing Recurrence

Prevention depends largely on which risk factor applies to you. If you have H. pylori, eradicating it is the single most effective step. If you take NSAIDs regularly, discussing the lowest effective dose with your doctor, switching to a less damaging alternative, or adding a PPI for stomach protection can reduce your risk substantially. Misoprostol, a synthetic prostaglandin, was shown to prevent NSAID-related gastric ulcers even though older acid blockers did not.6Annals of Internal Medicine. Nonsteroidal anti-inflammatory drugs and peptic ulcer disease

Quitting smoking improves healing rates and reduces ulcer recurrence. This benefit extends beyond the ulcer itself, since smoking also potentiates the damage from alcohol, NSAIDs, and H. pylori simultaneously.9PubMed. Smoking and the pathogenesis of gastroduodenal ulcer–recent mechanistic update Cutting heavy alcohol intake helps preserve the mucosal barrier, though moderate drinking alone does not appear to be a major risk.

Probiotics and Gastric Ulcer Healing

An emerging area of research is whether probiotic bacteria can speed ulcer healing or protect the stomach lining. The rationale is that certain bacterial strains appear to strengthen the mucus barrier, promote anti-inflammatory signaling, and increase the production of growth factors that help tissue repair.24PubMed Central. Potential role of probiotics in the management of gastric ulcer In animal experiments, a well-studied probiotic mixture called VSL#3 significantly boosted the expression of vascular endothelial growth factor (a key driver of new blood vessel formation) in ulcerated tissue, accelerating the healing process.25PLOS ONE. The Probiotic Mixture VSL#3 Accelerates Gastric Ulcer Healing by Stimulating Vascular Endothelial Growth Factor

Reviews of the available evidence describe probiotics as promising for gastric ulcer management, with potential to inhibit harmful bacteria, reduce inflammation, and support mucosal repair.26Trends in Food Science & Technology. Potential of probiotics for use as functional foods in patients with non-infectious gastric ulcer That said, most of this work is either preclinical or small-scale. Probiotics are not a replacement for PPIs or antibiotic therapy; they are being studied as a potential add-on. If you are interested in trying them alongside standard treatment, it is reasonable to discuss it with your doctor, but treating a confirmed ulcer with yogurt alone is not a strategy the evidence supports.

Gastric Ulcers in Children

Adults make up the vast majority of gastric ulcer patients, but the condition does occur in children, including rare cases of perforation. A case report describes a twelve-year-old girl who presented with sudden abdominal pain and signs of peritonitis; surgical exploration revealed a perforated ulcer on the front wall of her stomach’s antrum.27PubMed Central. Perforated gastric ulcer: An unusual cause of peritonitis in children Because gastric ulcers are so uncommon in children, the diagnosis is easily overlooked. Pediatric cases may be associated with NSAID use (children are sometimes given ibuprofen frequently for fevers and pain), H. pylori infection, or critical illness. The principles of treatment are the same as in adults: acid suppression, H. pylori eradication if positive, and surgery for complications like perforation.