How Do You Treat Gastritis: Diet, Meds & Recovery

Gastritis treatment depends on what’s causing the inflammation in your stomach lining. Most cases improve within days to weeks once the trigger is removed and the right combination of acid reduction, dietary changes, and sometimes antibiotics is in place. The approach differs significantly depending on whether your gastritis is acute or chronic, and whether it stems from an infection, medication use, or an autoimmune condition.

Reduce Stomach Acid to Let the Lining Heal

The cornerstone of gastritis treatment is lowering the amount of acid your stomach produces. Less acid means less irritation, which gives the inflamed lining a chance to repair itself. Proton pump inhibitors (PPIs) are the most effective option. These medications block the enzyme that produces stomach acid, and they’re available both over the counter and by prescription. Standard doses are taken once daily, typically 20 to 40 mg depending on the specific medication.

H2 blockers are another option. They work differently, blocking histamine signals that tell your stomach to produce acid. They’re generally considered slightly less potent than PPIs, though clinical trial data shows the two classes perform comparably in preventing upper gastrointestinal complications. In a randomized trial of 270 patients, recurrent bleeding or ulcers occurred in about 8% of the PPI group versus 12% of the H2 blocker group, a difference that wasn’t statistically significant. For mild gastritis, H2 blockers may be enough. For more severe or persistent cases, PPIs are the usual choice.

Your doctor may also recommend antacids for quick, short-term relief. These neutralize acid that’s already in your stomach rather than preventing its production, so they work faster but don’t last as long. They’re best used alongside a PPI or H2 blocker, not as a standalone treatment for anything beyond occasional flare-ups.

Treating an H. Pylori Infection

H. pylori is one of the most common causes of chronic gastritis worldwide. If testing confirms you have this bacterial infection, you’ll need a course of antibiotics to clear it. Without eradication, the inflammation tends to persist and can eventually lead to ulcers or other complications.

Current guidelines from the American College of Gastroenterology recommend a 14-day course of bismuth-based quadruple therapy as the first-line treatment. This regimen combines a PPI taken twice daily with three other medications: tetracycline four times daily, metronidazole three or four times daily, and a bismuth product four times daily. It’s an intensive schedule, but the 14-day course has better eradication rates than shorter regimens.

Notably, the older approach of using clarithromycin-based triple therapy is no longer recommended unless lab testing has confirmed the bacteria are sensitive to clarithromycin. Antibiotic resistance has made that regimen unreliable in many populations. If the first round of treatment fails, alternative regimens are available. After completing treatment, retesting is typically done to confirm the infection has been cleared.

Stop NSAIDs If They’re the Cause

Anti-inflammatory painkillers like ibuprofen, naproxen, and aspirin are a major cause of gastritis. These drugs suppress the production of protective compounds in your stomach lining, leaving it vulnerable to acid damage. If NSAID use is behind your gastritis, the single most effective step is stopping the medication.

When that isn’t possible, because you need aspirin for heart protection or anti-inflammatories for a chronic condition, there are strategies to reduce the damage. Selective COX-2 inhibitors are an alternative class of anti-inflammatory that’s gentler on the stomach. A systematic review of nine trials found that COX-2 inhibitors reduced the risk of major gastrointestinal complications by 62% compared to traditional NSAIDs combined with a PPI. Your doctor can also add a protective medication alongside your NSAID to help shield the stomach lining. The key point is that taking a PPI with a traditional NSAID is not a complete solution. If you’re experiencing gastritis symptoms while on these painkillers, a conversation about alternatives is worth having.

Dietary Changes That Help

What you eat won’t cure gastritis on its own, but it can significantly affect how quickly you heal and how uncomfortable you feel in the meantime. The goal is simple: avoid foods that increase acid production or directly irritate inflamed tissue.

Foods most likely to aggravate gastritis include:

  • Acidic foods like tomatoes, citrus fruits, and fruit juices
  • Spicy foods and heavily seasoned dishes
  • Fatty and fried foods, which can worsen inflammation in the stomach lining
  • Coffee and carbonated drinks
  • Alcohol
  • Pickled foods

Eating patterns matter too. A 2022 cohort study found that people with gastritis symptoms were more likely to eat at irregular times and to consume more leftover and processed foods. Eating smaller, more frequent meals at consistent times can reduce the amount of acid your stomach produces at any given moment and help keep symptoms manageable. Lean proteins, cooked vegetables, whole grains, and non-acidic fruits are generally well tolerated during a flare.

Autoimmune Gastritis Requires Ongoing Management

Autoimmune gastritis is a distinct condition where the immune system attacks the cells in the stomach lining that produce acid and a protein needed to absorb vitamin B12. Over time, this leads to a thinning of the stomach lining and nutrient deficiencies. Unlike other forms of gastritis, the underlying autoimmune process can’t be “cured” in the traditional sense.

The primary treatment is vitamin B12 replacement through injections, since the stomach can no longer absorb it properly from food or oral supplements. Iron deficiency is also common and may need to be addressed. People with autoimmune gastritis require regular monitoring because the chronic inflammation and tissue changes increase the risk of certain stomach growths over time. This is a condition managed over years, not weeks.

Protecting the Stomach Lining Directly

Some medications work not by reducing acid but by physically shielding the stomach lining. Sucralfate, for example, forms a protective barrier over damaged tissue. It increases the hydrophobicity (water resistance) of the mucus layer, boosts local production of protective compounds called prostaglandins, and has been shown to protect individual stomach cells from further damage by irritants. While acid-reducing medications are usually the primary treatment, mucosal protectants can be a useful addition when the lining is significantly eroded.

How Long Recovery Takes

Acute gastritis, the kind caused by a temporary trigger like a bout of heavy drinking, a short course of painkillers, or a passing infection, typically resolves on its own once the cause is removed. Your stomach lining repairs itself relatively quickly, and most people feel better within a few days to a couple of weeks.

Chronic gastritis is a different story. Because the inflammation has been present longer, the tissue damage tends to be deeper, and healing takes more time. Chronic gastritis doesn’t resolve without treatment, and even with treatment, it may take weeks to months for symptoms to fully clear. H. pylori-related gastritis, for instance, requires completing the full antibiotic course and confirming eradication before you can expect lasting improvement. Autoimmune gastritis requires indefinite management.

The practical timeline also depends on how consistently you follow treatment. Skipping acid-reducing medications, continuing to drink alcohol, or returning to NSAID use before healing is complete can set you back significantly.

Warning Signs That Need Immediate Attention

Most gastritis is uncomfortable but manageable. Certain symptoms, however, signal complications like internal bleeding that require urgent care. Seek immediate medical attention if you’re vomiting blood, notice blood in your stool, or your stools appear black and tarry. Severe abdominal pain, vomiting so persistent that you can’t keep any food down, or sudden dizziness and lightheadedness also warrant an emergency visit. These can indicate that the inflammation has progressed to bleeding ulcers or other serious damage.