Pharmacology · Non-opioid analgesics

NSAIDs, including COX-2 selective agents

Download study guide (PDF)

Cyclo-oxygenase inhibitors that relieve pain, fever and inflammation by blocking prostaglandin synthesis, at the cost of gastrointestinal, renal and cardiovascular risk that defines how the class is prescribed.

Quick revision

NSAIDs inhibit cyclo-oxygenase and reduce prostaglandin, prostacyclin and thromboxane synthesis; that single mechanism explains the anti-inflammatory benefit and the GI, renal and cardiovascular harm together.

  • Mechanism: inhibition of cyclo-oxygenase (COX-1 and/or COX-2), which converts arachidonic acid into prostaglandins, thromboxanes and prostacyclin. (1)
  • COX-1 is constitutively expressed and protects gastric mucosa, renal blood flow and platelet function; COX-2 is induced mainly during inflammation. (1)
  • Non-selective agents (ibuprofen, naproxen, diclofenac, indomethacin, ketorolac, meloxicam) inhibit both isoenzymes; celecoxib is COX-2 selective. (1)
  • Every prescription NSAID, selective or not, carries an FDA boxed warning for serious cardiovascular thrombotic events and for serious GI bleeding, ulceration and perforation. (3)
  • GI and CV risk both can occur without warning symptoms, and CV risk can appear early in treatment and rise with duration of use. (3)
  • All NSAIDs are contraindicated in the setting of coronary artery bypass graft surgery. (3)
  • Aspirin is the exception within the class: it irreversibly acetylates COX, so its antiplatelet effect lasts the roughly week-long lifespan of the platelet, unlike the reversible inhibition from other NSAIDs. (2)
  • Combining an NSAID with an ACE inhibitor or ARB and a diuretic — the "triple whammy" — raises acute kidney injury risk by blunting both the renin-angiotensin and the prostaglandin-dependent renal compensations at once. (1)

Overview

NSAIDs are among the most widely used medicines in the world, valued for treating pain, fever and inflammation across conditions from muscle strain and dysmenorrhoea to arthritis and gout. The class spans older non-selective agents such as ibuprofen, naproxen, diclofenac, indomethacin, ketorolac and meloxicam, and the newer COX-2 selective agent celecoxib, developed specifically to reduce the gastrointestinal toxicity of the older agents. (1)

Every member works through the same core mechanism: inhibition of cyclo-oxygenase, the enzyme that converts arachidonic acid into prostaglandins, thromboxanes and prostacyclin. COX-1 is constitutively expressed and its products protect gastric mucosa, maintain renal blood flow and support platelet aggregation; COX-2 is induced mainly during inflammation. Non-selective agents block both isoenzymes, so the anti-inflammatory benefit of blocking COX-2 comes bundled with the loss of COX-1's protective functions. (1)

That trade-off is why every prescription NSAID — selective or not — carries an FDA boxed warning for serious cardiovascular thrombotic events and for serious gastrointestinal bleeding, ulceration and perforation, either of which can occur without warning symptoms. Aspirin sits apart from the rest of the class mechanistically: unlike every other NSAID, it inhibits COX irreversibly, which is what gives low-dose aspirin its durable antiplatelet effect rather than a purely anti-inflammatory one. (3) (2)

Classification and drug examples

Best learned by COX selectivity, since selectivity predicts which of the class's two headline risks — gastrointestinal or cardiovascular — dominates for a given agent, though both risks apply to some degree across the class.

Non-selective COX-1/COX-2 inhibitors

Block both isoenzymes; carry the class's classic GI ulceration and bleeding risk alongside cardiovascular and renal risk. (1)

  • Ibuprofen · Oral/topical — The most widely used non-selective NSAID, available both by prescription and over the counter. (1)
  • Naproxen · Oral — Longer half-life than ibuprofen, allowing less frequent dosing; among the non-selective agents with a comparatively lower reported cardiovascular signal in some analyses. (1)
  • Diclofenac · Oral/topical — Carries the highest hepatotoxicity risk within the class. (1)
  • Indomethacin · Oral — An older, potent non-selective agent used particularly in gout and certain rheumatologic indications. (1)
  • Ketorolac · Oral/IV/IM — A parenteral option for short-term moderate to severe pain; duration of use is deliberately limited because of GI and renal risk. (1)
  • Meloxicam · Oral — More COX-2 preferential than the other non-selective agents at usual doses, though not selective in the way celecoxib is. (1)
  • Aspirin (Acetylsalicylic acid) · Oral — Mechanistically distinct within the class: irreversibly acetylates COX, giving low-dose aspirin a durable antiplatelet effect that outlasts the drug itself. (2)

COX-2 selective agents

Developed to reduce COX-1-mediated GI toxicity; cardiovascular risk remains and is specifically labelled. (3)

  • Celecoxib · Oral — The remaining COX-2 selective agent on the US market after rofecoxib and valdecoxib were withdrawn; still carries the class cardiovascular boxed warning and is contraindicated peri-CABG, and in sulfonamide allergy. (3)

Mechanism of action

NSAIDs inhibit cyclo-oxygenase, reducing conversion of arachidonic acid into prostaglandins, thromboxanes and prostacyclin. Which isoenzyme is inhibited — COX-1, COX-2, or both — determines whether the dominant consequence is protective-mucosa loss, altered renal haemodynamics, or reduced platelet aggregation.

Molecular target
Cyclo-oxygenase (COX-1 and/or COX-2)
Pharmacodynamic effect
Not applicable — this class is an anti-inflammatory/analgesic/antipyretic, not an antimicrobial.
Effect kinetics
Not applicable, except for aspirin, whose COX inhibition is irreversible; every other class member's effect is reversible and tracks plasma concentration.
  1. Cyclo-oxygenase is blocked

    The drug binds cyclo-oxygenase and prevents it from converting arachidonic acid into prostaglandin H2, the shared precursor for the entire downstream family of prostanoids. (1)

  2. Inflammatory prostaglandin synthesis falls (COX-2 effect)

    With less prostaglandin produced at sites of inflammation, the vasodilation, hyperalgesia and hypothalamic temperature-set-point elevation that COX-2-derived prostaglandins drive are reduced, producing the anti-inflammatory, analgesic and antipyretic effects. (1)

  3. Protective COX-1-derived prostaglandins fall too (non-selective agents)

    In non-selective agents the same inhibition removes COX-1-derived PGE2 and PGI2, which normally maintain gastric mucous secretion and mucosal blood flow, exposing the stomach lining to injury. (2)

  4. Renal afferent arteriolar dilation is lost

    Prostaglandins normally dilate the afferent arteriole to maintain glomerular filtration when renal perfusion is challenged; losing that dilation reduces glomerular filtration rate, particularly in volume-depleted or already-compromised kidneys. (1)

  5. Platelet thromboxane synthesis is affected

    Thromboxane A2, also COX-derived, drives platelet aggregation. Non-selective inhibition reduces it; aspirin's irreversible acetylation removes it for the platelet's whole lifespan, which is the pharmacological basis for low-dose aspirin's antiplatelet use. (2)

Major clinical uses

Read each row as drug → indication → role in therapy. Treatment is always directed by the treating clinician.

DrugIndicationRoleNote
IbuprofenMild to moderate pain, fever, and inflammatory conditions including musculoskeletal pain and dysmenorrhoeafirst-line for many common types of acute painAvailable over the counter at lower doses; prescription strength for more severe indications. (1)
NaproxenOsteoarthritis, rheumatoid arthritis, and other chronic inflammatory joint conditionsmaintenance therapyLonger half-life supports twice-daily dosing. (1)
DiclofenacOsteoarthritis and soft-tissue pain, including topical formulations for localised joint paintargetedTopical formulations reduce systemic exposure relative to oral dosing. (1)
CelecoxibOsteoarthritis and rheumatoid arthritis, particularly when GI risk is a greater concern than cardiovascular riskalternative to non-selective NSAIDsChoice between celecoxib and a non-selective agent should weigh individual GI versus cardiovascular risk factors. (3)
KetorolacShort-term moderate to severe acute pain, often post-operativelyshort-course onlyDuration is deliberately restricted because of accumulating GI and renal risk with longer use. (1)
AspirinLow-dose antiplatelet therapy for cardiovascular risk reduction, distinct from its higher-dose analgesic/anti-inflammatory usespecialist- or guideline-directedThe antiplatelet indication depends on the irreversible mechanism unique to aspirin within this class. (2)

Pharmacokinetics

DrugRouteAbsorptionMetabolismEliminationHalf-lifeAdjust in
IbuprofenOral/topicalWell absorbed orallyHepaticRenalSee prescribing referenceRenal and hepatic impairment; caution with concurrent nephrotoxic or antihypertensive therapy (1)
DiclofenacOral/topicalWell absorbed orally; topical formulations give lower systemic exposureHepaticRenal and biliarySee prescribing referenceHighest hepatotoxicity risk in the class; monitor liver function with prolonged use (1)
CelecoxibOralWell absorbed orallyHepatic, chiefly CYP2C9Hepatic/renalSee prescribing referenceSulfonamide allergy is a contraindication; contraindicated peri-CABG (3)
  • This page gives no dose regimens by design. NSAID dosing depends on indication, renal and hepatic function, cardiovascular risk and concurrent medications, and belongs in a prescribing reference used by the treating clinician.
  • Combining any NSAID with an ACE inhibitor/ARB and a diuretic — the 'triple whammy' — is a recognised, specifically named cause of acute kidney injury and warrants particular caution or avoidance. (1)

Adverse effects

Common

  • Gastrointestinal upset: Dyspepsia, nausea and abdominal discomfort are common even without frank ulceration or bleeding. (1)
  • Fluid retention and blood pressure elevation: Prostaglandin-mediated sodium and water retention can raise blood pressure and worsen heart failure. (1)

Serious adverse effects

  • Serious cardiovascular thrombotic events: Myocardial infarction and stroke, which can be fatal; risk may occur early in treatment and increase with duration of use, and is present with COX-2 selective and non-selective agents alike. Assess cardiovascular risk before starting and use the lowest effective dose for the shortest duration consistent with treatment goals. (3)
  • Serious gastrointestinal bleeding, ulceration and perforation: Can occur at any time during use and without warning symptoms; elderly patients and those with a prior history of peptic ulcer disease or GI bleeding are at greater risk. Consider gastroprotection in higher-risk patients and monitor for signs of GI bleeding. (3)
  • Acute kidney injury: From loss of prostaglandin-dependent afferent arteriolar dilation, particularly in volume depletion, existing renal impairment, or the 'triple whammy' combination. Avoid in significant renal impairment and monitor renal function when risk factors are present. (1)

Drug-specific effects

  • Diclofenac: Highest hepatotoxicity risk within the class. (1)
  • Aspirin: Irreversible antiplatelet effect lasting the life of the platelet, distinct from the reversible effect of other NSAIDs; raises bleeding risk accordingly. (2)
  • Celecoxib: Contraindicated in patients with sulfonamide hypersensitivity, unlike non-selective NSAIDs. (3)

Contraindications, precautions and interactions

Contraindications

  • Known hypersensitivity to the specific agent, or a history of asthma, urticaria, or other allergic-type reaction after aspirin or another NSAID. (3)
  • Use in the setting of coronary artery bypass graft (CABG) surgery. (3)
  • Sulfonamide hypersensitivity, specific to celecoxib. (3)

Precautions

  • History of peptic ulcer disease or gastrointestinal bleeding. (3)
  • Established cardiovascular disease or cardiovascular risk factors. (3)
  • Renal impairment, volume depletion, or concurrent ACE inhibitor/ARB and diuretic use ('triple whammy'). (1)
  • Third-trimester pregnancy. (1)

Drug interactions

  • ACE inhibitors, ARBs and diuretics: Combined use raises acute kidney injury risk through the 'triple whammy' mechanism, and NSAIDs blunt the antihypertensive effect of ACE inhibitors and ARBs. (1)
  • Anticoagulants and aspirin: Additive bleeding risk, particularly gastrointestinal. (3)
  • Lithium and methotrexate: NSAIDs can reduce renal clearance of both, raising the risk of toxicity. (1)

Comparison tables

COX selectivity and its dominant risk

Both cardiovascular and GI risk apply across the class to some degree; this shows which risk each agent's mechanism emphasises. A prescribing reference and the treating clinician govern actual therapy.

DrugCOX selectivityEmphasised risk
Ibuprofen / naproxen / indomethacinNon-selectiveGI ulceration/bleeding, renal effects (1)
DiclofenacNon-selective, more COX-2-preferential in practiceHepatotoxicity, plus class GI/CV/renal risk (1)
CelecoxibCOX-2 selectiveCardiovascular thrombotic risk; lower GI risk than non-selective agents (3)
AspirinNon-selective, irreversibleBleeding, from a durable antiplatelet effect distinct from other NSAIDs (2)

High-yield exam pearls

  • One enzyme, two faces. (1) COX-1 is the housekeeping isoform protecting the stomach, kidney and platelets; COX-2 is the inflammation-driven isoform. A non-selective NSAID gets the anti-inflammatory benefit of blocking COX-2 but pays for it by also blocking COX-1's protective roles.
  • COX-2 selectivity trades GI risk for cardiovascular risk, not eliminates all risk. (3) Celecoxib spares COX-1-dependent gastric protection but still carries the same boxed warning for serious cardiovascular thrombotic events as non-selective NSAIDs — selectivity changes which risk dominates, not whether the class-wide risks apply.
  • Aspirin is the odd one out mechanistically. (2) Every other NSAID inhibits COX reversibly; aspirin acetylates it irreversibly. That is why low-dose aspirin can produce a lasting antiplatelet effect for the life of the platelet, while ibuprofen's antiplatelet effect disappears as the drug clears.
  • "Triple whammy" is a named, testable interaction. (1) An ACE inhibitor or ARB plus a diuretic plus an NSAID removes two separate compensatory mechanisms that protect renal perfusion, and the combination is a recognised, specifically named cause of acute kidney injury.
  • GI and CV risk can strike without warning. (3) The FDA boxed warning states both serious GI events and serious cardiovascular events can occur at any time during use, without warning symptoms — a reason NSAIDs are not treated as harmless because a patient 'feels fine'.

Common exam traps

  • Trap: "COX-2 selective NSAIDs have no boxed warning because they spare the stomach." Actually: Celecoxib's label carries the same boxed warning for cardiovascular thrombotic events as non-selective NSAIDs, and is specifically contraindicated in the setting of CABG surgery. Selectivity changes the risk profile; it does not remove the warning. (3)
  • Trap: "Adding aspirin to another NSAID lowers cardiovascular risk further." Actually: There is no consistent evidence that concurrent aspirin mitigates the cardiovascular thrombotic risk of another NSAID, and combining aspirin with an NSAID increases the risk of serious GI events instead. (3)
  • Trap: "NSAID-related kidney injury only happens with long-term daily use." Actually: NSAIDs reduce prostaglandin-dependent afferent arteriolar dilation acutely; combined with an ACE inhibitor/ARB and a diuretic (the 'triple whammy'), acute kidney injury can occur within days, not only after chronic use. (1)
  • Trap: "All NSAIDs inhibit COX the same permanent way aspirin does." Actually: Aspirin is uniquely irreversible. Ibuprofen, naproxen, diclofenac, celecoxib and the rest are reversible COX inhibitors whose effect tracks plasma drug concentration rather than platelet lifespan. (2)

Self-test questions

Answers are hidden until you open them. These questions are written from this page's cited content and are for study only — they are not clinical guidance.

  1. What is the core enzymatic mechanism shared by all NSAIDs?

    • Inhibition of lipoxygenase, blocking leukotriene synthesis
    • Inhibition of cyclo-oxygenase (COX-1 and/or COX-2), reducing prostaglandin, prostacyclin and thromboxane synthesis from arachidonic acid
    • Blockade of voltage-gated sodium channels in peripheral nerves
    • Antagonism of the mu-opioid receptor
    Show answer

    Answer: Inhibition of cyclo-oxygenase (COX-1 and/or COX-2), reducing prostaglandin, prostacyclin and thromboxane synthesis from arachidonic acid

    NSAIDs inhibit cyclo-oxygenase, the enzyme that converts arachidonic acid into prostaglandins, thromboxanes and prostacyclin. Whether an agent inhibits COX-1, COX-2 or both determines its specific benefit and risk profile. (1)

  2. Why does inhibiting COX-1 specifically raise gastrointestinal bleeding risk?

    • COX-1 produces the acid that neutralises stomach protection
    • COX-1 is constitutively expressed and its prostaglandin products maintain gastric mucosal blood flow and mucous secretion; blocking it removes that protection
    • COX-1 has no role in the gastrointestinal tract
    • COX-1 inhibition increases gastric acid production directly
    Show answer

    Answer: COX-1 is constitutively expressed and its prostaglandin products maintain gastric mucosal blood flow and mucous secretion; blocking it removes that protection

    COX-1-derived prostaglandins such as PGE2 and PGI2 maintain gastric mucous secretion and mucosal blood flow. Removing that constitutive protection is what makes non-selective COX-1 inhibition ulcerogenic, independent of any anti-inflammatory action. (2)

  3. Why is celecoxib still contraindicated in the setting of coronary artery bypass graft (CABG) surgery despite being COX-2 selective?

    • Celecoxib has no cardiovascular risk and the contraindication is outdated
    • COX-2 selective inhibition still carries a boxed warning for serious cardiovascular thrombotic events, and celecoxib's label specifically contraindicates it in the CABG setting
    • Celecoxib causes excessive bleeding through irreversible COX-1 inhibition, exactly like aspirin
    • Celecoxib is metabolised only by the kidney, which fails during CABG
    Show answer

    Answer: COX-2 selective inhibition still carries a boxed warning for serious cardiovascular thrombotic events, and celecoxib's label specifically contraindicates it in the CABG setting

    COX-2 selectivity reduces GI risk relative to non-selective NSAIDs but does not remove cardiovascular thrombotic risk. Celecoxib's FDA label carries the same class-wide cardiovascular boxed warning and specifically contraindicates use in the CABG surgical setting. (3)

  4. What makes aspirin's antiplatelet effect different from that of ibuprofen?

    • Aspirin has no effect on platelets; only ibuprofen does
    • Aspirin irreversibly acetylates COX, so its effect lasts the roughly week-long lifespan of the platelet; ibuprofen's inhibition is reversible and tracks plasma concentration
    • Ibuprofen's antiplatelet effect is permanent while aspirin's is reversible
    • Both drugs have an identical, reversible antiplatelet duration
    Show answer

    Answer: Aspirin irreversibly acetylates COX, so its effect lasts the roughly week-long lifespan of the platelet; ibuprofen's inhibition is reversible and tracks plasma concentration

    Aspirin irreversibly binds cyclo-oxygenase, so a platelet exposed to aspirin cannot regenerate the enzyme for the rest of its roughly seven-to-ten-day lifespan. Other NSAIDs inhibit COX reversibly, so their antiplatelet effect disappears as the drug is cleared. (2)

  5. A patient taking an ACE inhibitor and a diuretic is started on an NSAID and develops acute kidney injury within days. What is this interaction called, and why does it happen?

    • The 'triple whammy' — the NSAID removes prostaglandin-dependent afferent arteriolar dilation while the ACE inhibitor and diuretic remove the other renal compensatory mechanisms
    • Serotonin syndrome, from combined serotonergic activity
    • The 'double cover' effect, from combined COX-1 and COX-2 inhibition alone
    • This combination has no recognised interaction risk
    Show answer

    Answer: The 'triple whammy' — the NSAID removes prostaglandin-dependent afferent arteriolar dilation while the ACE inhibitor and diuretic remove the other renal compensatory mechanisms

    This is the named 'triple whammy': an NSAID blunts prostaglandin-mediated afferent arteriolar dilation, while an ACE inhibitor/ARB and a diuretic remove other renal protective mechanisms, together raising acute kidney injury risk sharply and quickly. (1)

  6. Why does the FDA boxed warning emphasise that serious GI and cardiovascular NSAID events can occur 'without warning symptoms'?

    • Because these events are always preceded by clear abdominal pain
    • Because a patient can be at risk of a fatal event without any preceding symptom to prompt a clinical visit, so risk assessment cannot rely on symptoms alone
    • Because the warning applies only to patients already hospitalised
    • Because NSAIDs cause symptoms only after the event has occurred
    Show answer

    Answer: Because a patient can be at risk of a fatal event without any preceding symptom to prompt a clinical visit, so risk assessment cannot rely on symptoms alone

    The label states these serious events can occur at any time during use and without warning symptoms, which is precisely why risk factors, duration of use and dose are assessed proactively rather than waiting for symptoms to appear. (3)

Frequently asked questions

Are COX-2 selective NSAIDs safer overall than non-selective NSAIDs?

They are generally associated with lower gastrointestinal risk, but they carry the same FDA boxed warning for serious cardiovascular thrombotic events as non-selective NSAIDs. 'Safer' depends on which risk matters more for a given patient, which is a decision for the prescribing clinician. (3)

Why is aspirin sometimes grouped with NSAIDs and sometimes discussed separately?

Aspirin shares the same COX-inhibition mechanism as other NSAIDs, so it belongs in the class. But its inhibition is irreversible rather than reversible, which gives it a distinct, durable antiplatelet effect that other NSAIDs do not share — that is why low-dose aspirin is used for cardiovascular prevention while other NSAIDs are not. (2)

Can NSAID-related GI bleeding happen without any stomach pain first?

Yes. The FDA boxed warning specifically states serious GI events can occur at any time during use, without warning symptoms, which is why risk factors and duration of use are considered proactively rather than waiting for symptoms. (3)

Why is it risky to combine an NSAID with a blood-pressure medicine and a diuretic?

This combination — an ACE inhibitor or ARB, a diuretic, and an NSAID — is known as the 'triple whammy' because it removes two separate mechanisms the kidney relies on to maintain blood flow when under stress, and it is a recognised cause of acute kidney injury. (1)

What should a patient prescribed an NSAID do if they are worried about side effects?

Any concerns, new symptoms, or other medicines being taken should be discussed with the prescribing clinician or pharmacist rather than adjusting the medicine independently. The clinician can weigh individual GI, renal and cardiovascular risk factors against the benefit of treatment. (3)

References

  1. Nonsteroidal Anti-Inflammatory Drugs (NSAIDs) (StatPearls) StatPearls Publishing / NCBI Bookshelf, 2025
  2. Nonsteroidal Anti-Inflammatory Drugs Toxicity (StatPearls) StatPearls Publishing / NCBI Bookshelf, 2025
  3. Celecoxib Capsules — FDA-approved label (DailyMed) DailyMed, U.S. National Library of Medicine, 2026

This page is educational material for students and health professionals. It is not prescribing guidance and does not give individual treatment advice. Doses, regimens and therapy choices must come from a current prescribing reference and the treating clinician.

Medical review policy · Report a correction