Gastritis treatment depends on what’s causing the inflammation, but most cases improve quickly once you remove the trigger and give your stomach lining time to heal. For many people, that means stopping a problematic medication, treating a bacterial infection, adjusting your diet, or taking acid-reducing medicine for a few weeks. Acute gastritis often resolves on its own once the irritant is gone, while chronic gastritis may need longer-term management.
Identifying the Cause
Effective treatment starts with figuring out why your stomach lining is inflamed. The most common culprits are overuse of anti-inflammatory painkillers (like ibuprofen or aspirin), excessive alcohol, and infection with a bacterium called H. pylori. Less common causes include autoimmune conditions, severe physical stress from illness or surgery, and bile reflux.
If your symptoms are mild and clearly tied to something you ate, drank, or took, your doctor may recommend treatment based on that alone. For persistent or recurring symptoms, diagnosis typically involves an upper endoscopy, where a small camera examines your stomach lining. A tissue sample taken during that procedure is the gold standard for confirming gastritis, checking for H. pylori, and ruling out more serious changes like precancerous cell shifts.
Stopping the Irritant
If painkillers are the problem, the most important step is stopping them. Gastritis caused by NSAIDs or alcohol often improves once you quit those substances. Your stomach lining has a remarkable ability to repair itself when the source of damage is removed.
If you still need pain relief, acetaminophen (Tylenol) is generally a safer alternative because it doesn’t irritate the stomach lining the way ibuprofen, naproxen, or aspirin do. If you take low-dose aspirin for heart protection, don’t stop it on your own. That’s a conversation to have with your doctor, who can weigh the risks.
Acid-Reducing Medications
Your stomach produces acid constantly, and when the protective lining is already inflamed, that acid slows healing and intensifies pain. Most gastritis treatment plans include medication to dial back acid production.
Proton pump inhibitors (PPIs) are the strongest option. They block the acid-producing pumps in your stomach cells and are typically taken once daily before a meal. Common over-the-counter versions include omeprazole and lansoprazole. These are often the first choice for moderate to severe gastritis.
H2 blockers are a milder alternative. They work by blocking histamine, one of the chemical signals that tells your stomach to produce acid. Famotidine is the most widely available H2 blocker and is sold over the counter. It reduces both the baseline acid your stomach makes and the surge triggered by eating. For people with mild gastritis, an H2 blocker may be enough on its own.
Antacids like calcium carbonate (Tums) or magnesium hydroxide (Milk of Magnesia) neutralize acid that’s already in your stomach. They provide fast relief, sometimes within minutes, but they don’t reduce acid production and wear off quickly. Think of them as a bridge for immediate discomfort, not a primary treatment.
Treating H. Pylori Infection
H. pylori is one of the most common causes of chronic gastritis worldwide. If testing confirms you have it, treatment requires a combination of antibiotics and an acid-suppressing medication taken together for 14 days. The current preferred approach, according to American College of Gastroenterology guidelines, is bismuth quadruple therapy when antibiotic resistance patterns aren’t known. This combines bismuth (the active ingredient in Pepto-Bismol), two antibiotics, and a PPI.
Eradication rates with standard therapy typically land in the 70 to 80 percent range. Adding a probiotic, specifically strains of Lactobacillus reuteri, has shown promise as a supplement to antibiotic treatment. A meta-analysis of clinical trials found that patients who took L. reuteri alongside their antibiotics had an 80 percent eradication rate compared to 73 percent in those who didn’t, and they experienced significantly fewer side effects like nausea and diarrhea. The benefit was most pronounced when the probiotic was taken for four weeks or longer. L. reuteri appears to produce antimicrobial compounds that inhibit H. pylori growth while strengthening the mucus barrier in the stomach.
After completing treatment, your doctor will usually retest you to confirm the infection is gone. If the first round fails, alternative antibiotic combinations are available.
Dietary Changes That Help
What you eat won’t cure gastritis on its own, but it can significantly reduce symptoms and create better conditions for healing. The core principle is simple: avoid foods that increase acid production or directly irritate inflamed tissue, and favor foods that are gentle on the stomach.
Foods to limit or cut out:
- Beverages: coffee (regular and decaf), alcohol, carbonated drinks, citrus juices, and caffeinated or mint teas
- Spicy ingredients: chili powder, black and red pepper, curry, and hot peppers
- High-fat foods: fried foods, fast food, cream-based soups, full-fat dairy, and processed meats like bacon, sausage, and salami
- Acidic foods: tomato sauce, citrus fruits, and chocolate
Foods that tend to be well tolerated:
- Fruits and vegetables: low-acid options like apples, melons, pumpkin, and carrots, cooked without added fat
- Whole grains: oatmeal, brown rice, whole-wheat bread, and pasta
- Lean proteins: skinless poultry, fish, eggs, beans, and nuts
- Low-fat dairy: skim or 1% milk, low-fat cheese, or soy milk
- Healthy fats in small amounts: olive oil and canola oil, kept under about 8 teaspoons per day
Eating smaller meals every two to three hours tends to be easier on an inflamed stomach than three large meals. Stop eating at least two hours before lying down, since a full stomach combined with a horizontal position pushes acid against damaged tissue. Stick to low-fat cooking methods like baking, steaming, and poaching rather than frying.
Managing Stress-Related Gastritis
Psychological stress doesn’t just feel like it’s eating at your stomach. It actually changes stomach chemistry. When you’re under chronic stress, your nervous system ramps up signals that trigger acid-producing cells to work harder. Both the vagus nerve and local immune cells in the stomach release chemicals that increase acid output. Severe, untreated depression has been linked to stress gastritis through this same pathway.
If stress is a contributing factor, medication alone won’t fully resolve the problem. Reducing caffeine, quitting smoking, and cutting alcohol all help lower baseline acid levels. Beyond that, whatever genuinely reduces your stress, whether that’s exercise, therapy, sleep improvement, or changes to your work situation, is part of the treatment. This isn’t vague wellness advice. The physiological connection between stress and stomach acid production is well documented.
How Long Recovery Takes
Acute gastritis from a temporary cause, like a weekend of heavy drinking or a short course of ibuprofen, typically resolves within days to a couple of weeks once you stop the irritant. Your stomach lining regenerates quickly when given the chance.
Gastritis from H. pylori takes longer because you need to complete two weeks of antibiotic therapy, and the inflammation continues to settle for weeks after the infection clears. Chronic gastritis from autoimmune causes or long-term NSAID use may require ongoing acid-suppressing medication and periodic monitoring.
What Happens Without Treatment
Gastritis that goes untreated can progress. The most common complication is the development of stomach ulcers, which are deeper erosions that can bleed. Chronic bleeding, even in small amounts, can eventually lead to iron-deficiency anemia. In rare cases, long-term chronic gastritis, particularly when it causes significant thinning of the stomach lining or cellular changes called intestinal metaplasia, increases the risk of stomach cancer. These serious outcomes are uncommon when gastritis is identified and managed, which is why persistent symptoms lasting more than a week or two are worth getting evaluated.

