How to Heal Stomach Ulcers: Treatments That Work

Most stomach ulcers heal completely within two to three months with the right treatment, and the approach depends almost entirely on what caused the ulcer in the first place. The two most common causes are a bacterial infection called H. pylori and regular use of pain medications like ibuprofen or aspirin. Identifying which one is driving your ulcer is the single most important step, because the treatments are different.

What’s Actually Happening in Your Stomach

Your stomach lining constantly produces a thick layer of mucus to protect itself from its own acid. An ulcer forms when something disrupts that protective barrier, allowing acid to eat into the tissue underneath. The result is an open sore, usually in the stomach or the first section of the small intestine. That sore won’t heal on its own as long as the underlying cause persists, which is why treatment targets the root problem rather than just the symptoms.

Treating an H. Pylori Ulcer

About two-thirds of stomach ulcers involve H. pylori, a bacterium that burrows into the stomach lining and triggers chronic inflammation. Killing the bacteria is essential. Without eradication, ulcers tend to come back even after they initially heal.

The standard treatment is a 14-day course of multiple antibiotics combined with an acid-suppressing medication. The American College of Gastroenterology recommends a four-drug regimen as the preferred first-line option when your doctor doesn’t know which antibiotics the bacteria will respond to. This combination includes bismuth (the active ingredient in Pepto-Bismol), two antibiotics, and a proton pump inhibitor (PPI) to reduce acid while the tissue repairs itself.

The antibiotic phase is the hardest part for most people. Side effects like nausea, metallic taste, and diarrhea are common but temporary. Finishing the full 14 days matters. Stopping early increases the chance the bacteria survive and develop resistance, making a second round of treatment more difficult.

After completing antibiotics, your doctor will typically wait at least four weeks before testing to confirm the bacteria are gone. For gastric ulcers specifically, a follow-up endoscopy is considered mandatory to verify healing and rule out anything more serious. The exact timing isn’t standardized, but it generally happens after the acid-suppressing medication course is complete.

Treating an NSAID-Caused Ulcer

If your ulcer developed from regular use of nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen, naproxen, or aspirin, the first priority is stopping the medication if possible. These drugs interfere with the chemical signals your stomach lining uses to maintain its protective mucus layer, and healing can’t progress while that disruption continues.

A PPI is the cornerstone of treatment here. These medications dramatically reduce the amount of acid your stomach produces, giving the damaged tissue a chance to repair. For people who can’t stop taking NSAIDs due to chronic pain or heart conditions requiring low-dose aspirin, staying on a PPI long-term is recommended to prevent new ulcers and rebleeding. Even low-dose PPIs have a meaningful preventive effect.

When NSAIDs are unavoidable but you’re at high risk for ulcers, your doctor may switch you to a type of anti-inflammatory that’s gentler on the stomach lining (a selective COX-2 inhibitor). Alternatively, pairing a standard NSAID with a daily PPI offers similar protection. A medication called misoprostol can also help by replacing the protective signals that NSAIDs block, though it frequently causes diarrhea and cramping, so PPIs are generally preferred.

How Acid-Suppressing Medications Compare

Two classes of medication reduce stomach acid: proton pump inhibitors (PPIs) and H2 blockers. PPIs are significantly more effective at healing ulcers. In clinical comparisons, PPIs healed 84% of gastric ulcers after eight weeks compared to 75% with H2 blockers. The gap widens further with stubborn ulcers. For ulcers that hadn’t responded to initial treatment, PPIs healed 96% at eight weeks versus just 57% for H2 blockers.

PPIs work by shutting down the acid-producing pumps in your stomach lining directly, while H2 blockers only reduce one of the signals that trigger acid release. That’s why PPIs create a more complete reduction in acid levels and faster healing. Most people take a PPI for four to eight weeks for a duodenal ulcer and up to eight to twelve weeks for a gastric ulcer, which heals more slowly.

Another option your doctor may use is sucralfate, which works differently from both. Rather than reducing acid, it forms a physical coating over the ulcer itself, acting like a bandage that shields the raw tissue from stomach acid while it heals.

Diet and Ulcer Healing

No specific diet can cure an ulcer, but what you eat does influence how quickly your stomach lining repairs itself. A high-fiber diet, particularly fiber from fruits and vegetables, is associated with lower ulcer risk and may support healing. Soluble fiber (found in oats, beans, apples, and citrus) appears especially helpful. Vitamin A, abundant in sweet potatoes, carrots, spinach, and liver, is also linked to reduced ulcer risk.

The old advice to avoid coffee, alcohol, and spicy food is less clear-cut than most people assume. A large prospective study following nearly 48,000 men over six years found that high intake of caffeine and alcohol was not associated with a substantial increase in duodenal ulcer risk. That said, if specific foods make your symptoms worse, avoiding them while you’re actively healing is a reasonable choice. Your own experience is a better guide than a blanket restriction list. The foods that genuinely slow healing are the ones that increase acid production or irritate already-damaged tissue, and that varies from person to person.

Lifestyle Changes That Speed Recovery

Quitting smoking is one of the most impactful things you can do. Smokers develop peptic ulcers more frequently and have a harder time healing them. Ulcers are more likely to heal once you stop smoking, according to Johns Hopkins Medicine. Smoking reduces blood flow to the stomach lining and interferes with the production of protective mucus, essentially working against your medication.

Stress doesn’t directly cause ulcers, but it increases acid production and can worsen symptoms, which makes healing feel slower and more uncomfortable. Managing stress through sleep, exercise, or whatever works for you removes one more obstacle to recovery.

How Long Full Healing Takes

Duodenal ulcers (in the small intestine just past the stomach) typically heal within four to six weeks with proper treatment. Gastric ulcers are slower. According to Harvard Health, uncomplicated gastric ulcers can take up to two to three months to heal completely. Your doctor may keep you on acid-suppressing medication for this entire period.

Healing doesn’t always mean symptoms disappear on a matching timeline. Many people feel significantly better within a week or two of starting treatment as acid levels drop and inflammation calms. The temptation to stop medication early is real, but the tissue underneath is still rebuilding. Completing the full course prevents relapse.

Signs of a Dangerous Complication

Most ulcers heal without incident, but some develop serious complications that require emergency care. A perforated ulcer, where the sore eats completely through the stomach or intestinal wall, causes sudden, sharp abdominal pain and a rigid abdomen that’s extremely tender to touch. This is a surgical emergency.

Bleeding is the other major risk. Signs include vomiting blood (which may look like coffee grounds), black or tarry stools, maroon-colored stools, or symptoms of blood loss like fainting, excessive sweating, and confusion. Any of these symptoms warrants an immediate trip to the emergency room, not a wait-and-see approach.