Saturday, November 21, 2026Sat, Nov 21

Moon: waxing gibbous, 91% litAurora: quiet

Español

Space, Earth and the natural world, explained.

How Painkillers Work: Ibuprofen, Acetaminophen and Opioids

Ibuprofen blocks COX enzymes, acetaminophen acts mainly in the brain, and opioids bind receptors. See how each works, plus risks and when to call a doctor.

From above set of small round pink pills packed in blisters on top of each other on yellow surface
Photo: kaboompics / Pexels

Ibuprofen lowers pain by blocking enzymes called COX-1 and COX-2, which make the prostaglandin chemicals that cause swelling and sensitize nerves. Acetaminophen (called paracetamol in the UK) works mainly in the brain and spinal cord and does little against inflammation, and its exact mechanism is still not fully settled. Opioids such as morphine and oxycodone attach to opioid receptors on nerve cells and turn down pain signals directly. Each drug has different risks, so the right choice depends on the type of pain and on your health.

How does ibuprofen relieve pain?

Ibuprofen is a nonsteroidal anti-inflammatory drug, or NSAID. Damaged tissue releases prostaglandins, fatty chemicals that make nerve endings more sensitive, widen blood vessels and cause swelling and fever. Ibuprofen blocks the COX enzymes that build prostaglandins, so less of them reach the injured area. That is why it helps with sprains, dental pain, menstrual cramps and fever.

The same enzymes also protect the stomach lining and help the kidneys regulate blood flow. Blocking them can cause stomach irritation, ulcers and bleeding, and it can strain the kidneys, especially in older adults, people who are dehydrated and people taking certain blood pressure drugs. Aspirin, naproxen and diclofenac belong to the same family and share these risks. Taking an NSAID with food reduces stomach upset.

How does acetaminophen work?

Acetaminophen reduces pain and fever, but it does not reduce swelling the way NSAIDs do. Researchers believe it acts in the central nervous system, probably by affecting COX activity there and by influencing pathways that carry pain signals down from the brain. The details are still being studied, which makes it an unusual case: a drug used for decades whose full mechanism is not settled.

Because it does not block prostaglandins in the stomach, acetaminophen is gentler on the digestive tract. Its main danger is the liver. The liver converts a small share of each dose into a toxic by-product and neutralizes it with a protective molecule called glutathione. In an overdose, the liver runs out of glutathione and the by-product damages liver cells. Many cold, flu and prescription products also contain acetaminophen, so it is easy to take more than intended without noticing. Check labels and follow the dosing limits printed on the package or given by a pharmacist.

How do opioids work?

Opioids bind to mu opioid receptors, protein switches found on neurons in the brain, spinal cord and gut. When an opioid attaches, the nerve cell fires less often and releases fewer pain-signaling chemicals. The brain also registers pain as less distressing. The body makes its own opioid-like molecules, called endorphins, that fit the same receptors. Drugs such as morphine, codeine, oxycodone and fentanyl are stronger or longer-lasting mimics.

The same receptors sit in the brainstem area that controls breathing, which is why too high a dose slows or stops breathing. Receptors in the gut cause constipation, and receptors in reward pathways produce a feeling of pleasure that can lead to misuse and dependence. With repeated use the body adapts: the same dose works less well (tolerance), and stopping suddenly can cause withdrawal. Opioids are prescription drugs for severe pain, for example after surgery or injury, and are taken under a clinician’s direction. Naloxone is the medicine that can reverse an opioid overdose, and emergency services should be called for any suspected overdose.

Why do different painkillers suit different pain?

Pain has different sources, and each drug targets a different step. Inflammatory pain, such as a swollen ankle or a toothache, often responds well to an NSAID because prostaglandins drive it. Fever and mild headaches often respond to acetaminophen. Severe pain that the first two cannot control is where opioids come in. Nerve pain, the burning or shooting kind, usually responds poorly to all three and is often treated with other drug classes chosen by a doctor.

  • Ibuprofen and other NSAIDs: pain with inflammation, fever, cramps. Main risks are stomach, kidney and heart effects.
  • Acetaminophen: pain and fever without much anti-inflammatory effect. Main risk is liver injury above the recommended dose.
  • Opioids: severe pain. Main risks are slowed breathing, dependence and constipation.

Can you take painkillers together?

Ibuprofen and acetaminophen work by different routes and are commonly used together or alternated, which is standard advice on many labels and from pharmacists. Two NSAIDs at once, such as ibuprofen with aspirin or naproxen, add risk without extra benefit. Combining opioids with alcohol, sleeping pills or anti-anxiety drugs raises the chance of dangerous sedation. Pregnant people, children, older adults and anyone with liver, kidney, stomach or heart conditions should ask a doctor or pharmacist before choosing. The U.S. Food and Drug Administration and MedlinePlus publish drug labels and plain-language guides for each medicine.

Pain involves more than one chemical. Caffeine, for instance, acts on a different brain system, as described in how caffeine works in the brain, and the cold-triggered headache covered in what causes brain freeze is a short-lived nerve effect that painkillers are rarely used for.

When should you see a doctor about pain?

Seek medical care if pain is severe, follows an injury, lasts longer than the label says an over-the-counter drug should be used, or comes with fever, chest pain, shortness of breath, black stools or vomiting blood. Use the lowest dose that works for the shortest time. Never use a painkiller prescribed to someone else.

Common questions

Which is safer, ibuprofen or acetaminophen?

Neither is safer in every case. Acetaminophen is easier on the stomach and kidneys but can damage the liver in overdose. Ibuprofen can irritate the stomach and strain the kidneys but is safe for the liver at normal doses.

Why does acetaminophen not reduce swelling?

It has little effect on COX enzymes in inflamed tissue outside the nervous system, so prostaglandins in a swollen joint are not much reduced. Its effect is mainly on how the brain and spinal cord handle pain and temperature.

Why are opioids addictive?

They activate reward pathways in the brain along with pain pathways. With repeated use the brain adapts, which produces tolerance and withdrawal symptoms when the drug stops.

Site editor: Nikita Sheikin

Prepared by The Science Beat with AI-assisted drafting and automated fact checks — see our editorial policy. Spotted an error? Tell us.