Requests

Laboratory tests

Medicines that cause muscle cramps

Many people develop leg cramps shortly after starting a new medicine and wonder whether there could be a connection.

Clínica Alegre practitioner examining a blood sample tube beside sample collection tubes

Reviewed by Dr Fernando Alegre

Clinical Director · OMD, registration no. 9688

Written by the Clínica Alegre team9-minute read

In this article

Sometimes there is a connection: several commonly used medicines list muscle cramps among their side effects, and some studies show that certain medicines are followed by treatments for cramps more often than expected. In other cases, the timing is simply a coincidence, as cramps are very common, particularly after the age of 50.

This article covers the groups of medicines most associated with cramps, explains how the link is investigated, which tests may be useful and what to do when a side effect is suspected. The most important rule is simple: never stop a prescription medicine on your own. The decision to continue, adjust or switch it must always be made by the doctor who prescribed it.

How we find out whether a medicine causes cramps

A link between a medicine and a side effect is established in several ways: case reports, clinical trial data, pharmacovigilance systems and studies using large databases. A study published in 2012 used prescribing data from a Canadian population to see whether starting certain medicines was followed, rather than preceded, by a prescription for quinine, which was used at the time as a marker for night cramps. This design, called sequence symmetry analysis, can detect associations in large populations.

The results showed a clear association for some diuretics and inhaled long-acting beta-2 agonist bronchodilators, and a weaker association for statins. It is important to understand the limitations: the study shows associations across populations and cannot establish that a medicine causes cramps in a particular individual.

Type of evidenceWhat it showsLimitation
Case reportThat the effect is possibleDoes not indicate frequency
Clinical trialFrequency compared with placeboFew people and a short period
Large database studyAssociations in the populationDoes not prove the cause in an individual
PharmacovigilanceSafety signals after a medicine reaches the marketDepends on reports

Diuretics

Diuretics are used for high blood pressure, heart failure and fluid retention. By increasing the amount of water and salt passed in the urine, some can lower potassium, magnesium and sodium and reduce fluid volume, which may contribute to cramps. In the 2012 study, thiazide and thiazide-like diuretics and potassium-sparing diuretics were associated with the onset of cramps.

These medicines have important benefits in protecting the heart, kidneys and brain. If cramps develop, the doctor may request tests, adjust the dose, change the diuretic or add other measures, depending on the circumstances. Stopping treatment on your own can destabilise blood pressure or heart failure.

Inhaled long-acting bronchodilators

Long-acting beta-2 agonist bronchodilators (often known by the abbreviation LABA) are used for asthma and chronic obstructive pulmonary disease (COPD), often in combination with inhaled corticosteroids. In the 2012 study, they were among the medicines most strongly associated with night cramps.

The mechanism is not fully understood, but beta-2 agonists can move potassium into cells and increase muscle excitability. Here too, the respiratory benefit is very important, and any change to an inhaler should be made by the doctor managing your care or your respiratory specialist.

Group of medicinesCommon usesProposed mechanism
Thiazide and related diureticsHypertensionLoss of potassium, magnesium and fluid volume
Potassium-sparing diureticsHigh blood pressure, heart failureChanges in fluid volume and salts
Inhaled long-acting beta-2 agonistsAsthma, COPDMuscle excitability, potassium
StatinsCholesterol, cardiovascular preventionDirect effect on the muscle

Statins: cramps, muscle pain and the role of CK

Statins lower cholesterol and the risk of heart attack and stroke. Muscle symptoms are their most widely discussed side effect and include widespread pain, weakness, stiffness and, in some people, cramps. In the 2012 study, the association between statins and night cramps was weaker than for diuretics and bronchodilators.

In practice, many people attribute symptoms to statins that they would have experienced anyway. When muscle symptoms occur, the doctor may therefore request a CK (creatine kinase) test, an enzyme that rises when muscles are damaged. A normal or slightly raised CK is common, and the doctor will decide what to do. In rare cases, statins cause severe muscle damage (rhabdomyolysis), with intense pain, weakness and dark urine: this requires urgent assessment.

Other medicines reported

In addition to the groups above, reviews of night cramps mention other medicines associated with cramps in reports or studies. These include some medicines used for osteoporosis, certain hormone treatments, intravenous iron and some anti-inflammatory medicines, among others. In many cases, the evidence is limited and based on reports.

Some medicines can cause cramps indirectly by causing diarrhoea or vomiting, with loss of salts, or by lowering magnesium, as can happen with long-term use of proton pump inhibitors. Others can affect the peripheral nerves. This range of possible causes makes it important to review all medication, including over-the-counter products and supplements.

Indirect mechanismGeneral examples
Loss of salts through diarrhoea or vomitingExcessive use of laxatives, some antibiotics
Low magnesiumLong-term use of proton pump inhibitors
Nerve damageSome cancer treatments
Hormonal changesSome hormone treatments

Tests that help assess the link

When a medicine-related effect is suspected, tests can help identify the mechanism and decide what to change. Depending on the medicine, the doctor may request potassium, sodium, magnesium, calcium and creatinine tests for diuretics; potassium for high-dose bronchodilators; and CK and sometimes TSH for statins, as hypothyroidism increases the risk of muscle symptoms.

Reference ranges vary between laboratories. A result slightly outside the range does not always explain the cramps, and a normal result does not rule out the medicine's involvement. Very high or very low potassium, or a very high CK with symptoms, requires contact with a doctor that same day.

Medicine involvedTests that may be requested
DiureticsSodium, potassium, magnesium, creatinine
Beta-2 agonistsPotassium, in specific circumstances
StatinsCK, TSH, liver and kidney function
Long-term proton pump inhibitorsMagnesium

Quinine: a treatment that has fallen out of use

Quinine was used to treat night cramps for many years. A 2015 Cochrane review concluded that quinine reduces the number and severity of cramps, based on low- to moderate-quality evidence, but causes more minor side effects than placebo. It also noted that excessive doses can cause serious and even fatal effects. Serious effects described in other sources include blood disorders and abnormal heart rhythms.

Quinine is therefore no longer recommended as a routine treatment for cramps. If it is considered at all, it is only prescribed in selected cases with medical monitoring. It also shows how a medicine used to treat cramps can pose greater risks than the cramps themselves.

Older people and multiple medicines

Cramps are more common after the age of 50, which is also when many people begin taking several medicines at the same time. This overlap makes it hard to identify the cause: cramps may result from age, an illness, one medicine or several combined factors. A diuretic that slightly lowers potassium, combined with an indigestion medicine that lowers magnesium, may have a greater effect together than either would alone.

There is also a risk of a 'prescribing cascade': a side effect develops, is interpreted as a new problem and is treated with another medicine, which may in turn cause further effects. The 2012 study itself used this logic by observing that the start of some medicines was followed by quinine being prescribed for cramps. Regularly reviewing all medication with your GP or pharmacist helps prevent this.

SituationWhy it increases the risk
Several medicines at the same timeCombined effects and interactions
Kidney diseaseChanges in potassium and magnesium more likely
Recent dose changesTemporary imbalances in salts and fluids
Episodes of vomiting, diarrhoea or hot weatherSalt losses combined with those caused by diuretics
Several different prescribersLess overall visibility of medication

What to do if you suspect a medicine

Note when the cramps started, when each medicine was started or changed and what the symptoms are like. Take this information to your GP or the doctor who prescribed the medicine. A pharmacist can also help identify known side effects and interactions.

The doctor may decide to continue the medicine and manage the cramps with general measures, adjust the dose, switch to another medicine in the same or a different group, or request tests. In Portugal, suspected adverse reactions can be reported to Infarmed by healthcare professionals and by patients themselves. Never stop a prescribed medicine without speaking to your doctor.

At Clínica Alegre in Setúbal and Seixal, you can have laboratory tests and ask our team any questions about the results.

Frequently asked questions

I started a statin and have cramps. Should I stop?

Not on your own. Speak to your doctor, who may request tests and decide whether to adjust the treatment.

Do diuretics always cause cramps?

No. Most people do not develop cramps, but the risk appears to increase with some types.

Does a high CK mean the statin is harming me?

It can have several causes, including recent exercise. A doctor must interpret the result.

Can my asthma inhaler cause cramps?

Long-acting bronchodilators are associated with cramps in some studies. Do not change your inhaler without speaking to your doctor.

Can I take quinine that I have at home?

No. Quinine should only be used on prescription because of potentially serious side effects.

How do I report a side effect?

You can speak to your doctor or pharmacist, or report it directly to Infarmed.

Did you enjoy this article?

Scientific references3
  1. Garrison SR, Dormuth CR, Morrow RL, et al. Night-time leg cramps and the prescription use preceding them: a sequence symmetry analysis. Arch Intern Med. 2012;172(2):120-6.
  2. El-Tawil S, Al Musa T, Valli H, et al. Quinine treatment for muscle cramps. Cochrane Database Syst Rev. 2015;(4):CD005044.
  3. Allen RE, Kirby KA. Nocturnal leg cramps. Am Fam Physician. 2012;86(4):350–5.
Article information
Written by
Clínica Alegre team
Clinical review
Dr Fernando Alegre, Clinical Director · OMD, registration no. 9688
Published
2 Dec 2026
Last updated
2 Dec 2026
Topic
Laboratory tests
Reading time
9 min

See also

Related treatments

Want to know what is right for you?

Contact us on WhatsApp or book an assessment, in person or online.

Book an appointment

Book your assessment.

Choose Setúbal or Seixal. We reply within opening hours.

Newsletter

Get the latest news from the Clínica Alegre.

Blog articles and clinic news, delivered to your inbox. Unsubscribe at any time.