COX-2 inhibitors are a type of anti-inflammatory painkiller designed to reduce pain and swelling while causing fewer stomach problems than older options like ibuprofen or naproxen. They work by targeting only one of the two enzymes responsible for producing inflammatory chemicals in your body, leaving the other enzyme free to do its protective work in the stomach lining and elsewhere. Celecoxib is the most widely used COX-2 inhibitor available today.
How COX-2 Inhibitors Work
Your body contains two versions of an enzyme called cyclooxygenase: COX-1 and COX-2. Both convert a fatty acid in your cells into prostaglandins, which are chemical messengers with very different jobs depending on which enzyme made them.
COX-1 runs constantly in healthy tissue. It produces prostaglandins that protect the stomach lining from acid, help your kidneys regulate blood flow, and enable platelets to form blood clots when you’re injured. Think of COX-1 as the maintenance crew keeping everyday functions running smoothly.
COX-2, by contrast, is mostly switched on in response to injury or infection. When tissue is damaged, immune cells ramp up COX-2 production, flooding the area with prostaglandins that trigger pain, swelling, and fever. Some COX-2 is always active in the brain, where it plays a role in pain signaling.
Traditional painkillers like ibuprofen and naproxen block both enzymes at once. That’s effective for pain, but shutting down COX-1 strips the stomach of its protective mucus layer and interferes with normal blood clotting. COX-2 inhibitors were specifically shaped to fit into the COX-2 enzyme while leaving COX-1 alone. The COX-2 enzyme has a binding channel that’s about 20% larger than COX-1’s, with an extra side pocket that COX-1 doesn’t expose. COX-2 inhibitors are built to slip into that pocket, which is why they can be selective.
What COX-2 Inhibitors Treat
COX-2 inhibitors are approved for mild to moderate pain and inflammation from a range of conditions:
- Osteoarthritis
- Rheumatoid arthritis
- Juvenile arthritis
- Ankylosing spondylitis (inflammatory spinal arthritis)
- Menstrual pain
- Short-term pain from injuries or surgery
- Familial adenomatous polyposis (a precancerous colon condition)
Some prescribers also use them for gout flares or migraines, though these are off-label uses.
Which Medications Are Available
Celecoxib is the only COX-2 inhibitor widely available in the United States. It comes as an oral capsule, with typical doses of 200 mg once daily for osteoarthritis and 100 to 200 mg twice daily for rheumatoid arthritis. For acute pain or menstrual cramps, the first dose is usually 400 mg, followed by 200 mg as needed.
Etoricoxib is available in many countries outside the U.S. but has not received FDA approval. Two earlier COX-2 inhibitors, rofecoxib and valdecoxib, were pulled from the market in 2004 and 2005 after evidence linked them to increased heart attack and stroke risk.
The Stomach Advantage
The main reason COX-2 inhibitors exist is to spare the stomach. Traditional NSAIDs are a leading cause of stomach ulcers, especially with long-term use, because they suppress the COX-1 enzyme that keeps the stomach’s protective mucus layer intact.
In a controlled trial comparing celecoxib to over-the-counter-strength ibuprofen, only 2.6% of people taking celecoxib developed stomach ulcers on endoscopy, compared to 17.9% of those taking ibuprofen. That’s roughly a sevenfold difference. Naproxen showed similarly elevated ulcer rates compared to placebo. For people who need daily anti-inflammatory medication for months or years, particularly older adults or anyone with a history of stomach problems, this gap matters.
Cardiovascular Risk
After rofecoxib was withdrawn, the entire class came under scrutiny for heart safety. The largest trial to address this, called PRECISION, enrolled over 24,000 arthritis patients and followed them for an average of about 20 months. The results, published in the New England Journal of Medicine, found that celecoxib at moderate doses was no worse than ibuprofen or naproxen for the combined risk of cardiovascular death, heart attack, or stroke. Celecoxib actually trended toward fewer cardiovascular events than ibuprofen, though the difference wasn’t statistically significant.
That said, all non-aspirin anti-inflammatory drugs carry some cardiovascular risk. The risk is small in people without heart disease but rises in those with pre-existing cardiovascular conditions. If you’ve had coronary artery bypass surgery, COX-2 inhibitors (and NSAIDs generally) are contraindicated.
Who Should Avoid Them
Beyond the post-bypass restriction, COX-2 inhibitors should be avoided if you have significant kidney disease, low blood volume from dehydration or blood loss, or chronically low blood pressure. All prostaglandin-blocking drugs can reduce blood flow to the kidneys, so existing kidney impairment makes this effect more dangerous.
People with a known allergy to sulfonamides should tell their prescriber before starting celecoxib, since the drug contains a sulfonamide group. Anyone who has had an allergic reaction to aspirin or another NSAID, particularly hives, swelling, or asthma symptoms, should also avoid COX-2 inhibitors.
How They Compare to Regular NSAIDs
In terms of pain relief, COX-2 inhibitors are roughly equivalent to traditional NSAIDs. Inhibiting COX-2 alone is sufficient to achieve the same anti-inflammatory and pain-reducing effect as blocking both enzymes. The difference is in the side-effect profile, not the effectiveness.
Where COX-2 inhibitors clearly win is gastrointestinal safety. Where they don’t have an advantage is cardiovascular risk, which appears similar across all NSAIDs at typical doses. Because of this tradeoff, prescribers generally reserve COX-2 inhibitors for people who are at higher risk of stomach bleeding but lower risk of heart disease. Someone with osteoarthritis who has had a previous stomach ulcer, for example, is a classic candidate. Someone with a history of heart attack would likely be steered toward other pain management strategies altogether.
COX-2 inhibitors also don’t affect platelet function the way traditional NSAIDs do. Since platelets only contain COX-1, a selective COX-2 blocker won’t thin your blood. This is an advantage if you’re at risk of bleeding, but it also means celecoxib can’t substitute for aspirin if you need antiplatelet protection.

