Most ulcers do not need surgery. The vast majority of peptic ulcers heal with a combination of acid-reducing medication and, when a bacterial infection is present, antibiotics. Surgery becomes necessary only when an ulcer causes a serious complication: a hole through the stomach or intestinal wall (perforation), uncontrollable bleeding, or a blockage that prevents food from passing through. These emergencies are uncommon, and the need for elective ulcer surgery has dropped dramatically over the past few decades.
Why Most Ulcers Heal Without Surgery
Peptic ulcers form when the protective lining of the stomach or upper small intestine breaks down, usually because of a bacterial infection (H. pylori) or long-term use of anti-inflammatory painkillers like ibuprofen or aspirin. Once the cause is identified, treatment targets it directly.
For H. pylori infections, the standard approach is a course of two antibiotics taken alongside an acid-suppressing medication called a proton pump inhibitor (PPI). This combination clears the infection in roughly 80 to 85 percent of cases. When the first round doesn’t work, a different antibiotic combination typically finishes the job. Once the bacteria are gone, the ulcer heals on its own as the stomach lining repairs itself, usually within four to eight weeks.
For ulcers caused by painkillers, stopping or switching the medication and taking an acid-reducing drug is often enough. This medical-first approach is why ulcer surgery, once one of the most common abdominal operations, is now relatively rare.
When Surgery Becomes Necessary
Surgery is reserved for complications that medication can’t fix. In one surgical case series, about 77 percent of operations were for perforation, 22 percent for uncontrolled bleeding, and roughly 1 percent for gastric outlet obstruction. Each scenario is distinct.
Perforation
A perforated ulcer means the ulcer has eaten completely through the wall of the stomach or duodenum, allowing digestive acid and partially digested food to leak into the abdominal cavity. This triggers a dangerous infection of the abdominal lining called peritonitis. The classic signs are sudden, severe abdominal pain, a rigid abdomen, and a rapid heart rate. Surgery is strongly recommended when imaging shows free air in the abdomen or there’s clinical evidence of peritonitis. For patients over 70 or those who waited hours before seeking help, surgeons aim to operate as quickly as possible because delays sharply increase the risk of death.
Uncontrolled Bleeding
Most bleeding ulcers can be treated during an endoscopy, where a doctor uses a flexible camera to find the ulcer and stop the bleed with clips, heat, or injections. Surgery enters the picture when endoscopic treatment fails, when bleeding restarts after initial treatment, or when the blood loss is so severe that the patient becomes unstable. Bleeding ulcers carry a 30-day mortality rate near 10 percent overall, climbing to about 17 percent in patients over 80.
Gastric Outlet Obstruction
Repeated ulceration and scarring near the outlet of the stomach can narrow the passage enough that food can’t move into the small intestine. Symptoms include vomiting undigested food, feeling full after eating very little, and progressive weight loss. Doctors often try to open the narrowed area with a balloon during an endoscopy first, but surgery may be needed if that fails or the scarring is too severe.
What Ulcer Surgery Involves
The specific operation depends on the problem being fixed. For a perforated duodenal ulcer, the most common procedure is a Graham patch repair. The surgeon places a piece of fatty tissue from inside the abdomen (called omentum) over the hole and sutures it in place, essentially plugging the leak. This can often be done laparoscopically through small incisions.
In cases where the ulcer keeps coming back despite aggressive medical therapy, surgeons may cut branches of the nerve that tells the stomach to produce acid. This procedure, called a vagotomy, comes in different forms. The most targeted version selectively cuts only the nerve fibers going to the acid-producing part of the stomach, leaving the rest of the stomach’s nerve supply intact. This reduces acid production while preserving more normal stomach function. Less selective versions cut more nerve fibers and require an additional procedure to help the stomach empty properly, since the nerve signals that control the stomach’s outlet valve are also interrupted.
For bleeding ulcers that don’t respond to endoscopic treatment, a surgeon may open the area, stitch the bleeding vessel, and sometimes remove part of the stomach if the ulcer is large or cancerous.
Recovery and Side Effects
Recovery after ulcer surgery varies widely depending on whether it was an emergency or a planned procedure, and how much of the stomach was affected. A laparoscopic patch repair for a small perforation in an otherwise healthy person may mean a hospital stay of several days and a return to normal activity within a few weeks. Emergency surgery for a large perforation with peritonitis can mean a much longer hospital stay and a slower recovery.
The most well-known long-term side effect of ulcer surgery is dumping syndrome, which happens when food moves too quickly from the stomach into the small intestine. It can cause nausea, cramping, diarrhea, dizziness, and sweating after meals. Severe cases lead to rapid weight loss and nutritional deficiencies. The good news is that dumping syndrome is not usually permanent. Milder cases typically resolve within three months, while more severe cases may take 12 to 18 months to subside. Eating smaller, more frequent meals and avoiding sugary foods helps manage symptoms in the meantime.
The Risks Are Real, Especially With Age
Ulcer surgery, particularly emergency surgery, carries significant risk. The overall 30-day mortality rate for perforated ulcers ranges from 5 to 25 percent across different studies. Age is the strongest predictor of outcome. In patients younger than 65, the 30-day mortality after perforation is about 9 percent. Between ages 65 and 79, it rises to roughly 25 percent. For patients 80 and older, it approaches 45 percent.
These numbers reflect the fact that most people who need emergency ulcer surgery today are older and often have other serious health conditions. They also underscore why preventing complications through proper medical treatment is so important. Taking prescribed medications consistently, completing the full course of antibiotics for H. pylori, and avoiding unnecessary anti-inflammatory painkillers are the most effective ways to keep an ulcer from ever reaching the point where surgery is on the table.

