A COX-2 inhibitor is a type of anti-inflammatory drug designed to relieve pain and reduce inflammation while causing fewer stomach problems than traditional painkillers like ibuprofen or naproxen. It works by selectively blocking one specific enzyme involved in inflammation, rather than shutting down a broader set of processes that also protect your stomach lining. Celecoxib (sold as Celebrex) is the only COX-2 inhibitor still available by prescription in the United States.
How COX-2 Inhibitors Work
Your body contains two versions of an enzyme called cyclooxygenase: COX-1 and COX-2. Both produce chemical messengers called prostaglandins, but they serve very different purposes. COX-1 runs quietly in most of your cells all the time, maintaining everyday functions like protecting the stomach lining, supporting blood flow to the kidneys, and helping blood platelets clump together when you’re injured. COX-2, on the other hand, is mostly switched on in response to injury or irritation. It ramps up prostaglandin production at the site of damage, which triggers the classic signs of inflammation: redness, swelling, and pain.
Traditional NSAIDs like ibuprofen and naproxen block both COX-1 and COX-2 at the same time. That’s effective for pain, but shutting down COX-1 strips away the protective mucus layer in your stomach, which is why long-term NSAID use can lead to ulcers and gastrointestinal bleeding. COX-2 inhibitors were developed to be more targeted. They block the inflammation-driving enzyme while largely leaving COX-1 alone, preserving those protective housekeeping functions.
Conditions It Treats
Celecoxib is prescribed for a range of pain and inflammatory conditions. The most common uses are osteoarthritis and rheumatoid arthritis, where it reduces joint pain, stiffness, and swelling. It’s also approved for ankylosing spondylitis, a form of arthritis affecting the spine, as well as acute pain, menstrual cramps, and acute migraine headaches.
For osteoarthritis, the typical dose is 200 mg once daily or split into two 100 mg doses. For rheumatoid arthritis, the range is 100 to 200 mg twice daily. Acute pain, such as after a dental procedure or during menstruation, is typically managed with a 400 mg first dose followed by 200 mg twice daily as needed. A liquid formulation is available specifically for acute migraine at a 120 mg dose.
The Stomach Advantage
The whole reason COX-2 inhibitors were developed was to reduce gastrointestinal harm. In clinical trials, patients taking COX-2 selective drugs had substantially fewer stomach ulcers visible on endoscopy compared to those on traditional NSAIDs. This is a meaningful benefit for people who need daily anti-inflammatory medication but are prone to stomach problems, especially older adults and those with a history of ulcers.
That said, the stomach protection isn’t absolute. If you’re actively being treated for a documented ulcer, celecoxib is generally still not recommended. And combining it with aspirin, which many people take for heart protection, can offset much of the gastrointestinal advantage.
Cardiovascular Risk
The story of COX-2 inhibitors can’t be told without discussing the heart. In September 2004, Merck pulled rofecoxib (Vioxx) from the worldwide market after more than 80 million patients had taken the drug and annual sales had exceeded $2.5 billion. A clinical trial studying its use in colon polyp prevention found that 3.5% of patients on rofecoxib suffered a heart attack or stroke, compared to 1.9% on a placebo. The trial was stopped early, and the drug was withdrawn.
Another COX-2 inhibitor, valdecoxib (Bextra), was pulled from the market in April 2005 at the FDA’s request. That left celecoxib as the sole survivor, though it too carries a boxed warning about increased cardiovascular risk.
The underlying mechanism involves a substance called prostacyclin, which COX-2 produces in blood vessel walls. Prostacyclin helps keep blood vessels relaxed and prevents platelets from forming dangerous clots. When a COX-2 inhibitor suppresses prostacyclin production, blood pressure can rise, and platelets become more likely to clot at vulnerable spots in arteries where plaque has built up. This combination of higher blood pressure and increased clotting tendency is what drives the elevated risk of heart attacks and strokes.
Who Should Avoid COX-2 Inhibitors
Several groups of people should not take celecoxib or should use it only with careful medical oversight. People with a history of heart disease, high blood pressure, or stroke face the greatest cardiovascular concern. The American Heart Association recommends minimizing NSAID use in general, and especially in patients with cardiovascular disease. When these drugs are necessary, the guidance is straightforward: use the lowest effective dose for the shortest possible time.
Celecoxib is also off-limits if you have an allergy to sulfa-containing drugs, such as the antibiotic combination trimethoprim-sulfamethoxazole (commonly sold as Bactrim). The chemical structure of celecoxib includes a sulfonamide group that can trigger the same allergic reaction. People with impaired kidney function should also avoid or strictly limit use, since prostaglandins play a key role in maintaining blood flow to the kidneys.
Beyond Pain Relief
COX-2 overexpression has been linked to the growth of colorectal polyps and cancer, which prompted researchers to investigate whether blocking the enzyme could serve a preventive role. In a large international trial published in the New England Journal of Medicine, 400 mg of celecoxib daily significantly reduced the recurrence of colorectal polyps within three years after removal. However, the same cardiovascular risks apply, which has limited enthusiasm for widespread use as a cancer prevention strategy. This remains an area where the potential benefit has to be carefully weighed against heart risk on a case-by-case basis.

