How should I treat an NSAID‑induced upset stomach?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: March 3, 2026View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Treatment for NSAID-Induced Upset Stomach

If you develop upset stomach after taking an NSAID, start a proton pump inhibitor (PPI) immediately, reduce the NSAID dose or switch to a COX-2 selective inhibitor like celecoxib (if you have no cardiovascular disease), and consider stopping the NSAID entirely if symptoms persist despite these measures. 1, 2

Immediate Management Algorithm

Step 1: Start Gastroprotective Therapy

  • Begin a proton pump inhibitor (PPI) as the first-line gastroprotective agent—PPIs are the most effective treatment for NSAID-induced dyspepsia and ulcers, superior to H2-receptor antagonists. 2, 3
  • PPIs effectively reduce gastrointestinal adverse events even during continued NSAID use and are safe for long-term therapy. 3
  • H2-receptor antagonists (ranitidine, famotidine) can prevent duodenal ulcers but are ineffective for gastric ulcers, making them inferior choices. 2

Step 2: Modify or Stop the NSAID

  • Reduce the NSAID dose to the lowest effective amount, as gastrointestinal damage is dose-dependent. 1, 4
  • If symptoms persist despite PPI therapy and dose reduction, discontinue the NSAID—for many patients with dyspepsia, stopping NSAID therapy is the only effective option. 1
  • Consider switching to acetaminophen (up to 4g/day) as a first-line alternative, which provides comparable pain relief without gastrointestinal, cardiovascular, or renal risks. 5

Step 3: Switch to a Safer NSAID (If Continuation Is Necessary)

  • If NSAID therapy cannot be stopped and you have no cardiovascular disease or heart failure, switch to celecoxib (a COX-2 selective inhibitor), which reduces gastrointestinal clinical events and complications by approximately 50% compared to non-selective NSAIDs. 5, 1
  • If you have established cardiovascular disease or elevated cardiovascular risk, use a traditional NSAID (preferably naproxen) plus a PPI instead of celecoxib, as COX-2 inhibitors increase thrombotic cardiovascular events. 5, 6
  • Ibuprofen consistently ranks at the lower end of gastrointestinal toxicity among traditional NSAIDs, whereas ketorolac is among the worst. 4

Additional Protective Measures

Test and Treat Helicobacter pylori

  • Check for Helicobacter pylori infection and eradicate it if present, especially in NSAID-naïve patients or those with a history of peptic ulcer disease—H. pylori increases ulcer risk in NSAID users. 1, 3
  • Eradication is recommended prior to long-term NSAID therapy in high-risk patients. 3

Identify High-Risk Features Requiring Aggressive Gastroprotection

  • Age >65 years with additional gastrointestinal risk factors (2–3.5-fold increased risk). 5
  • History of gastroduodenal ulcers or gastrointestinal bleeding (2.5–4-fold increased risk of recurrence). 5
  • Concurrent use of anticoagulants, corticosteroids, or aspirin—these dramatically increase gastrointestinal bleeding risk. 7, 5

For Highest-Risk Patients

  • Combine a COX-2 selective inhibitor (celecoxib) with a PPI for maximum gastrointestinal protection, provided there are no cardiovascular contraindications. 1

Critical Pitfalls to Avoid

  • Never combine celecoxib with another NSAID—this increases gastrointestinal, cardiovascular, and renal risks over 10-fold. 5
  • Do not assume that taking NSAIDs with food prevents gastrointestinal damage—recent evidence suggests over-the-counter NSAIDs may be better tolerated on an empty stomach. 4
  • Dyspepsia does not reliably predict the presence of an ulcer, as dyspepsia is far more prevalent than actual ulceration. 7
  • Avoid COX-2 inhibitors entirely in patients with congestive heart failure—both celecoxib and traditional NSAIDs are absolutely contraindicated in heart failure. 5

When to Escalate Care

  • If you develop signs of gastrointestinal bleeding (black tarry stools, vomiting blood, severe abdominal pain), seek emergency medical attention immediately—NSAID-related upper gastrointestinal events account for approximately 107,000 hospitalizations and 16,500 deaths annually in the United States. 7

References

Research

Prevention and Treatment of NSAID Gastropathy.

Current treatment options in gastroenterology, 2014

Research

Gastrointestinal safety of NSAIDs and over-the-counter analgesics.

International journal of clinical practice. Supplement, 2013

Guideline

COX-2 Inhibitor Use in High-Risk Patients

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Guideline

NSAIDs and Salicylates: Classification and Clinical Implications

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.