Among common over-the-counter NSAIDs, ibuprofen is the easiest on the stomach. A large meta-analysis of observational studies found that ibuprofen carried a relative risk of 1.84 for upper gastrointestinal complications compared to non-use, while naproxen came in at 4.10 and diclofenac at 3.34. If you have access to a prescription, celecoxib has an even lower GI risk profile, with a relative risk of just 1.45.
How NSAIDs Damage the Stomach
All NSAIDs work by blocking enzymes called COX-1 and COX-2. COX-2 drives inflammation and pain, which is the effect you want. COX-1, on the other hand, helps maintain the protective mucus lining of your stomach. When a standard NSAID shuts down COX-1, your stomach loses much of its defense against its own acid. That’s what leads to irritation, ulcers, and in serious cases, bleeding.
This is why drugs that primarily target COX-2 while leaving COX-1 more intact tend to cause fewer stomach problems. Celecoxib is the main prescription NSAID designed to do this. Standard over-the-counter options like ibuprofen, naproxen, and aspirin all block both enzymes, but they differ in how aggressively they do so and how long they linger in your system.
How Common NSAIDs Rank for GI Risk
The SOS Project, a systematic review and meta-analysis published in drug safety research, pooled data from observational studies to compare the risk of upper GI complications (ulcers, bleeding, perforation) across individual NSAIDs. Here’s how the most widely used options stacked up, expressed as relative risk compared to people not taking any NSAID:
- Celecoxib (prescription): 1.45 times the baseline risk
- Ibuprofen: 1.84 times the baseline risk
- Diclofenac: 3.34 times the baseline risk
- Naproxen: 4.10 times the baseline risk
- Indomethacin: 4.14 times the baseline risk
- Piroxicam: 7.43 times the baseline risk
Ibuprofen’s relative gentleness comes partly from its short duration of action. It clears your system faster than naproxen, which means your stomach lining gets a break between doses. Naproxen stays active for 12 hours per dose compared to ibuprofen’s 4 to 6, so it suppresses protective stomach enzymes for longer stretches.
Dose matters enormously too. The same meta-analysis found that high daily doses of any NSAID carried two to three times the GI risk of low doses. Taking 200 mg of ibuprofen is a very different proposition from taking 800 mg three times a day.
Celecoxib: The Prescription Option
Celecoxib is designed to selectively block COX-2 while mostly sparing COX-1, which means your stomach keeps producing its protective lining. In a systematic review of randomized controlled trials, celecoxib reduced the risk of ulcers detected by endoscopy by about 71% compared to traditional NSAIDs. For serious upper GI events like bleeds and perforations, the reduction was around 45%, though that estimate was less statistically certain.
Celecoxib does require a prescription, and it’s not risk-free. It still carries some cardiovascular concerns, as do all NSAIDs. But for people who need regular anti-inflammatory treatment and have a history of stomach problems, it’s often the preferred choice.
Enteric Coating Doesn’t Help Much
If you’ve been buying enteric-coated aspirin or ibuprofen thinking the special coating protects your stomach, the evidence is disappointing. A systematic review found that enteric-coated aspirin offered no meaningful advantage over plain aspirin for preventing ulcers or GI bleeding. The reason is straightforward: most of the stomach damage NSAIDs cause isn’t from the pill sitting against your stomach wall. It’s a systemic effect that happens after the drug enters your bloodstream and suppresses protective enzymes throughout your digestive tract.
Enteric coating may actually create a different problem. Because it shifts where the drug is absorbed, enteric-coated aspirin has been associated with small bowel injury that can cause clinically significant anemia over time. So you’re not avoiding damage, just potentially relocating it.
How to Reduce Your Risk
Regardless of which NSAID you choose, a few practical strategies can lower your chances of stomach trouble. The simplest is using the lowest effective dose for the shortest time you need it. A couple of ibuprofen for a headache is very different from daily use for chronic joint pain.
Taking NSAIDs with food doesn’t prevent the systemic enzyme suppression that causes most damage, but it can reduce the direct irritation that leads to nausea and discomfort. For many people, that’s enough to make occasional use tolerable.
For anyone who needs to take NSAIDs regularly, especially people with a history of ulcers or GI bleeding, current guidelines recommend adding a proton pump inhibitor (a common acid-reducing medication like omeprazole). This combination significantly lowers the risk of ulcers and bleeding. For high-risk patients who’ve had a previous bleeding ulcer, the recommended approach is a selective COX-2 inhibitor like celecoxib at the lowest effective dose, paired with a daily acid reducer.
Your individual risk depends on several factors: age over 65, a history of ulcers, taking blood thinners or corticosteroids alongside your NSAID, and heavy alcohol use all raise the stakes. If any of those apply to you, ibuprofen at low doses or celecoxib with an acid reducer is a substantially safer path than reaching for naproxen or higher-potency options.

