The Science of Pain: Why the Body Hurts and How Painkillers Switch It Off - docpk health

Stub your toe and the hurt feels like it lives in the toe. It does not. The toe sends a message, but the feeling of pain is assembled somewhere else entirely, inside your skull, milliseconds later. That gap between the injury and the experience is the single most useful thing to understand about pain, because it explains why two people with identical injuries can suffer very differently, and it explains exactly how painkillers work when they switch the hurt off. Once you see where pain is built, the whole thing stops being a mystery and becomes a map.

If you have ever wondered how painkillers work without just being told to take two tablets, this is the explanation. This is a tour of the whole system. First how the body detects and constructs pain, then why some pain refuses to leave after the wound has healed, and finally how each main painkiller interrupts the process by a completely different route. Knowing the route matters. It is the difference between taking the right tablet for the right pain and taking three of the wrong ones for a week.

Quick answer

  • Pain is built by the brain, not read off the injury, so mood, focus and fear change how much it hurts.
  • Each painkiller class blocks a different point on the pathway: NSAIDs at the site, paracetamol centrally, opioids at brain receptors, local anaesthetics at the nerve wire.
  • Acute pain protects you and fades; chronic pain can persist because the nervous system becomes oversensitive (central sensitization).
  • Movement, heat, sleep and talk therapy change real pain biology, and rubbing a sore spot works for a reason science can explain.

How the body detects damage

Your skin, muscles, joints, and organs are wired with millions of specialised nerve endings called nociceptors. These are not general touch sensors. They stay quiet until something crosses a threshold: a cut, a burn above roughly 43 degrees Celsius, a crushing pressure, or the acid and inflammatory chemicals that leak out of injured tissue. When that happens, the nociceptor fires an electrical signal.

Nociceptors are damage alarms, not pain sensors

The distinction sounds pedantic but it changes everything. A nociceptor reports tissue threat. It does not produce pain on its own. The signal it sends still has to travel, get processed, and be interpreted before any hurt is felt. According to the International Association for the Study of Pain, pain is best defined as an unpleasant sensory and emotional experience associated with, or resembling that associated with, actual or potential tissue damage. Read that carefully. The official definition separates the damage from the experience on purpose.

The signal climbs the spinal cord

The electrical message races up the nerve to the dorsal horn of the spinal cord, the first big switchboard. Here it can be amplified, dampened, or rerouted before it ever reaches the brain. Fast fibres carry the sharp, immediate sting. Slower fibres carry the dull, lingering ache that arrives a second later. That two-speed system is why a stubbed toe gives you an instant jolt and then a throb.

Pain is built by the brain

The signal finally reaches the brain, and this is where pain is actually made. There is no single pain centre. Instead a network lights up: areas that locate the sensation, areas that judge how threatening it is, and areas tied to emotion and memory. The brain weighs all of it and then produces an output, the feeling you call pain. Cleveland Clinic describes pain as the brain’s interpretation of these signals rather than a direct readout from the body.

That word, interpretation, is the key. The brain is not a passive screen showing whatever the nerves send. It is an active editor. It compares the incoming signal against past injuries, against what you expect, against how dangerous the situation looks, and only then decides how loud to make the alarm. Phantom limb pain proves the point in the starkest way: people feel vivid pain in a leg that was amputated years ago, because the pain map in the brain is still there even when the limb is not. No nociceptor is firing, yet the pain is completely real.

Pain is not a measurement taken at the wound. It is a decision the brain makes about how much danger you are in.

This construction step is also the reason how painkillers work depends so heavily on where they act, a point that becomes obvious once we reach the drug classes. Because pain is constructed, it can be cranked up or down by things that have nothing to do with the injury. A soldier can fight on with a serious wound and feel little until the danger passes. An anxious patient can feel a routine blood draw as agony. Same nerves, different output. This is not weakness or imagination. It is how the wiring genuinely works.

Why attention, mood, and fear change the dial

Expectation is powerful enough to be measured. In placebo studies, people given a dummy painkiller they believe is real often report genuine relief, and brain scans show their own opioid systems switching on. The reverse, called the nocebo effect, makes pain worse when someone expects harm. Sleep loss, depression, and stress all lower the threshold, which is one reason a bad night makes every ache louder. If you want the deeper story on how rest resets the body, our piece on what happens to your body in sleep covers it.

3 months
how long pain must last to count as chronic
1965
year gate-control theory was proposed
43°C
heat threshold that triggers nociceptors

Acute pain versus chronic pain

Not all pain is the same kind of problem. The most important split is by time and purpose.

Acute pain is the useful kind

Acute pain is the body doing its job. You touch a hot pan, you pull back before you think. The pain forces you to protect a sprained ankle so it can heal. It has a clear cause, it tracks the injury, and it fades as the tissue repairs. This is pain working exactly as designed. Repair and pain run on the same clock, and as the wound closes the alarm winds down.

Chronic pain when the alarm will not switch off

Chronic pain is usually defined as pain lasting more than three months, often well past the point where any injury has healed. Here the pain has stopped being a useful messenger. It is now a malfunction of the alarm itself. The NHS notes that persistent pain is extremely common and frequently has no single fixable cause in the tissue, which frustrates patients who keep expecting a scan to find the answer.

Central sensitization explained simply

The mechanism behind much chronic pain is central sensitization. After a long barrage of pain signals, the spinal cord and brain turn up their own gain, like a microphone with the volume cranked so high it screeches at the faintest sound. Now gentle touch can feel painful, and the pain can spread beyond the original site. The nervous system has, in effect, learned to be in pain. This is why treating long-term pain is rarely as simple as numbing one spot, and it is the same sensitisation logic that drives many headaches and migraines.

Two terms describe what this feels like in daily life. Allodynia is pain from something that should not hurt at all, like the weight of a bedsheet on skin or a light touch on the arm. Hyperalgesia is when something mildly painful feels far worse than it should. Both are signs the volume knob has been turned up in the nervous system rather than the tissue. Conditions like fibromyalgia, long-standing back pain, and many cases of irritable bowel are now understood partly through this lens. The injury, if there ever was one, is long gone. The amplifier is the problem. That is also why throwing stronger and stronger painkillers at chronic pain so often disappoints: the drugs aim at tissue and signal, while the real fault is in how the brain and cord are processing them.

FeatureAcute painChronic pain
PurposeProtective alarm that drives you to avoid harmNo longer useful; the alarm itself has malfunctioned
DurationTracks the injury, fades as tissue healsLasts more than three months, often past any healing
Cause in the tissueClear, matches the damageOften none findable on a scan
Main mechanismNociceptors firing at a real threatCentral sensitization, the nervous system stuck on high gain
What helps mostShort-course painkillers matched to the causeMovement, sleep, stress control, pain-focused therapy

How painkillers work, class by class

Now the practical part. To understand how painkillers work, hold one idea in your head: every common painkiller interrupts the pain pathway, but each one attacks a different link in the chain. Match the drug to the link and you get relief. Mismatch it and you get side effects with little benefit.

NSAIDs block COX enzymes at the source

NSAIDs (non-steroidal anti-inflammatory drugs) include ibuprofen, diclofenac, naproxen, and aspirin. When tissue is damaged it produces prostaglandins, chemical messengers that both inflame the area and make nociceptors fire more easily. NSAIDs block the COX enzymes (cyclooxygenase) that manufacture prostaglandins, so the local fire is dampened right where it started. That makes them genuinely good for inflammatory pain: sprains, period cramps, dental pain, arthritis flares.

The catch is that prostaglandins also protect the stomach lining and help the kidneys regulate blood flow. Block them everywhere and you risk stomach ulcers and bleeding, and you stress the kidneys. The NHS warns against long courses of NSAIDs without medical advice, especially for older people or anyone with kidney, heart, or stomach problems.

There are actually two COX enzymes. COX-1 keeps the stomach and platelets running normally, while COX-2 is the one that ramps up during inflammation. Older NSAIDs block both, which is why they ease pain but also irritate the gut. Aspirin is the special case: by blocking platelet COX-1 for the life of the platelet, low-dose aspirin thins the blood, which is why it is used to protect the heart rather than just for pain. None of this makes NSAIDs bad. It makes them powerful tools that need respect. Taking them with food, using the lowest dose that works, and not running them for weeks on end covers most of the risk for a healthy adult.

Paracetamol works in the brain, mechanism still debated

Paracetamol (acetaminophen, sold as Panadol) is the odd one out. It brings down pain and fever well, but it does almost nothing for inflammation, which tells you it is not really an NSAID at all. It seems to act centrally, in the brain and spinal cord, on pathways that are still not fully pinned down even after decades of use. We tell the full surprising backstory in the story of Panadol and paracetamol.

What is not debated is its danger at high doses. Paracetamol is gentle on the stomach, which makes it the first choice for many, but too much of it poisons the liver, and the toxic dose is not far above the normal one. Never stack it on top of a combination cold remedy that already contains it.

Opioids flood receptors in the brain and cord

Opioids include tramadol, codeine, and morphine. They mimic the body’s own painkilling chemicals (endorphins) by locking onto opioid receptors in the brain and spinal cord, where they powerfully turn down both the signal and the emotional sting of pain. For severe pain, surgery, cancer, major trauma, nothing else comes close.

The same reward circuitry that dulls pain also produces euphoria and, with repeated use, tolerance and dependence. This is the engine of the addiction crisis, and it runs on the brain’s dopamine reward system, the same one we unpack in dopamine and addiction. Opioids belong under a doctor’s supervision, never casually.

Tolerance is the part people underestimate. The body adapts to opioids, so the same dose does less over time, and the dose creeps up to chase the original relief. At high doses opioids also slow breathing, which is how an overdose kills. Tramadol, widely available in Pakistan and often treated as a mild option, is still a genuine opioid with real dependence risk, and it interacts dangerously with some antidepressants. The lesson is not fear. It is that these are the heavy machinery of pain relief, brilliant for the situations that need them and wrong for a routine backache.

Local anaesthetics shut the wire itself

Local anaesthetics like lidocaine take a more direct approach. Nerve signals travel as a wave of sodium ions rushing into the nerve. Local anaesthetics block the sodium channels, so the wave cannot form and the message physically cannot leave the area. That is why a dental injection makes a whole region go numb. No signal leaves, no pain arrives. The block is local and temporary.

Adjuvants retune nerves for nerve pain

Some pain comes from damaged nerves themselves (neuropathic pain): the burning of diabetic nerve damage, sciatica, shingles pain. Ordinary painkillers often fail here. Instead doctors use adjuvants, drugs originally made for other jobs. Certain antidepressants (like amitriptyline) and anti-seizure drugs (like gabapentin and pregabalin) calm overexcited nerves and are first-line for many neuropathic conditions. South Asians carry a heavy diabetes burden, so this kind of nerve pain is common locally, and reaching for ordinary painkillers for it usually wastes both the dose and the patience.

Painkiller classHow it worksBest forMain cautions
NSAIDs (ibuprofen, diclofenac, aspirin)Block COX enzymes and prostaglandins at the injury siteInflammatory pain: sprains, cramps, arthritis, dental painStomach ulcers, bleeding, kidney strain; risky for heart and asthma patients
Paracetamol (acetaminophen / Panadol)Acts centrally in the brain; mechanism still debatedGeneral pain and fever; gentle on the stomachLiver damage in overdose; easy to double-dose via combo cold remedies
Opioids (tramadol, codeine, morphine)Bind opioid receptors in brain and spinal cordSevere acute pain, surgery, trauma, cancer painTolerance, dependence, addiction, breathing suppression; doctor-only
Local anaesthetics (lidocaine)Block sodium channels so the nerve signal cannot fireDental work, minor procedures, targeted numbingLocal and short-lived; must be administered correctly
Adjuvants (amitriptyline, gabapentin, pregabalin)Calm overexcited damaged nervesNerve pain: diabetic neuropathy, sciatica, shinglesDrowsiness, dizziness; need titration under a doctor

When to see a doctor: get medical help for pain that is severe or steadily worsening, pain lasting more than a couple of weeks with no clear cause, any pain with fever, new weakness, numbness, or after a serious injury. Never use opioids without a prescription, and never silence sudden chest pain or the worst headache of your life with a painkiller.

The gate-control theory and why rubbing helps

Press your hand on a fresh bump and it eases. You knew that as a child without knowing why. The why is one of the most influential ideas in pain science.

The spinal cord has a gate

In 1965 Ronald Melzack and Patrick Wall proposed gate-control theory: the dorsal horn of the spinal cord acts like a gate that can let pain signals through or hold them back. Crucially, ordinary touch and pressure signals travel on faster fibres than pain. Flood the gate with touch and it has less room to pass the slower pain traffic.

So when you rub a knock, the touch signals crowd the gate and physically reduce how much pain reaches the brain. The same principle explains why a cold pack or a TENS machine (which delivers a mild electrical buzz to the skin) can dull pain. They are all gaming the gate. It is real neurology, not distraction.

Gate-control theory also gave science a second insight: the gate is not only controlled from below by touch. The brain can reach down and open or close it from above. When you are calm, absorbed, or reassured, the brain sends signals that help close the gate. When you are anxious and bracing for pain, it can hold the gate wide open. That top-down control is the bridge between the psychology of pain and its plumbing, and it is why the non-drug methods further down this article are not wishful thinking.

Pain relief without drugs that actually works

Drugs are one lever. They are often not the strongest one for long-term pain, where the best evidence points elsewhere.

Movement beats rest for most lasting pain

For chronic back pain in particular, prolonged rest tends to make things worse, while graded activity tends to help. Harvard Health and the NHS both put movement and exercise near the top of the list for persistent musculoskeletal pain. The body that keeps moving keeps its pain dial lower.

Heat relaxes muscle and improves blood flow, which is why a hot water bottle on period cramps or a stiff back genuinely helps. Sleep is underrated: poor sleep amplifies pain, and fixing it can lower pain on its own. Lowering chronic stress matters too, because stress hormones keep the nervous system primed and the gate held open.

Why therapy changes physical pain

Because the brain builds pain, retraining the brain can reduce it. Cognitive behavioural therapy (CBT) and pain-education programmes have solid evidence for chronic pain, not by pretending the pain is fake but by changing how the nervous system processes it. This is mainstream pain medicine now, not fringe advice. A review on PubMed Central sets out the evidence for psychological approaches to chronic pain.

Using painkillers safely

Knowing how painkillers work is only half the job. Using them well is the other half, and a few rules prevent most of the harm that over-the-counter drugs cause.

Read the label and avoid hidden doubles

The biggest everyday danger is accidental overdose from stacking. Many flu and cold remedies already contain paracetamol, so adding a separate Panadol can push you over the safe limit without you noticing. Always check the active ingredients before combining anything.

Stick to the stated dose and the shortest useful course. NSAIDs in particular are not meant for weeks of daily use without a doctor. Pregnant women, older adults, and anyone with kidney, liver, heart, stomach, or asthma conditions should ask a pharmacist or doctor before regular use. In Pakistan many strong painkillers are sold across the counter without much guidance, which makes self-education the real safety net.

Smart painkiller use

  • Match the drug to the pain type
  • Read active ingredients before combining
  • Lowest dose, shortest course
  • Ask a pharmacist if you have a chronic condition

Risky painkiller use

  • Stacking two paracetamol products at once
  • Daily NSAIDs for weeks with no advice
  • Buying tramadol without a prescription
  • Masking sudden severe pain instead of getting checked

When pain is a warning, not a nuisance

Some pain is a signal you must not silence with a tablet. Sudden severe chest pain, a thunderclap headache, pain with weakness or numbness, abdominal pain with fever, or any pain after a serious injury needs assessment, not just analgesia. Masking those with a painkiller can hide an emergency.

The right painkiller is the one that blocks the right link in the chain. Everything else is guesswork with side effects.

Frequently asked questions

What is the actual difference between paracetamol and ibuprofen?

The clearest way to see how painkillers work is to compare these two. Ibuprofen is an NSAID. It blocks COX enzymes at the injury site and reduces inflammation, so it suits sprains, swelling, and period cramps, but it can upset the stomach and kidneys. Paracetamol works centrally in the brain, eases pain and fever, and has no real anti-inflammatory effect. It is gentler on the stomach but harmful to the liver in overdose.

Why does pain sometimes continue after the injury has healed?

This is usually central sensitization. After long or intense pain, the spinal cord and brain turn up their own sensitivity, so the nervous system keeps producing pain even when the original tissue damage is gone. The alarm has become the problem. It is real, not imagined, and it responds better to movement, sleep, and pain-focused therapy than to stronger painkillers.

Is it safe to take paracetamol and ibuprofen together?

For short periods many adults can alternate or combine them safely because they work by different mechanisms, and doctors sometimes recommend exactly this. The danger is dose, not the pairing itself. Never exceed the daily limit of either, and check that no cold or flu remedy you are taking already contains paracetamol. If in doubt, ask a pharmacist.

Why does rubbing a painful spot make it feel better?

Gate-control theory explains it. Touch and pressure signals travel on faster nerve fibres than pain signals. When you rub the area, those touch signals crowd the spinal cord gate and reduce how much pain traffic gets through to the brain. Cold packs and TENS machines use the same trick, which is why they soothe pain without any drug.

Are opioids like tramadol and morphine ever a good idea?

Yes, for the right pain. For severe acute pain, surgery, major trauma, and cancer pain, opioids are powerful and appropriate under medical supervision. The problem is using them for ordinary or long-term pain, where the risk of tolerance and dependence outweighs the benefit. They act on the brain’s reward circuits, which is exactly why they can become addictive.

Can stress and lack of sleep really make pain worse?

Yes, and the effect is measurable. Because the brain constructs pain, poor sleep, anxiety, and chronic stress all lower the pain threshold and amplify the output. A bad night genuinely makes the same ache feel sharper. This works both ways, so improving sleep and reducing stress can meaningfully lower chronic pain without adding any medication.

What pain should send me to a doctor instead of the medicine cabinet?

Sudden severe chest pain, the worst headache of your life, pain with new weakness or numbness, belly pain with fever, or significant pain after a serious injury. These can signal emergencies, and a painkiller would only mask them. Pain that is steadily worsening, or that lasts beyond a couple of weeks without explanation, also deserves a proper assessment.

Knowing how a painkiller works is the first step to using it safely. This article is for general education and is not medical advice. For diagnosis or treatment, see a qualified doctor.

docpk helps Pakistani doctors send digital prescriptions to patients on WhatsApp. See how docpk works or read more on the docpk blog.