Several common medication classes can cause leg cramps, including cholesterol-lowering statins, diuretics (water pills), asthma inhalers, certain antidepressants, and pain relievers. If you started a new medication and noticed cramps that weren’t there before, there’s a reasonable chance the two are connected.
Statins (Cholesterol Medications)
Statins are one of the most widely recognized causes of medication-related muscle problems, including leg cramps. About 10% of people taking statins report muscle symptoms like cramping, aching, or stiffness. However, when researchers control for the placebo effect, the percentage caused directly by the drug’s chemistry drops to roughly 1 to 2%. That still represents millions of people given how commonly statins are prescribed.
The reason statins affect muscles comes down to energy production inside your cells. Statins work by blocking an enzyme your liver uses to make cholesterol, but that same enzyme also produces compounds your muscle cells need to generate energy. When those compounds are reduced, the tiny power plants inside muscle cells (mitochondria) don’t function as well. They produce less energy and more waste products, which can trigger muscle breakdown, cramping, and soreness. This is why symptoms tend to show up in the legs, where large muscles are working hardest during daily activity.
If you suspect your statin is causing cramps, the typical approach involves briefly stopping the medication under your doctor’s guidance to see if symptoms resolve, then restarting at a lower dose or switching to a different statin. Some people do well on an alternate-day dosing schedule. For those who truly can’t tolerate any statin, non-statin cholesterol drugs can be added to achieve meaningful cholesterol reductions without the muscle effects.
Diuretics (Water Pills)
Diuretics like hydrochlorothiazide and furosemide are frequently blamed for leg cramps, and they appear on most lists of cramp-causing medications. The conventional explanation is that they flush out electrolytes like potassium, magnesium, and sodium, throwing off the electrical signals your muscles need to contract and relax properly.
Interestingly, the evidence is more complicated than the explanation suggests. A review from the American Academy of Family Physicians noted that diuretics have not been strongly implicated in evidence-based reviews of nocturnal leg cramps, and that neither exercise-related cramps nor nighttime cramps have been clearly tied to electrolyte disturbances. That doesn’t mean diuretics never cause cramps. It means the mechanism may not be as simple as “low potassium equals cramps.” Nerve excitability, fluid shifts, and other factors likely play a role. If you take a diuretic and experience frequent cramps, it’s still worth discussing with your prescriber, but don’t assume an electrolyte supplement will automatically fix the problem.
Asthma and COPD Inhalers
Beta-agonist inhalers, the rescue and maintenance inhalers used for asthma and chronic obstructive pulmonary disease, list muscle cramps as a known side effect. These medications work by stimulating the “fight-or-flight” branch of your nervous system. They relax the muscles in your airways so you can breathe more easily, but they also rev up your heart rate and affect skeletal muscles throughout your body.
Combination inhalers that pair a beta-agonist with another bronchodilator are specifically noted as cramp-causing medications. The cramps tend to affect the legs and can be more pronounced with long-acting formulations that stay in your system for 12 to 24 hours. Since stopping an inhaler isn’t usually an option for people who need it to breathe, managing these cramps often involves stretching, hydration, and occasionally adjusting the inhaler type or dose.
Antidepressants and Sleep Medications
Several psychiatric medications are linked to leg cramps. The selective serotonin reuptake inhibitors sertraline (Zoloft) and fluoxetine (Prozac) both carry leg cramps as a listed side effect. The sleep medication zolpidem (Ambien) and the anti-anxiety drug clonazepam (Klonopin) do as well.
The connection between these drugs and muscle cramps isn’t as well studied as the statin link, but serotonin plays a role in how motor neurons fire. Medications that change serotonin levels can alter the signals traveling to your muscles, potentially making them more prone to involuntary contractions. If cramps started shortly after beginning one of these medications or after a dose increase, that timing is a strong clue.
Antipsychotic Medications
Antipsychotic drugs can cause a range of movement-related side effects, including severe muscle spasms in the legs, back, neck, and arms. These are called extrapyramidal symptoms, and they can appear soon after starting the medication. Unlike ordinary cramps that come and go, antipsychotic-related spasms can be intense and sustained. They happen because these drugs alter dopamine signaling in the brain, which directly affects motor control. If you experience sudden, forceful muscle contractions after starting an antipsychotic, that warrants prompt medical attention since these side effects are treatable but shouldn’t be ignored.
Pain and Nerve Medications
Some of the medications people take for pain and nerve-related conditions can themselves cause cramps. Naproxen (a common over-the-counter anti-inflammatory) and celecoxib (a prescription anti-inflammatory) are both associated with leg cramps. So are gabapentin and pregabalin, two drugs widely prescribed for nerve pain, restless legs, and seizures. The irony isn’t lost on anyone: medications taken to reduce discomfort can introduce a new type of it.
For people on gabapentin or pregabalin, cramps may relate to how these drugs modify calcium channel activity in nerve cells. They calm overactive nerve signals (which is how they reduce pain), but they can also affect the normal signaling that coordinates smooth muscle contraction and relaxation.
Hormone Therapies
Conjugated estrogens, used in hormone replacement therapy during and after menopause, are another recognized cause of leg cramps. Estrogen affects blood vessel tone and fluid balance, both of which influence muscle function. Women who start hormone therapy and notice new or worsening leg cramps, particularly at night, may be experiencing a direct side effect of the medication rather than an unrelated age-related change.
IV Iron Infusions
For people receiving intravenous iron for anemia, muscle cramps are listed as a common side effect. These cramps typically occur during or shortly after the infusion and are generally temporary. They’re distinct from the chronic, recurring cramps caused by daily medications, but they can be uncomfortable enough to catch people off guard if they weren’t expecting them.
How to Tell if Your Medication Is the Cause
The strongest clue is timing. Cramps that started within days to weeks of beginning a new medication, or that worsened after a dose increase, are likely connected. Cramps that wake you up at night are especially common with medication-related causes. A few practical steps can help you sort this out:
- Track the pattern. Note when cramps happen, which muscles are affected, and whether they correspond to when you take your medication.
- Review everything you take. This includes over-the-counter drugs like naproxen that people often don’t think of as “real” medications.
- Don’t stop medications on your own. Some of these drugs, particularly statins, antipsychotics, and anti-seizure medications, need to be tapered or switched rather than abruptly stopped.
- Ask about alternatives. For nearly every cramp-causing medication, there are alternatives in the same class or different classes that may not produce the same side effect. Switching from one statin to another, for example, resolves symptoms for many people.
Leg cramps have many causes beyond medications, including prolonged sitting, dehydration, and normal aging. But when a medication is the trigger, the cramps tend to follow a predictable pattern tied to when you started or adjusted the drug. That pattern is the most useful diagnostic tool you have.

