The most effective treatment for a stomach ulcer depends on what caused it, but in most cases, the answer involves reducing stomach acid so the lining can repair itself and, if a bacterial infection is involved, clearing that infection with antibiotics. Most ulcers heal within four to eight weeks with the right approach. Here’s what actually works, from medical treatments to dietary choices that support healing.
Why the Cause Matters
Nearly all stomach ulcers fall into two categories: those caused by a bacterium called H. pylori and those triggered by long-term use of anti-inflammatory painkillers like ibuprofen, aspirin, or naproxen. A smaller number result from stress, smoking, or excess alcohol. Treating the ulcer without addressing the root cause often leads to recurrence, so identifying the trigger is the first and most important step.
Acid-Reducing Medications
Proton pump inhibitors (PPIs) are the cornerstone of ulcer treatment. These medications dramatically cut the amount of acid your stomach produces, giving the damaged tissue a chance to heal. Common examples include omeprazole, lansoprazole, and pantoprazole. A typical course runs four to eight weeks, with larger ulcers generally needing the full eight weeks. In studies of larger ulcers, an eight-week PPI course achieved healing rates above 80%, compared to roughly 43% at four weeks.
Another class of acid reducers, called H2 blockers (like famotidine), can also help, but they need to be used at double the standard dose to reliably prevent or heal ulcers. At standard doses, they fall short for gastric ulcers specifically.
Clearing an H. Pylori Infection
If testing confirms H. pylori, you’ll need a combination of antibiotics alongside an acid reducer. The classic approach pairs a PPI with two antibiotics, typically clarithromycin plus amoxicillin or metronidazole. This regimen clears the infection in roughly 62% to 89% of people, a range that varies depending on local antibiotic resistance patterns.
Because resistance to clarithromycin has grown in many regions, newer guidelines from the American College of Gastroenterology and European gastroenterology societies now recommend alternatives as first-line options. Bismuth-based quadruple therapy, which adds a bismuth compound and a second antibiotic, consistently achieves eradication rates above 90% in clinical trials. Your doctor will choose a regimen based on what’s most likely to work in your area.
Clearing H. pylori is critical. Without it, the ulcer is very likely to come back even after it initially heals.
Protecting the Stomach Lining
Some medications work by physically shielding the ulcer rather than reducing acid. Sucralfate forms a protective layer over the ulcer base, blocking it from contact with acid, digestive enzymes, and bile. Bismuth compounds do something similar while also having mild antibacterial effects against H. pylori. These are sometimes used alongside acid reducers for added protection.
If You Take Anti-Inflammatory Painkillers
For ulcers caused by NSAIDs, the simplest fix is to stop the medication. But that’s not always possible, especially for people managing chronic pain or arthritis. If you need to continue taking an NSAID, adding a PPI significantly reduces the risk of new ulcers forming or existing ones worsening.
Misoprostol, a medication that mimics one of the stomach’s natural protective compounds, is another option. It may be slightly more effective than PPIs at preventing NSAID-related gastric ulcers, though it tends to cause more side effects like diarrhea and cramping. For people at very high risk of ulcer complications, using a COX-2 selective painkiller (which is gentler on the stomach than traditional NSAIDs) combined with a PPI offers the best protection.
Probiotics as a Supplement to Treatment
Probiotics won’t heal an ulcer on their own, but certain strains can improve the success of antibiotic therapy for H. pylori while reducing side effects like diarrhea, bloating, and nausea. Lactobacillus strains have the strongest evidence. Multiple clinical trials have tested Lactobacillus reuteri alongside standard antibiotic regimens, typically for two to four weeks, and found it helped increase eradication rates and made the treatment course more tolerable.
Other strains with supporting evidence include Lactobacillus acidophilus, Bifidobacterium species, and Saccharomyces boulardii (a beneficial yeast). If you’re undergoing H. pylori treatment, adding a probiotic is a reasonable, low-risk strategy to improve your odds.
Foods That Support Healing
No diet alone will cure an ulcer, but certain foods contain compounds that work against H. pylori or help protect the stomach lining. Flavonoids are the most studied group. Quercetin, found in onions, apples, and kale, has shown the ability to reduce H. pylori colonization in animal studies. Kaempferol and luteolin, found in broccoli and celery, along with hesperetin from citrus peels, have also demonstrated activity against the bacterium in laboratory settings. Berries contain myricetin, which interferes with acid production at a cellular level.
Isoflavones from legumes, particularly soybeans, have shown similar anti-H. pylori effects in lab studies. While these results come largely from test-tube and animal research rather than large human trials, incorporating these foods is unlikely to cause harm and may offer a modest benefit alongside medical treatment. A diet rich in fruits, vegetables, and legumes also provides the nutrients your body needs for tissue repair.
Foods and Drinks to Limit
Certain items directly increase stomach acid production or weaken the protective mucus barrier. Coffee, including decaffeinated coffee, stimulates acid secretion and can irritate an already damaged lining. Carbonated drinks also boost acid production and cause gastric distension, which worsens discomfort. Black tea and cola fall into the same category.
Alcohol damages the digestive tract lining and suppresses the secretion of mucus and bicarbonate, your stomach’s built-in defenses against its own acid. Smoking does the same thing. Both slow healing and increase the chance of recurrence. If you’re actively treating an ulcer, cutting back on or eliminating alcohol and tobacco will meaningfully speed your recovery.
Honey as a Complementary Option
Honey, particularly Manuka honey and certain European varieties, has demonstrated antibacterial activity against H. pylori in laboratory studies. A 20% concentration of natural honey was enough to inhibit bacterial growth in vitro. Importantly, honey did not interfere with the antibiotics commonly used in H. pylori treatment, meaning it can be used alongside standard therapy without concern about reducing antibiotic effectiveness. It’s not a replacement for medical treatment, but a spoonful of raw honey on an empty stomach is a folk remedy with at least some science behind it.
What a Typical Recovery Looks Like
Most people start feeling better within a few days of beginning acid-reducing medication, but the ulcer itself takes weeks to fully close. A standard healing timeline is four to eight weeks on a PPI, with follow-up testing for H. pylori to confirm the infection is gone. If the first round of antibiotics doesn’t clear it, a second round using a different combination is usually effective. Larger or more complicated ulcers may need endoscopic follow-up to confirm healing.
During recovery, eating smaller, more frequent meals can reduce the amount of acid your stomach produces at any given time. Avoiding eating within two to three hours of lying down also helps keep acid away from the healing tissue. These are simple adjustments, but combined with the right medication, they make a real difference in how quickly you feel normal again.

