How Is Gastritis Treated: Meds, Diet, and Recovery

Gastritis treatment depends on what’s causing the inflammation, but nearly all cases involve reducing stomach acid to let the lining heal. Acute gastritis from a short-term trigger like alcohol or medication overuse often resolves on its own once the irritant is removed. Chronic gastritis requires identifying and treating the underlying cause, whether that’s a bacterial infection, long-term painkiller use, or an autoimmune condition.

Acid-Reducing Medications

The cornerstone of gastritis treatment is lowering the amount of acid your stomach produces. Less acid means less irritation, which gives the damaged lining time to repair. Two main classes of drugs do this, and they work differently.

Proton pump inhibitors (PPIs) like omeprazole and lansoprazole are the stronger option. They shut down the acid-producing pumps in your stomach cells entirely, and a single daily dose can keep acid levels low for most of the day. Typical doses range from 20 to 40 mg daily. For the best effect, take them 30 to 60 minutes before breakfast. If you’re on a twice-daily regimen, the second dose goes before your last meal of the day.

H2 blockers are the lighter alternative. They reduce acid by blocking histamine signals to your stomach cells. They’re less potent than PPIs but work well for milder cases. These are available over the counter and by prescription.

For fast but temporary relief, basic antacids (the chewable tablets or liquids containing calcium carbonate, magnesium hydroxide, or sodium bicarbonate) neutralize acid that’s already in your stomach. Effervescent sodium bicarbonate can start working in seconds, and calcium carbonate raises stomach pH within about 6 minutes. Compare that to an H2 blocker, which takes over an hour to kick in. Antacids won’t heal your stomach lining on their own, but they can bridge the gap while longer-acting medications take effect.

Treating H. pylori Infection

H. pylori bacteria are one of the most common causes of chronic gastritis worldwide. If testing confirms this infection, eradicating the bacteria is essential. The stomach lining won’t fully heal while the infection persists.

The current recommended approach for most patients is a 14-day course of bismuth-based quadruple therapy, which combines a PPI with bismuth and two antibiotics. This is a demanding regimen, with multiple pills taken several times a day for two weeks, but it has a strong success rate. Older triple-therapy regimens built around clarithromycin are no longer recommended as a first choice because bacterial resistance has made them less reliable. Doctors now reserve clarithromycin-based treatment for cases where lab testing confirms the bacteria are still sensitive to it.

If the first round of treatment doesn’t work, alternative regimens are available. Your doctor will typically switch to a different combination of antibiotics to overcome resistance. Completing the full course matters. Stopping early increases the chance the infection survives and becomes harder to treat.

Managing Painkiller-Related Gastritis

Nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen and naproxen are a leading cause of gastritis, especially with long-term use. These medications reduce the protective mucus layer in your stomach, leaving the lining exposed to acid.

The first step is straightforward: stop taking the NSAID if possible, or switch to a lower dose for a shorter duration. For conditions like osteoarthritis where long-term pain relief is needed, non-drug approaches like physical therapy and exercise can sometimes replace NSAIDs entirely.

When you genuinely need an NSAID, taking a PPI alongside it is the preferred strategy for protecting your stomach. For courses lasting up to 30 days, a standard single daily dose of a PPI is typically sufficient. For longer-term NSAID use beyond 30 days, a double dose of a PPI is recommended. In studies, the protective agent misoprostol reduced the risk of developing a gastric ulcer by 74%, though PPIs remain the first-line choice because misoprostol can cause side effects like diarrhea and cramping.

One important note: taking a fixed-dose combination pill that bundles an NSAID with a stomach protector in a single tablet is not recommended for people who already have NSAID-related gastritis. These need to be dosed and managed separately.

Protective Coatings for the Stomach Lining

Some medications work not by reducing acid but by physically shielding the damaged lining. Sucralfate, available by prescription, dissolves in your stomach acid and forms a thick, paste-like barrier over irritated or ulcerated tissue. This coating blocks acid, digestive enzymes, and bile salts from reaching the wound. It also stimulates your stomach to produce more protective mucus and promotes tissue repair by binding growth factors to the damaged area.

Bismuth subsalicylate (the active ingredient in Pepto-Bismol) offers a milder version of the same idea. It coats the stomach lining and has mild antibacterial properties, which is why bismuth also appears in H. pylori treatment regimens. For occasional symptom relief, it’s a reasonable over-the-counter option.

Diet and Lifestyle Adjustments

Diet gets a lot of attention in gastritis discussions, but research suggests it plays a smaller role than most people assume. According to the National Institute of Diabetes and Digestive and Kidney Diseases, eating habits don’t play an important role in causing most cases of gastritis. The exceptions are heavy alcohol use, which can cause acute erosive gastritis on its own, and rare cases involving food allergies or iron supplements.

That said, certain habits can make symptoms worse even if they aren’t the root cause. Alcohol irritates an already inflamed lining. Caffeine and very spicy foods increase acid production or discomfort in some people. Paying attention to what worsens your symptoms and avoiding those triggers is reasonable, but you don’t need to follow a rigid “gastritis diet” unless your doctor recommends one for a specific reason. The real priority is treating the underlying cause.

How Long Recovery Takes

Acute gastritis from a short-term cause, like a weekend of heavy drinking or a brief course of painkillers, heals relatively quickly once the irritant is gone. The stomach lining has a rapid turnover rate and can begin repairing itself within days.

Chronic gastritis takes longer. The inflammation has had time to cause deeper damage to the tissue, and healing depends on successfully treating the cause. An H. pylori infection requires a full 14-day antibiotic course, and the lining continues to recover for weeks afterward. Autoimmune gastritis, where the body’s immune system attacks the stomach lining, requires ongoing management because it doesn’t resolve on its own.

PPIs and H2 blockers can provide noticeable symptom relief within the first few days of use, but full mucosal healing often takes four to eight weeks of consistent acid suppression. Your doctor may recommend an endoscopy after treatment to confirm the lining has healed, particularly if the initial gastritis was severe or if there’s concern about complications.

What Happens Without Treatment

Gastritis that goes untreated can progress to more serious problems. The most common complication is a peptic ulcer, where the inflammation erodes deeply enough to create an open sore in the stomach lining. Ulcers can bleed, sometimes significantly, leading to symptoms like black or tarry stools, vomiting blood, or unexplained anemia.

Certain forms of chronic gastritis, particularly those involving extensive thinning of the stomach lining and cellular changes in the tissue, can increase the risk of stomach cancer over time. This is rare, but it underscores why chronic gastritis shouldn’t be ignored or managed indefinitely with antacids alone. Identifying and treating the cause is what prevents these outcomes.