Why Does My Head Still Hurt After Taking Medicine?

If your headache persists after taking pain medication, the most common reasons are that the medicine hasn’t had enough time to work, the dose is too low for the type of headache you have, or something in your body or environment is actively working against the medication. Less commonly, the medicine itself may be part of the problem. Here’s what’s likely going on and what you can do about it.

Your Medicine May Not Have Peaked Yet

Acetaminophen takes 30 to 45 minutes to start working and reaches its strongest effect at about 30 to 60 minutes. Ibuprofen has a similar timeline, with onset at 30 to 60 minutes. If you took a pill 15 minutes ago and your head still hurts, that’s expected. Give it a full hour before deciding it isn’t working.

How you took the medicine matters too. A full stomach slows absorption. Taking ibuprofen with a heavy meal can delay its peak effect significantly compared to taking it on an empty stomach with a full glass of water.

The Dose May Be Too Low

Many people reach for the lowest dose on the bottle, which is reasonable but not always effective. For ibuprofen and migraines, a large review of clinical trials found that 400 mg provided headache relief within two hours for about 57% of people, while 200 mg worked for about 52%. That difference was statistically significant. For complete pain freedom at two hours, 400 mg got 1 in 4 people there, while 200 mg helped about 1 in 5.

Those numbers also reveal something important: even at the right dose, over-the-counter painkillers don’t work for everyone every time. Roughly 3 out of 4 people taking ibuprofen 400 mg for a migraine still have some pain at the two-hour mark. That’s not a failure of you or the medicine. It’s simply the ceiling of what these drugs can do for certain headaches.

Migraines Slow Down Your Stomach

During a migraine, your stomach often stops moving food and liquids through at a normal pace. This is called gastric stasis, and it directly interferes with how your body absorbs oral medication. The pill sits in your stomach instead of moving into your small intestine where it gets absorbed into your bloodstream. The result: delayed peak levels in your blood and delayed relief.

This creates a frustrating cycle. Over 90% of migraine sufferers experience nausea, and nearly 70% vomit during attacks. Both limit your ability to keep medication down, which can extend the attack, which further reduces your fluid intake and worsens the situation. If you regularly vomit during migraines, a dissolving tablet, nasal spray, or non-oral treatment may be worth discussing with your provider.

You Might Be Treating the Wrong Headache

Tension headaches and migraines can feel similar in their early stages, and migraine pain sometimes starts with features that mimic a tension headache. But they respond differently to treatment. Migraines typically involve throbbing pain worsened by bending your head forward or physical activity, along with sensitivity to light, sound, and smells. Nausea and vomiting are far more common with migraines (68% vs. 6% for nausea). Tension headaches are more often triggered by stress and accompanied by tight, sore muscles in the jaw or neck.

If you’ve been treating what you assume is a tension headache with a standard painkiller and getting nowhere, you may actually be dealing with migraines. Prescription migraine medications called triptans work through a completely different mechanism. That said, even triptans don’t work for everyone: 30 to 60% of migraine patients don’t get adequate relief within two hours from a given triptan, and up to 40% of those who do respond initially have the headache return later.

Dehydration Lowers Your Pain Threshold

Dehydration doesn’t just cause headaches on its own. It also makes your brain more sensitive to pain in general. Brain imaging studies show that dehydrated people have heightened activity in the brain’s pain-processing networks and a lower threshold for pain compared to when they’re well hydrated. If you’re dehydrated while taking a painkiller, the medication is fighting against a nervous system that’s amplifying pain signals. Drinking water alongside your medication isn’t just good advice for swallowing the pill. It may directly affect whether the drug can do its job.

Caffeine: Helper and Saboteur

Caffeine has a genuine painkilling effect when combined with standard pain relievers. Doses of around 130 mg (roughly one strong cup of coffee) enhance the effectiveness of over-the-counter painkillers for both tension headaches and migraines. Some combination products already include caffeine for this reason.

The flip side is caffeine withdrawal. If you regularly consume 200 mg or more of caffeine daily (about two cups of coffee), skipping your usual intake can trigger a withdrawal headache. Symptoms have been observed after stopping as little as 100 mg daily for just seven days. So if your headache hit on a morning you skipped coffee, the painkiller may be fighting a withdrawal process that won’t resolve until you either have caffeine or wait it out. This is one of the most overlooked reasons medicine “doesn’t work.”

Light and Noise Can Sustain the Pain

About 38% of migraine attacks are triggered or worsened by light. Blue light, particularly the wavelength around 480 nm emitted by screens and LED lighting, is especially problematic. It can cause discomfort in migraine sufferers even at low brightness levels. One clinical study found that blue-light-filtering glasses reduced both the number of headache days and the overall intensity of migraines, independent of medication use. If you take a pill and then continue staring at your laptop in a bright room, your environment may be sustaining the very pain you’re trying to treat.

Taking Medicine Too Often Causes More Headaches

This is the one most people don’t expect. Using painkillers on 15 or more days per month for simple analgesics, or 10 or more days per month for combination painkillers, triptans, or opioids, can cause a condition called medication overuse headache. It develops over three or more months of frequent use and creates a cycle where the headache keeps returning as each dose wears off, prompting you to take more medicine, which makes the problem worse.

If you’ve noticed your headaches becoming more frequent over time and you’re reaching for pain relief most days of the week, overuse is a real possibility. The treatment is counterintuitive: reducing or stopping the medication, usually with medical guidance, since the withdrawal period can temporarily worsen headaches before they improve.

Red Flags That Need Immediate Attention

Most persistent headaches are frustrating but not dangerous. However, certain features signal something more serious. Seek emergency care if your headache came on suddenly and severely (often described as the worst headache of your life), is accompanied by fever, confusion, vision changes, weakness on one side of your body, or a stiff neck. A headache that started after a head injury, one that’s progressively worsening over days or weeks, or a new type of headache starting after age 65 also warrants prompt evaluation. In these cases, the issue isn’t that your medicine failed. It’s that the headache itself needs a different kind of attention.