What Medicine Is for Headaches: OTC to Prescription

The most common medicines for headaches are over-the-counter pain relievers like ibuprofen, acetaminophen (Tylenol), and aspirin. For most tension headaches, one of these is enough. But headaches come in different types, and the best medicine depends on what kind you’re dealing with, how often it happens, and how severe it gets.

How OTC Pain Relievers Work

Ibuprofen, aspirin, and naproxen belong to a class called NSAIDs. They block enzymes that produce chemicals called prostaglandins, which drive pain, inflammation, and fever. Because they work throughout the body, they’re especially useful when headache pain involves any inflammatory component, like sinus pressure or muscle tension in the neck and scalp.

Acetaminophen takes a different route. It also reduces prostaglandin production, but only in the central nervous system. It raises your pain threshold, meaning it takes a stronger pain signal before you actually feel it. It also targets the heat-regulating center of the brain, which is why it lowers fevers effectively. The trade-off: acetaminophen does not reduce inflammation at all. For a straightforward tension headache without any swelling or inflammatory trigger, that distinction rarely matters. For headaches tied to sinus congestion or muscle inflammation, an NSAID is the better pick.

Combination Pills With Caffeine

Products like Excedrin combine acetaminophen, aspirin, and caffeine in a single tablet. The caffeine isn’t filler. At doses of 100 mg or more (roughly the amount in a strong cup of coffee), caffeine provides a small but measurable boost to pain relief regardless of which analgesic it’s paired with. Studies show about 5% to 10% more people reach meaningful pain relief, defined as at least a 50% reduction in pain over four to six hours, when caffeine is added. That modest edge can make a real difference when a plain ibuprofen isn’t quite cutting it.

Medicines for Migraines

If you get migraines, standard OTC painkillers sometimes help when taken early. But once a migraine is fully underway, many people need something stronger. Triptans are the most widely prescribed class for stopping an active migraine. They narrow blood vessels around the brain and block pain signals, and most people feel relief within one to two hours. They’re available by prescription in pill, nasal spray, and injectable forms.

A newer class called gepants works differently. Instead of narrowing blood vessels, these drugs block a protein involved in migraine pain signaling. They’re an option for people who can’t tolerate triptans or who have heart-related risk factors that make blood vessel constriction a concern. Some gepants can be taken during an attack, while others are used daily to prevent migraines from starting.

Preventive Medications for Frequent Migraines

When migraines strike several times a month, doctors often prescribe a daily preventive medication to reduce their frequency. These aren’t traditional painkillers. They’re borrowed from other medical categories and happen to calm the overactive brain pathways that trigger migraines. The most commonly used groups include:

  • Beta blockers (originally designed for blood pressure), which are among the most established preventives
  • Tricyclic antidepressants, which affect pain-modulating brain chemicals and are taken at lower doses than for depression
  • Anti-seizure medications, which stabilize electrical activity in the brain and can reduce migraine frequency in people with less frequent attacks

These preventives typically take several weeks to reach full effect, and finding the right one often involves some trial and error. The goal isn’t to eliminate every migraine but to bring the number down enough that you’re not relying on pain relievers multiple days a week.

Cluster Headache Treatments

Cluster headaches are a different beast entirely. They produce intense, stabbing pain on one side of the head, typically around the eye, and come in bouts lasting weeks or months. Standard OTC pain relievers are too slow to help because cluster attacks peak within minutes and may only last 15 to 90 minutes total.

The two fastest-acting treatments are high-flow oxygen delivered through a face mask and injectable triptans. Oxygen therapy at seven liters per minute for about 15 minutes can abort an attack for many people, and it has virtually no side effects. An injectable triptan works within minutes rather than the hour or more a pill would take. Both are used at the onset of an attack, and people with cluster headaches often keep both on hand during active cycles.

Supplements That May Help

Several supplements have enough clinical evidence behind them that headache specialists routinely recommend them, particularly for migraine prevention. The American Headache Society highlights three:

  • Magnesium oxide: 400 to 500 mg per day. Magnesium plays a role in nerve signaling, and people with migraines tend to have lower levels.
  • Riboflavin (vitamin B2): 400 mg per day. This is well above what you’d get from food, and it supports energy production in brain cells.
  • CoQ10: 300 mg per day. Research has found this dose can reduce migraine frequency in adults.

These supplements are not quick pain relievers. They’re taken daily over weeks or months and work by reducing how often headaches occur, not by stopping one that’s already started. They’re a reasonable first step for people who want to try something before committing to a prescription preventive, and some people use them alongside prescription medications.

The Rebound Headache Trap

One of the most important things to know about headache medicine is that using it too often can make headaches worse. This is called medication overuse headache, and it’s more common than most people realize. The International Headache Society defines it as headaches occurring 15 or more days per month in someone who has been regularly using acute pain relievers for more than three months.

The threshold depends on the type of medication. For simple analgesics like ibuprofen or acetaminophen, using them 15 or more days per month crosses the line. For triptans and combination analgesics (those with caffeine), the threshold is lower: 10 or more days per month. The headaches themselves feel like your original headache type, just more frequent and harder to shake, which creates a cycle where you take more medicine and the problem gets worse. If you find yourself reaching for pain relievers more than two or three days a week on a regular basis, that pattern itself is worth addressing.

When a Headache Needs Urgent Attention

Most headaches respond to the medicines above and aren’t dangerous. But certain features signal that a headache may have a serious underlying cause rather than being a primary headache disorder. The most critical red flag is sudden onset. A headache that reaches maximum intensity within seconds, sometimes called a thunderclap headache, can point to a vascular emergency like an aneurysm and needs immediate evaluation.

Other warning signs include new neurological symptoms you’ve never had before (weakness on one side of your body, sudden numbness, vision changes), headaches accompanied by fever and night sweats, and a brand-new headache pattern starting after age 50. Headaches that clearly worsen when you change position, like standing up or lying down, or that are triggered by coughing and straining can indicate pressure changes around the brain. A headache pattern that progressively worsens over weeks, becoming more severe or more frequent without an obvious explanation, also warrants investigation. New headaches during or shortly after pregnancy deserve prompt evaluation for vascular or hormonal complications.