What actually works to stop a headache or migraine

The fastest relief usually comes from over-the-counter pain relievers taken at the first sign of pain. Ibuprofen (Advil, Motrin) or naproxen (Aleve) work better for most people than acetaminophen (Tylenol), especially for migraines. Take the dose on the bottle as soon as you feel the headache beginning—waiting makes it harder to stop.

If you have a prescription migraine medication, use it early too. Triptans (sumatriptan, rizatriptan, others) are designed to stop migraines specifically and work best in the first hour. Some people need both a triptan and an over-the-counter pain reliever together. If you have been prescribed a migraine medication, your doctor has already told you when and how to use it; follow that plan rather than guessing.

For tension headaches without a migraine diagnosis, rest in a dark, quiet room with ice or heat on your neck or head often works as well as medication. Many people find that lying down for 20 to 30 minutes stops a tension headache without drugs at all.

Key Takeaways

  • Over-the-counter ibuprofen or naproxen works faster than acetaminophen for most headaches and migraines, especially if taken in the first hour.
  • If you have a prescription migraine medication, use it at the first sign of pain—waiting makes it less effective.
  • Combining a triptan with an over-the-counter pain reliever sometimes works better than either one alone, but check with your doctor first.
  • Rest in a dark room with ice or heat can stop a tension headache without medication for many people.
  • Caffeine can help some headaches but can also trigger migraines in others, so track what happens when you use it.

When to take medication before the pain gets worse

The window for stopping a migraine is narrow. Once the pain is severe, medication takes much longer to work and may not work at all. This is why people with migraines are told to treat them early—at the first twinge, not when it becomes unbearable.

If you notice your usual warning signs (aura, neck stiffness, mood changes, food cravings), take your medication then, before the headache pain starts. Some people can stop a migraine entirely this way. Others will still get a headache but a much milder one.

Keep your medication with you. A dose in your bag, at work, and at home means you are not stuck waiting to get home to treat a headache that starts elsewhere.

Combining medication with other relief methods

Medication works better when you also reduce the things making the headache worse. Dim the lights or turn them off completely. Noise makes migraines worse for most people, so find a quiet space or use earplugs. If you are too warm, cool down; if you are cold, warm up.

Some people find that applying ice to the back of the neck or forehead helps. Others prefer heat on the shoulders and neck. Try both and see which one you reach for when a headache starts—that is usually the one that works for you.

Caffeine can help a headache in the first hour but can also trigger migraines in other people or make them worse later. If you normally drink coffee or tea, a small amount might help. If you do not normally use caffeine, adding it during a headache is unlikely to help and may make things worse.

What to do if over-the-counter medication is not working

If you take ibuprofen or naproxen at the first sign of a headache and it does not reduce the pain within two hours, you need a different approach. This does not mean the medication failed—it means this particular headache needs something else.

Call your doctor or nurse line and describe what you took, when you took it, and what happened. They can tell you whether to try a prescription medication, whether to add something to what you already took, or whether this headache needs to be evaluated in person. Do not keep taking over-the-counter medication hoping it will eventually work; that wastes time and can cause medication overuse headaches.

If you get frequent headaches that do not respond to over-the-counter medication, talk to your doctor about prevention rather than just treatment. Some medications taken daily can reduce how often migraines happen or how severe they are.

Medication overuse and rebound headaches

Using pain medication more than two or three days a week can cause rebound headaches—headaches that come back as soon as the medication wears off, often worse than the original one. This creates a cycle where you need more medication to stop the headache the medication itself is causing.

If you are taking headache medication more than twice a week, tell your doctor. You may need to stop the medication entirely for a period (usually one to two weeks, sometimes longer) to break the cycle. This is uncomfortable but necessary. Your doctor can help you manage it and may prescribe something to prevent headaches during that time instead.

Keeping a headache diary—noting when you get headaches, what you took, and whether it worked—helps you and your doctor spot patterns and decide whether you need prevention medication instead of just treatment.

When a headache needs emergency care

Most headaches and migraines do not need emergency care. But some do. Go to an emergency room or call 911 if you have a headache with any of these:

  • Sudden severe pain unlike any headache you have had before
  • Headache with fever, stiff neck, confusion, or difficulty speaking
  • Headache after a head injury
  • Headache with vision changes, weakness, numbness, or difficulty walking
  • Headache that gets worse despite medication and rest

If you have chronic migraines and this headache feels like your usual migraine, you do not need the emergency room just because the pain is severe. But if something feels different—if the pain is in a new location, if your usual medication is not working, or if you have new symptoms—get it checked.

Frequently Asked Questions

Is it better to take medication with food or on an empty stomach?

For most over-the-counter pain relievers, taking them with food or milk reduces stomach upset. However, they work slightly faster on an empty stomach. If you have a sensitive stomach, take them with food. If you do not, taking them with water is fine and may be faster.

Can I take ibuprofen and acetaminophen together?

Yes, some people alternate them—taking ibuprofen, then acetaminophen two hours later—and find it works better than either one alone. But do not exceed the daily limit for either drug. Ask your pharmacist or doctor about the right doses before you try this, especially if you take other medications.

What if I am pregnant or breastfeeding?

Acetaminophen is generally considered safe during pregnancy and breastfeeding. Ibuprofen and naproxen are usually avoided, especially in the third trimester. Talk to your doctor or midwife about what is safe for you and your baby before taking any medication.

Why does my migraine medication stop working sometimes?

Triptans can become less effective over time, or a particular migraine may simply not respond to the dose you usually take. This does not mean the medication is broken. Talk to your doctor about whether a higher dose, a different triptan, or a different approach might work better.

Can dehydration cause a headache, and does drinking water help?

Dehydration can trigger headaches in some people. If you have not had much water that day, drinking a glass or two may help. But if you are already well-hydrated, more water will not stop a headache that is already started. Drink water regularly throughout the day to prevent dehydration headaches rather than waiting until one starts.