Question & Context
Nocturnal leg cramps – what helps?
In brief
Stretching is the main thing that helps against night-time calf cramps: during the cramp itself, by stretching the calf, and preventively every evening before bed. It is also worth looking at your own medicines, because diuretics and inhaled asthma sprays go along with more cramps. Magnesium, the best-known home remedy, did little for older adults in the Cochrane analysis, and in pregnancy the data are conflicting. In sport, pace and history matter more than electrolytes. Pickle juice shortened a cramp in the lab, and vitamin K2 has a single, disputed trial. Quinine works, but because of rare serious side effects it is now only available on prescription.
What matters first
During a cramp: stretch and tense the opposing muscle
For an acute cramp, the guideline of the German Society of Neurology recommends statically stretching the cramping muscle and/or tensing the opposing muscle. For the calf, that means straightening the leg and pulling your toes toward your shin, if necessary with your hand or a towel while sitting, or standing up and pressing your heel firmly into the floor. According to the guideline, the cramp is self-limiting and passes after seconds to minutes. Among non-drug measures, stretching has the best support.
Preventively: stretch calves and hamstrings every evening
In a randomized trial with 80 adults over 55, half stretched their calves and hamstrings every evening immediately before sleep for six weeks, the other half did not. Cramps fell by 1.2 cramps per night more in the stretching group, and pain severity by 1.3 centimeters more on a 10-centimeter scale. All participants completed the study. The guideline therefore recommends regular passive calf stretching for night-time calf cramps, for example standing with your hands against a wall.
Check medicines as triggers
An analysis of prescribing data from 4.2 million people in British Columbia found that in the year after starting certain medicines, a cramp treatment was prescribed considerably more often: 2.42 times as often with long-acting beta-2 agonists from asthma and COPD inhalers, 2.12 times with potassium-sparing diuretics, 1.48 times with thiazide-like diuretics. With statins the association was small (1.16). 60.3 percent of people treated for cramps received at least one of these drugs. Don't stop anything on your own, but do mention the cramps to your doctor.
In sport: pace, and fluids with salt
Among 210 Ironman triathletes, the 43 with cramps differed from the others neither in weight loss nor in blood electrolytes. Cramps were predicted by faster race pace and previous cramps, pointing more toward muscle fatigue. Still, what you drink matters: in a small study with 10 men running in the heat, plain water made the calf more susceptible to electrically induced cramps, while an electrolyte solution made it more resistant. The guideline advises avoiding fluid deficits.
When you should have this checked by a doctor
Occasional night-time calf cramps are usually harmless. Have cramps checked by a doctor if they are very frequent, regularly disturb your sleep or do not improve despite stretching, and also if they started after beginning a new medicine. See a doctor promptly for cramps together with muscle weakness, numbness, tingling or visible muscle twitching, cramps in many muscles at once or also in the hands and trunk, and calf pain when walking that goes away after standing still briefly, because this can point to poor circulation in the legs. Get immediate medical attention for a calf that is swollen, red or warm on one side with persistent pain: that is not a cramp, but can be a deep vein thrombosis. For the workup, the guideline lists medical history and a neurological examination plus blood tests such as electrolytes, blood sugar, and kidney, muscle and thyroid values.
Why the calf cramps at night
According to the guideline, a muscle cramp is a sudden, painful and involuntary contraction of a muscle with palpable hardening. Almost everyone knows it: more than 90 percent of young adults report occasional cramps, 30 to 55 percent of older people have them regularly, and in pregnancy 35 to 55 percent of women are affected. Usually no cause is found; experts then speak of idiopathic cramps.
The common explanation of a “mineral deficiency” often falls short. Data from sport point more toward overexcitability of nerve and muscle under fatigue: among Ironman triathletes, pace and previous cramps predicted cramps, while blood salts and weight loss did not. That fits with stretching being helpful. As risk factors, the guideline lists among others older age, lack of exercise, alcohol, vascular disease, kidney and liver disease, nerve damage, an underactive thyroid and a range of medicines.
Magnesium, pickle juice, vitamin K2: what the studies show
Magnesium is the classic remedy for calf cramps, and the evidence is surprisingly thin. The 2020 Cochrane analysis assessed 11 trials with 735 participants. For idiopathic cramps, mostly in older people with night-time calf cramps, the number of cramps fell by only 0.18 per week compared with placebo, statistically indistinguishable from zero, and neither did intensity nor duration differ. Stomach complaints such as diarrhea occurred in 11 to 37 percent. The authors consider a noticeable benefit in older adults unlikely. According to the guideline, a proven deficiency should still be corrected.
In pregnancy the picture is more open. A separate 2020 Cochrane analysis of 8 small trials with 576 women found conflicting results: in one trial with 86 women, more achieved a halving of cramps on magnesium (risk ratio 1.42), while other analyses showed hardly any difference. Data quality was low to very low, and calcium and vitamins were not convincing either. Whether and what to take during pregnancy is best discussed with your obstetrician.
Pickle juice has a surprisingly specific lab finding. In one study, cramps in the foot were electrically induced in mildly dehydrated men. After a sip of pickle juice the cramp lasted 84.6 seconds, after water 133.7 seconds. Blood values did not change that quickly; the authors suspect a reflex from the mouth and throat triggered by the acidity. Whether it works the same way for real night-time cramps has not been studied.
Vitamin K2 caused a stir in 2024. In a Chinese trial with 199 people aged 65 and over, cramps fell on K2 from 2.60 to 0.96 per week over 8 weeks, while on placebo they rose from 2.71 to 3.63. The paper was retracted in 2025 and republished in corrected form, and there is no independent replication. It is also striking that cramps clearly increased on placebo. The guideline lists K2 only as a candidate from small studies still awaiting confirmation. An interesting approach, but not yet a proven remedy.
Quinine: effective, but only as a medical option
Quinine is the only remedy with adequate proof of efficacy. The Cochrane analysis of 23 trials with 1,586 participants found 28 percent fewer cramps, 10 percent lower cramp intensity and 20 percent fewer days with cramps compared with placebo, with low to moderate data quality. So the effect is moderate.
This is set against rare but serious side effects, above all blood disorders with a drop in platelets and heart rhythm disturbances. The US Food and Drug Administration counted 38 serious cases in the US up to 2008, 24 of them involving the blood, with 2 deaths, and since 2010 has explicitly warned against quinine for night-time leg cramps. In Germany, quinine sulfate has required a prescription since April 2015 and is only approved for very frequent or particularly painful night-time calf cramps when treatable causes have been ruled out and stretching and other non-drug measures are not enough. Whether it is an option for you is up to your doctor.
What the database says
Sorted by strength of evidence. The BK-Score rates the state of knowledge, not the substance.
- Calcium Evidence 9/10 · Well supported, heavily overhypedWell supported for bones in older age together with vitamin D. Against leg cramps in pregnancy, the effect remained unclear in the Cochrane analysis, with very low data quality.
- Potassium Evidence 8/10 · Well supportedWell supported for blood pressure, but there are hardly any data for leg cramps. With reduced kidney function or potassium-sparing diuretics, too much potassium is the central risk.
- Vitamin B Complex Evidence 8/10 · Well supported, heavily overhypedWell studied in large trials, but for leg cramps in pregnancy there is only one small trial with a positive result. High-dose B6 carries a documented risk of nerve damage.
- Magnesium Evidence 7/10 · Supported, with caveatsWell studied as a cofactor of hundreds of enzymes and for blood pressure, but according to Cochrane hardly effective against night-time calf cramps in older adults. A proven deficiency should be corrected.
- Electrolytes Evidence 7/10 · Supported, with caveatsThe benefit over water is tied to relevant sweat loss, for example in heat or long endurance exercise. For night-time cramps without such loss, there is no evidence.
- Coenzyme Q10 (Ubiquinol) Evidence 7/10 · Supported, with caveatsOften mentioned for muscle complaints on statins. There, a barely significant meta-analysis stands against the most rigorous single trial, so the benefit remains open.
- Vitamin K2 (MK-7 and MK-4) Evidence 6/10 · Supported, with caveatsBiologically well understood, but the endpoint trials are inconsistent. The only cramp trial is strikingly positive, but was retracted, republished in corrected form and is unconfirmed.
More topics on this – sorted by human evidence
Further topic pages that touch on this question. The BK-Score rates the state of knowledge, not the substance.
- Creatine monohydrate Evidence 9/10
- Vitamin B12 Evidence 8/10
- Vitamin D3 Evidence 8/10
- Vitamin E Evidence 8/10
- Sleep & sleep hygiene Evidence 7/10
- Taurine Evidence 6/10
- Magnesium L-threonate Evidence 5/10
Frequently asked questions
What helps immediately with a calf cramp at night?
Stretching. Straighten your leg and pull your toes toward your shin, using your hand or a towel, or stand up and press your heel firmly into the floor. The guideline recommends statically stretching the cramping muscle and/or tensing the opposing muscle. Afterwards, gentle walking or massage helps loosen the calf. The cramp passes on its own, usually after seconds to minutes.
Does magnesium help with leg cramps?
Hardly, in older adults with night-time cramps. The 2020 Cochrane analysis found only 0.18 fewer cramps per week compared with placebo, statistically indistinguishable from zero. Stomach complaints occurred in 11 to 37 percent. A proven magnesium deficiency should be corrected, and according to the guideline caution is needed with reduced kidney function. Stretching is better supported.
What causes night-time leg cramps?
Usually no clear cause is found. They are favored by older age, little exercise, fatigued muscles, alcohol and diseases of the nerves, kidneys, liver or thyroid. Medicines can also play a role, especially long-acting asthma inhalers and certain diuretics. A true mineral deficiency is less often the explanation than advertising suggests.
Does pickle juice help with cramps?
In the lab, yes, at least against artificially induced cramps. In mildly dehydrated men, an electrically induced cramp lasted 84.6 seconds after pickle juice and 133.7 seconds after water. Blood electrolytes did not change that quickly; a reflex from the throat is suspected. Studies on real night-time cramps are missing, and because of its salt content it is not a long-term solution with high blood pressure.
What helps with leg cramps in pregnancy?
Cramps affect 35 to 55 percent of pregnant women. The 2020 Cochrane analysis with 576 women found conflicting results for magnesium with low data quality, and calcium and vitamins were not convincing. Quinine is off-limits in pregnancy. Stretching and exercise are the safest options; discuss anything further with your obstetrician.
Does vitamin K2 help with night-time leg cramps?
A trial with 199 people aged 65 and over showed far fewer cramps on vitamin K2 than on placebo. However, the paper was retracted in 2025 and republished in corrected form, and independent confirmation is missing. It is striking that cramps increased on placebo. The guideline lists K2 only as a candidate from small studies that still need to be replicated.
Sources
- DGN: S1-Leitlinie Crampi/Muskelkrampf, AWMF 030-037, 2024
- Hallegraeff et al., J Physiother 2012
- Garrison et al., Arch Intern Med 2012
- Schwellnus et al., Br J Sports Med 2011
- Lau et al., J Int Soc Sports Nutr 2021
- Garrison et al., Cochrane Database Syst Rev 2020 (Magnesium)
- Luo et al., Cochrane Database Syst Rev 2020 (Schwangerschaft)
- Miller et al., Med Sci Sports Exerc 2010
- Tan et al., JAMA Intern Med 2024 (korrigiert neu veröffentlicht 2025)
- El-Tawil et al., Cochrane Database Syst Rev 2015 (Chinin)
- FDA: Drug Safety Communication Qualaquin (Chinin), 2010
- Pharmazeutische Zeitung: Neue Warnhinweise für Chininsulfat (BfArM), 2015
Information only, not medical advice, no diagnosis and no usage or dosing recommendation. Persistent or severe complaints should be checked by a doctor. Last updated: 2026-12-01.