When to worry about leg cramps

When to Worry About Leg Cramps: Warning Signs, Causes, and What the Evidence Shows

Key Takeaways: When to Worry About Leg Cramps

  • In a large US population survey, about 30% of adults reported leg cramps while trying to sleep, and about 6% had them on 15 or more nights a month.[1]
  • Cramps caused by neuromuscular or systemic disease are more likely to occur during the day or to affect other parts of the body, and doctors look for weakness, muscle wasting and fasciculations (visible muscle twitching).[2]
  • Not every “cramp” is a cramp: a JAMA review lists a cramping or pulling discomfort in the thigh or calf (53%) among the symptoms of deep vein thrombosis, alongside swelling (71%).[3]
  • In a prospective study of 210 Ironman triathletes, those who cramped did not differ significantly from the others in measured serum electrolyte or body-weight changes; faster racing and a history of cramping were the only independent risk factors identified.[4]
  • A Cochrane review found magnesium unlikely to provide clinically meaningful cramp prevention in older adults, and in a 2026 Finnish trial magnesium did not differ significantly from placebo in cramp frequency, while compression stockings reduced it.[5][6]
  • In my clinical experience, a calf that “cramped” and then stayed painful has more often than I expected turned out to be a deep vein thrombosis; in my view, tenderness that lasts, worsens or does not ease fairly quickly is worth having assessed by a doctor promptly, particularly if the leg is also swollen.
  • In my view, potassium supplements taken without a documented deficiency are not a remedy for cramps, because too much potassium can cause cardiac arrhythmias; in my practice, I would rather guide patients with benign cramping towards physiotherapy than towards supplements.

Introduction: When to Worry About Leg Cramps

A leg cramp can wake you from deep sleep with pain that feels completely out of proportion to anything you did during the day. It is also remarkably common. In a nationally representative US survey (NHANES 2005–2008), roughly 30% of adults reported leg cramps while trying to sleep, and about 6% reported them on at least 15 nights a month.[1] Cramps became more common with age and were associated with poorer self-rated health and sleep problems, although the cross-sectional design could not establish cause and effect.[1]

So when should you worry about leg cramps? The honest answer is: usually not, but not never. Most night-time cramps have no identifiable cause.[2] The problem is that a minority of cramps are a symptom of something else, and some leg pain that people call a cramp is not a cramp at all.

As a physician working in general practice and occupational health, and as a former competitive athlete, I want to look at this question from both angles. This article covers when to worry about leg cramps: what a typical cramp looks like, why cramps happen, the warning signs that deserve a medical assessment, what changes for athletes, and what the research actually shows about prevention.

What a Typical Leg Cramp Looks Like

The International Classification of Sleep Disorders describes nocturnal leg cramps with three criteria: a painful sensation in the leg or foot together with sudden, involuntary hardening of the muscle; contractions that occur during time in bed, whether they start from wakefulness or sleep; and pain that is relieved by forcefully stretching the affected muscle.[2] The calf muscles and the small muscles of the foot are the usual sites.[2]

Cramps become more common and often more severe with age.[2] A review in Age and Ageing summarised a general practice study of 233 people aged 60 or over in which almost one-third had experienced rest cramps during the previous two months, including half of those aged 80 or over.[2]

If your calves ache for a day or two after a hard session rather than seizing up suddenly, that is a different phenomenon, covered in sore muscles.

In my clinical experience, leg cramps are a fairly common complaint at the clinic. I would not say I see them every day or every week, but patients bring them up quite regularly, and for many the cramps recur regularly and disturb their sleep. In Finland, cramps are commonly called suonenveto, and there is a good deal of folklore about how to stop one: some people believe you should stand on the painful leg, while others believe the leg should be massaged.

Why Leg Cramps Happen: The Nerve Behind the Muscle

A cramp is ultimately produced by rapid, repetitive firing of motor units.[2] According to the Age and Ageing review, the balance of evidence points to spontaneous discharges from motor nerves rather than an origin in the brain or in the muscle itself.[2] Age-related loss of motor neurons, which affects the legs more than the arms, may help explain why older people cramp more often.[2]

This matters because a common explanation, a lack of electrolytes or fluid, has weak support, at least for cramps during exercise. A review of exercise-associated muscle cramps found that evidence for the dehydration and electrolyte-depletion hypotheses came mainly from anecdotal observations, case series totalling 18 cases and a single case–control study of 10 people, while four prospective cohort studies did not support those hypotheses.[7] The author concluded that accumulating data, while still requiring further confirmation, support altered neuromuscular control as the principal mechanism.[7]

A laboratory study from 2010 illustrates the point. In mildly dehydrated men, cramps were induced in a toe flexor muscle of the foot (flexor hallucis brevis) by electrical stimulation of the tibial nerve. A small drink of pickle juice, but not water, inhibited the cramps, and the researchers concluded the effect could not be explained by rapid restoration of body fluids or electrolytes.[8] Electrically induced toe cramps are not the same as a calf cramp at mile 20, but the authors suspected a nerve-mediated reflex originating in the mouth and throat, which fits a nervous-system explanation better than an electrolyte one.[8] I cover the broader electrolyte picture in electrolytes in athletes.

There are even more beliefs about what causes leg cramps. In my clinical experience, an old and persistent belief is that cramps are caused by magnesium deficiency, while some patients believe the cause is a lack of potassium. From a clinical perspective, both beliefs reflect the electrolyte explanation described above, which, at least for exercise-associated cramps, the prospective evidence does not support well.

When to Worry About Leg Cramps: Warning Signs That Deserve a Medical Assessment

When to worry about leg cramps is largely a question of what accompanies them. The features below are the ones the reviewed literature highlights as pointing towards a secondary cause, or towards a condition that only resembles a cramp.

Cramps with weakness, muscle wasting or twitching

Cramps caused by neuromuscular or systemic disease are more likely than ordinary night cramps to occur throughout the day or to involve other parts of the body.[2] In one study cited in the Age and Ageing review, cramps in people with amyotrophic lateral sclerosis (ALS) were often located in the small muscles of the toes, feet, fingers or hands, were mainly triggered by movement and occurred both day and night, whereas cramps in controls were mostly nocturnal calf cramps.[2] When examining someone with cramps, doctors look specifically for weakness, muscle atrophy and fasciculations.[2]

Cramps are common in ALS: in a prospective cohort of 41 people with early-stage disease, 95% developed cramps at some point during follow-up.[9] In a US survey of people with ALS (282 respondents), 20% reported that cramps were their presenting symptom.[10] This needs to be kept in proportion: cramps are very common in the general population and are idiopathic in most people,[1][2] which is why the assessment looks for accompanying signs such as weakness, wasting and fasciculations rather than relying on cramps alone.[2]

Cramps that started after a new medicine

The Age and Ageing review describes the best-quality evidence on drug-related cramps as an eight-year prescribing study from British Columbia. New prescriptions of quinine, used as a marker of cramp treatment, were substantially more common in the year after starting an inhaled long-acting beta-agonist, a thiazide diuretic or a potassium-sparing diuretic, and 60% of quinine recipients had been prescribed one of these drugs.[2] Statins and loop diuretics showed a weaker association.[2] The review’s authors recommend looking for associated medicines in people with troublesome or frequent cramps, and seeking alternatives where feasible for those taking diuretics or long-acting beta-agonists,[2] a decision that belongs with the prescribing doctor.

Pain that may not be a cramp: a clot or a circulation problem

One key point in deciding when to worry about leg cramps is that a deep vein thrombosis (DVT) can feel like a cramp. A JAMA review lists swelling (71%) and a cramping or pulling discomfort in the thigh or calf (53%) among the signs and symptoms of lower-limb DVT, and states that such patients should undergo an assessment of pretest probability, with D-dimer testing and venous ultrasonography used according to that assessment.[3] By definition, a cramp involves sudden, involuntary hardening of the muscle that is relieved by forceful stretching;[2] persistent pain with leg swelling is not part of that definition.

From a clinical perspective, this is one of the most important situations to recognise. I have noticed that many patients describe their calf as having cramped and then stayed painful, and more often than I would have expected, I have found a deep vein thrombosis behind it. It is understandable for the leg to feel a little tender after a cramp, but in my view, if the tenderness lasts longer, gets worse or does not ease fairly quickly, it is worth having it assessed by a doctor promptly, including the possibility of DVT, particularly if the leg is also swollen. A calf DVT can feel very similar to a cramp, so when a patient has a painful calf and attributes it to a cramp, the possibility of DVT is worth keeping in mind.

A calf muscle strain can also feel like a cramp. In my clinical experience, patients usually recognise a clear injury, but a strain can sometimes follow quite minor activity, such as walking or brisk walking; a typical story is taking a few long strides to catch a bus and straining the calf. I have experienced this myself: a calf strain I sustained while training felt cramp-like at first, although it was mostly painful only when I tensed the calf muscle.

Another important mimic is peripheral artery disease. An American Heart Association scientific statement defines claudication as a reproducible discomfort or fatigue in the leg muscles that occurs with exertion and is relieved within 10 minutes of rest, and notes that most people with peripheral artery disease do not have classic claudication symptoms.[11] The Age and Ageing review lists claudication, restless legs syndrome and muscle strain as conditions the history and examination should exclude.[2]

Cramps as part of a wider illness

Cramps have been reported in association with many metabolic, fluid and electrolyte disorders.[2] They occur in more than 60% of people with polyneuropathy, in about two-thirds of people with diabetes and in about half of those with uraemia.[2] Other reported associations include liver failure, chronic kidney disease, hypothyroidism, adrenal insufficiency, haemodialysis and disturbances of potassium, calcium, sodium and magnesium.[2] For thyroid-related symptoms more broadly, see hypothyroidism.

Many of these associations are hard to interpret, because cramps are poorly defined in many studies and may have been confused with other leg symptoms.[2] In the US survey, for example, self-reported night-time “leg jerks” were the strongest single correlate of cramps, and the authors acknowledge that restless legs syndrome was not assessed and may have been misclassified as cramps.[1]

In my clinical experience, what patients call cramps also varies. Some have a single, hard cramp, while for others the sensations are more cramp-like feelings resembling restless legs. Periodic limb movements are a further phenomenon: repetitive leg movements, often with a stiffening quality, mainly during sleep. They are diagnosed as periodic limb movement disorder only when they disturb sleep or cause daytime symptoms that are not better explained by another condition. Restless legs syndrome and periodic limb movement disorder are managed differently, so differential diagnosis matters: the condition first has to be diagnosed. Restless legs syndrome is usually diagnosed on clinical grounds, but in my experience a sleep study is sometimes needed, particularly when periodic limb movement disorder is suspected. In these patients, I usually also check iron status, thyroid tests and a basic blood count, because in my clinical experience iron deficiency can sometimes contribute to restless legs and periodic limb movements; in my practice, iron treatment is considered according to iron status, and medication is sometimes considered as well.

For restless legs syndrome specifically, an American Academy of Sleep Medicine clinical practice guideline advises testing iron studies, including ferritin, in patients with clinically significant symptoms, and bases iron treatment recommendations on iron status.[12]

When to Worry About Leg Cramps as an Athlete

For athletes, the usual question is whether a cramp during exercise signals a deficiency. In a cohort of 210 Ironman triathletes, the 43 who cramped did not differ significantly from those who did not in pre-race to post-race serum electrolyte concentrations or body weight changes.[4] Cramping was associated with faster predicted and actual race times, and a regression analysis identified faster overall race time (and cycling time) and a history of cramping in the last 10 races as the only independent risk factors.[4] The authors interpreted this as pointing to high exercise intensity, rather than dehydration or altered serum electrolyte balance, as the risk factor in this cohort.[4]

The 2020 Cochrane review of magnesium found no randomised trials of magnesium for exercise-associated muscle cramps.[5] The athlete angle on magnesium is discussed further in magnesium in athletes.

When to worry about leg cramps as an athlete therefore comes down to the same warning signs as above: a “cramp” that does not behave like one, pain and swelling in one leg that persist after the muscle has relaxed, or cramps accompanied by weakness. Severe muscle pain after unusually hard training raises a different question, covered in elevated creatine kinase in athletes.

In my own experience as a competitive athlete, my calves cramped every now and then, and more often when I had been training a lot. I suspect neuromuscular factors played a bigger role than any deficiency, although the cause of my own cramps was never formally established; this would fit the triathlon data described above.

What a Doctor Typically Checks

Knowing when to worry about leg cramps also means knowing what a medical assessment usually involves. According to the Age and Ageing review, a careful history and an examination without abnormal findings remain the mainstay of diagnosing idiopathic night cramps.[2] The assessment aims to exclude other causes of leg symptoms, such as restless legs syndrome, muscle strain and claudication, and to identify signs of neurological disease such as weakness, atrophy and fasciculations.[2]

In my practice, the basic examination usually also includes a neurological examination of the legs. I check sensation, including sharp and light-touch sensation, reflexes and sensorimotor function, and look for swelling. A general neurological examination is often part of the basic assessment as well. In certain situations, I also find it worth ruling out polyneuropathy, which calls for a somewhat broader set of investigations, including testing for diabetes.

For people with frequent cramps, the review lists blood tests for urea, electrolytes, magnesium and glucose, together with liver and thyroid function tests, with further tests only in selected patients.[2] The review also recommends seeking associated conditions and medications in people with troublesome or frequent cramps.[2]

In my clinical experience, another group is patients with spinal nerve root irritation (radiculopathy), in whom the calf may cramp. In my experience, the overall picture is usually somewhat different: there is often back pain as well, and the symptoms otherwise resemble sciatica, with the calf cramps as part of it. In my practice, patients with clear radicular symptoms may be referred to an orthopaedist for assessment, depending on the neurological findings and how the symptoms develop.

What the Evidence Shows About Preventing Leg Cramps

Prevention is a separate question from when to worry about leg cramps, and the evidence differs by approach.

Stretching. The trial evidence is conflicting. In a randomised trial of 80 adults over 55 with night cramps, six weeks of nightly calf and hamstring stretching before sleep reduced cramp frequency by a mean of 1.2 cramps per night (95% CI 0.6 to 1.8) more than in the control group, and severity decreased by a mean of 1.3 cm more on a 10-cm visual analogue scale (95% CI 0.9 to 1.7).[13] An earlier 12-week trial in 191 patients who had been prescribed quinine showed no benefit, although participants were shown the exercises only once and adherence was unclear.[2] For stretching more generally, see stretching for athletes.

Compression stockings. A three-arm randomised trial from Finland, published in 2026, randomised 121 adults aged 50–85 who had at least two leg cramps a week to knee-high compression stockings, magnesium or placebo pills for four weeks.[6] Compared with placebo, the stockings reduced weekly cramp frequency (adjusted mean difference −1.43; 95% CI −2.36 to −0.50), while magnesium did not (−0.20; 95% CI −1.49 to 1.09).[6] The stockings arm could not be blinded, daily use was reported for only 42.3% of intervention weeks, four participants stopped wearing the stockings because of adverse reactions, and people with diagnosed or suspected peripheral artery disease were excluded.[6] The authors describe it as the first randomised trial of compression stockings for leg cramps, so the finding needs confirmation.

Magnesium. The 2020 Cochrane review included 11 trials with 735 participants. For idiopathic cramps, largely in older adults presumed to have night cramps, differences in cramp frequency between magnesium and placebo were small and not statistically significant, and the reviewers concluded that magnesium is unlikely to provide clinically meaningful cramp prevention in this group.[5] For pregnancy-associated cramps, the evidence was conflicting.[5] I review the wider magnesium evidence in magnesium benefits.

Quinine. A 2015 Cochrane review of 23 trials (1,586 participants) found that, compared with placebo, quinine reduced cramp number over two weeks by 28%, cramp intensity by 10% and cramp days by 20%, based on low- to moderate-quality evidence.[14] The reviewers note that serious adverse events can rarely be fatal and that prescribing is severely restricted in some countries.[14] The Age and Ageing review reports that the US Food and Drug Administration has strongly advised against off-label quinine use for leg cramps since 2006.[2]

In practice, patients often try to treat cramps themselves with supplements. Some take potassium in the belief that cramps are a sign of potassium deficiency, which can be risky, because too much potassium (hyperkalaemia) can cause cardiac arrhythmias; in my view, potassium supplements taken without a documented deficiency are not a remedy for cramps. For magnesium, as the trials above show, the evidence for cramp prevention is not particularly strong. In my clinical experience, patients also use magnesium for restless legs and as a sleep aid, although in my view the evidence for those uses is also limited. From a clinical perspective, management depends on the cause; in my practice, when the problem is simply benign cramping, I often prefer a physiotherapy-based approach to starting supplements for presumed deficiencies.

Conclusion: When to Worry About Leg Cramps

Leg cramps are common: about 30% of adults in a US national survey reported them at night, and most night cramps have no identifiable underlying cause.[1][2] When to worry about leg cramps depends mainly on what comes with them. Cramps accompanied by weakness, muscle wasting or twitching, cramps in unusual places or during the day, cramps that began after a new medicine, and cramps occurring alongside diabetes, kidney, liver or thyroid disease are the patterns the literature links to secondary causes.[2] Leg pain with swelling, or pain that reliably appears with walking and settles with rest, may not be a cramp at all.[3][11]

For athletes, a prospective cohort of triathletes linked exercise cramps to faster racing and previous cramping, while measured electrolyte and body-weight changes did not differ significantly.[4] On prevention, magnesium has not shown meaningful benefit in older adults, stretching trials conflict, compression stockings showed promise in one recent trial, and quinine carries risks that have led regulators to restrict it.[5][13][6][14]

In my clinical experience, the most important practical point is that not every calf pain described as a cramp is one: a calf that stays painful after a “cramp” can turn out to be a deep vein thrombosis, and a calf strain can also feel cramp-like at first. Restless legs and periodic limb movement disorder can resemble cramps as well, and in my practice they call for their own work-up, including iron status. From a clinical perspective, I see little reason to self-treat cramps with potassium or magnesium; for benign cramping, I would rather guide patients towards physiotherapy.

References

  1. https://doi.org/10.1371/journal.pone.0178465
  2. https://doi.org/10.1093/ageing/afw139
  3. https://doi.org/10.1001/jama.2020.17272
  4. https://bjsm.bmj.com/content/45/8/650
  5. https://doi.org/10.1002/14651858.CD009402.pub3
  6. https://doi.org/10.1186/s13063-025-09370-z
  7. https://doi.org/10.1136/bjsm.2008.050401
  8. https://doi.org/10.1249/MSS.0b013e3181c0647e
  9. https://doi.org/10.1002/mus.24892
  10. https://doi.org/10.1080/21678421.2016.1245755
  11. https://doi.org/10.1161/CIR.0000000000000623
  12. https://doi.org/10.5664/jcsm.11390
  13. https://doi.org/10.1016/S1836-9553%2812%2970068-1
  14. https://doi.org/10.1002/14651858.CD005044.pub3

Similar Posts