Most peptic ulcers are treated with acid-reducing medication, and the majority heal within four to eight weeks. The two things that determine your treatment plan are the cause of the ulcer and its severity. Roughly two-thirds of peptic ulcers are caused by a bacterial infection (H. pylori), while most of the rest are triggered by long-term use of anti-inflammatory painkillers like ibuprofen or aspirin.
Identifying the Cause Comes First
Before treatment begins, your doctor will need to figure out what’s driving the ulcer. This usually means testing for H. pylori through a breath test, stool test, or blood test. If you’ve been taking NSAIDs regularly, that’s likely the culprit. The cause matters because it changes the treatment: an H. pylori ulcer requires antibiotics on top of acid-suppressing drugs, while an NSAID ulcer often improves once you stop the painkiller and start medication to let the stomach lining recover.
Treating H. pylori Ulcers
If H. pylori is the cause, you’ll need a combination of antibiotics and an acid-suppressing drug taken together for 14 days. The current recommended approach, from the American College of Gastroenterology, is a four-drug regimen: an acid blocker taken twice daily, two different antibiotics taken multiple times per day, and bismuth (the active ingredient in Pepto-Bismol) taken four times daily. This combination kills the bacteria while lowering stomach acid so the ulcer can heal.
The antibiotic phase is the hardest part for most people. The pill burden is high, side effects like nausea and a metallic taste are common, and you need to complete the full 14 days even after symptoms improve. Skipping doses raises the risk of antibiotic resistance, which can make the infection much harder to clear on a second attempt.
After the antibiotics are finished, you’ll typically continue taking an acid-reducing medication for several more weeks to give the ulcer time to fully close.
Treating NSAID-Caused Ulcers
The first step is stopping the NSAID if possible, or switching to an alternative painkiller that’s gentler on the stomach. From there, a proton pump inhibitor (PPI) is the standard treatment. PPIs dramatically reduce the amount of acid your stomach produces, giving the damaged tissue a chance to repair itself.
If you can’t stop taking NSAIDs because of a condition like arthritis, your doctor has a few strategies. Pairing a traditional NSAID with a PPI significantly reduces ulcer risk. Switching to a different class of anti-inflammatory (called a COX-2 inhibitor) also helps. For the highest-risk patients, particularly those who’ve had a bleeding ulcer before, using a COX-2 inhibitor together with a PPI offers the strongest protection.
Another option is misoprostol, a medication that helps rebuild the stomach’s protective mucus layer. It’s effective at preventing NSAID ulcers, but it frequently causes diarrhea, especially at higher doses, which limits its usefulness for many people.
How Acid-Reducing Medications Compare
PPIs are the most effective class of medication for healing ulcers. In comparative studies, PPIs healed about 81% of ulcers at the four-week mark, and roughly 84 to 96% by eight weeks. Older acid-reducing drugs called H2 blockers (like famotidine) also work, but they tend to be slower. In one study of stubborn ulcers, PPIs healed 96% at eight weeks compared to just 57% with H2 blockers. PPIs also provide faster pain relief: 81% of patients were pain-free at four weeks on a PPI versus 60% on an H2 blocker.
H2 blockers still have a role, especially for milder cases or for people who can’t tolerate PPIs. At double the standard dose, they’re effective at preventing both stomach and intestinal ulcers. At standard doses, though, they only reliably protect the duodenum (the first section of the small intestine), not the stomach itself.
How Long Healing Takes
Duodenal ulcers generally heal faster than gastric (stomach) ulcers. Both types follow a pattern where they shrink rapidly in the first few weeks and then slow down. The biological “half-life” of an ulcer, meaning the time it takes to shrink by half, is roughly two weeks for both types.
With medication, most duodenal ulcers heal within four to six weeks. Gastric ulcers often take six to eight weeks, and larger ones can take longer. Your doctor may recommend a follow-up endoscopy for gastric ulcers to confirm they’ve healed completely and to rule out anything more serious, since stomach ulcers occasionally turn out to be cancerous.
Protective Agents That Help the Lining Heal
Beyond acid reduction, some medications work by physically shielding the ulcer. Sucralfate forms a gel-like coating over the damaged area, acting as a barrier against acid and digestive enzymes. It’s taken on an empty stomach four times a day for four to eight weeks. It’s not used as often as PPIs because the dosing schedule is inconvenient, but it can be a useful add-on or alternative.
Zinc-carnosine (sold over the counter as PepZin GI) has some clinical evidence behind it. In a double-blind study of 258 people with confirmed stomach ulcers, those taking zinc-carnosine saw a 60% healing rate at eight weeks compared to 46% with a standard mucosal-protection drug. It also appears to counteract the gut-lining damage caused by NSAIDs. In a small study of healthy volunteers taking indomethacin (a potent NSAID), zinc-carnosine prevented the increase in intestinal permeability that the drug normally causes. It’s not a replacement for standard treatment, but it may offer additional support.
Foods and Habits That Slow Healing
Diet alone won’t cure an ulcer, but certain foods and habits directly increase stomach acid or weaken the protective mucus lining, which can slow your recovery or worsen symptoms.
Alcohol and nicotine both suppress the stomach’s production of protective mucus and bicarbonate while simultaneously increasing acid secretion. Smoking is one of the strongest lifestyle risk factors for ulcer formation, and continuing to smoke during treatment slows healing considerably.
Coffee, including decaffeinated coffee, stimulates acid production and can irritate damaged tissue. Carbonated drinks increase acid output and cause stomach distension, which worsens discomfort. Milk, once considered a home remedy for ulcers, is no longer recommended. While it briefly buffers acid, it triggers a rebound effect that leaves you producing more acid than before.
Other items worth limiting during healing include:
- Spicy peppers (black pepper, chilies), which can irritate exposed ulcer tissue
- Chocolate
- Fatty and processed meats
- Condiments like mustard, ketchup, and heavy sauces
Eating smaller, more frequent meals and avoiding food within two to three hours of bedtime can also reduce the acid load your stomach has to manage at any given time.
Warning Signs of a Serious Complication
Most ulcers heal without complications, but some can bleed or, rarely, perforate (burn through the stomach or intestinal wall). These situations require emergency care. Get help immediately if you experience vomiting blood, which can look bright red or resemble dark coffee grounds. Black, tarry stools are another sign of bleeding, as are dizziness and fainting. Sudden, severe abdominal pain that doesn’t let up can signal a perforation. These complications are more common in older adults, people on blood thinners, and those who continue taking NSAIDs during an active ulcer.

