A painkiller, or analgesic, is any medication that reduces or blocks pain signals in your body. Painkillers range from over-the-counter tablets like ibuprofen and acetaminophen to prescription opioids used for severe pain. They work through different biological mechanisms depending on their class, and choosing the right one depends on the type and intensity of pain you’re dealing with.
How Painkillers Block Pain
Pain starts when nerve endings detect damage or inflammation and send electrical signals up through the spinal cord to the brain. Painkillers interrupt this chain at different points. Some work at the site of injury by reducing the chemicals that trigger pain signals in the first place. Others act in the spinal cord or brain itself, turning down the volume on incoming signals or activating the body’s own pain-suppressing pathways.
The specific mechanism varies by drug class. Anti-inflammatory painkillers block an enzyme that produces prostaglandins, the chemicals responsible for swelling, pain, and fever at an injury site. Opioids bind to receptors in the brain and spinal cord, reducing how excitable nerve cells are so fewer pain signals get transmitted. Some medications originally developed for depression or seizures also work as painkillers by strengthening the brain’s natural descending pathways that suppress pain signals before they fully register.
Non-Opioid Painkillers
Most everyday pain relief comes from two categories: acetaminophen and NSAIDs (nonsteroidal anti-inflammatory drugs). These are the first-line options for mild to moderate pain.
NSAIDs
NSAIDs include ibuprofen, naproxen, aspirin, and diclofenac. They work by inhibiting the COX-2 enzyme, which ramps up during inflammation and drives the production of prostaglandins. By cutting prostaglandin levels, NSAIDs reduce swelling, pain, and fever all at once. That makes them particularly effective for pain that involves inflammation: a sprained ankle, menstrual cramps, arthritis, or a tension headache.
The tradeoff is that prostaglandins also protect the stomach lining and support kidney function. Short-term NSAID use can cause stomach upset, while longer use raises the risk of gastrointestinal bleeding. All non-aspirin NSAIDs carry an FDA warning about increased risk of heart attack or stroke, which can occur as early as the first weeks of use. They can also raise blood pressure and interfere with some blood pressure medications.
Aspirin is a special case. It thins the blood by inhibiting clot formation, which is why low-dose aspirin was once widely recommended for heart attack prevention. Current guidance from the U.S. Preventive Services Task Force suggests the bleeding risks, particularly in the brain, intestines, and stomach, don’t always outweigh the benefits, especially as people age. Aspirin should also not be given to children with flu or chickenpox. The Surgeon General and the American Academy of Pediatrics have advised against it due to the association with Reye syndrome, a rare but serious condition affecting the brain and liver, most commonly in children ages 5 to 16.
Acetaminophen
Acetaminophen (sold as Tylenol in the U.S. and paracetamol elsewhere) relieves pain and reduces fever but does not reduce inflammation. Its exact mechanism isn’t fully understood, though it appears to act centrally in the brain rather than at the injury site. Because it skips the prostaglandin pathway in peripheral tissues, it doesn’t cause the stomach or cardiovascular problems associated with NSAIDs. That’s why it has historically been recommended for people with high blood pressure or a history of stomach issues.
The primary risk with acetaminophen is liver damage. The FDA sets the current maximum adult dose at 4,000 milligrams per day across all products you’re taking, and many combination cold or flu medications contain acetaminophen, making it easy to accidentally exceed that limit. Overdose symptoms include nausea, vomiting, abdominal pain, confusion, and jaundice. Severe cases can require a liver transplant or be fatal. People with liver disease or those who drink three or more alcoholic beverages a day face higher risk.
Opioid Painkillers
Opioids are the strongest class of painkillers and are used for severe pain, such as after major surgery, serious injury, or in cancer treatment. Common examples include morphine, oxycodone, fentanyl, and hydrocodone. They are structurally related to compounds found in the opium poppy.
These drugs bind to mu-opioid receptors in the brain and spinal cord. When an opioid molecule locks onto a receptor, it triggers a chain of events inside the nerve cell: calcium channels close, potassium channels open, and the cell becomes much less excitable. The result is a powerful dampening of pain signal transmission. This is also why opioids can produce feelings of euphoria, since these same receptors are involved in the brain’s reward system.
The serious downsides include respiratory depression (slowed breathing, which is the primary cause of overdose deaths), constipation, immune suppression, and tolerance. Tolerance means your body adapts to the drug over time, requiring higher doses for the same effect. Higher doses bring more side effects, including greater risk of breathing problems. This cycle is a key driver of opioid dependence and misuse. Because of these risks, opioids are tightly regulated and typically reserved for pain that doesn’t respond to other options.
Topical Painkillers
When pain is localized to a specific area, topical painkillers applied directly to the skin can be surprisingly effective while largely avoiding the side effects of oral medications. Topical diclofenac gel, for instance, delivers anti-inflammatory relief to a sore knee or joint, but plasma concentrations of the drug are roughly 17 times lower than with an oral dose, and peak blood levels are about 150 times lower. In studies, only the oral form caused gastrointestinal side effects.
Lidocaine patches numb a specific area by blocking nerve signals locally. Only about 3% of the applied dose reaches the bloodstream, which minimizes systemic risk. Capsaicin cream, derived from chili peppers, works differently: it depletes a chemical messenger in nerve endings that transmits pain, providing gradual relief with repeated use. Topical options are especially useful for people who can’t tolerate oral medications due to stomach problems, difficulty swallowing, or concerns about drug interactions.
Other Medications Used for Pain
Several drugs not traditionally thought of as painkillers are effective for certain types of pain, particularly nerve pain. Gabapentin and pregabalin, originally developed for seizures, work by calming overactive nerve signaling in the spinal cord and sensory neurons. They’re commonly prescribed for conditions like diabetic neuropathy and postherpetic neuralgia, where standard painkillers often fall short.
Certain antidepressants, particularly duloxetine and amitriptyline, also treat chronic pain. They work by boosting the activity of the brain’s descending pain-control pathways, essentially restoring a natural braking system that tamps down pain signals in the spinal cord. These aren’t prescribed because pain is “in your head.” The pathways they target are a real, measurable part of how the nervous system regulates pain.
How Pain Severity Guides Treatment
The World Health Organization created a stepwise framework in 1986 that still shapes how pain is treated today. For mild pain, the first step is a non-opioid like acetaminophen or an NSAID. If pain is moderate and doesn’t respond, the second step adds a weaker opioid such as codeine or tramadol, often combined with a non-opioid. For severe or persistent pain, the third step moves to stronger opioids like morphine, fentanyl, or oxycodone.
A fourth step was later added, incorporating non-drug approaches: nerve blocks, physical therapy, and other procedures for pain that persists despite medication. The framework also works in reverse for acute pain. After surgery, for example, you might start with strong pain relief and step down as healing progresses. The core principles are straightforward: take medications on a regular schedule rather than waiting for pain to become unbearable, use oral forms when possible, and match the strength of the painkiller to the intensity of the pain.

