X
More than 60,000 patients use Brite
4.6 stars
Your health finally understandable with Brite
1
Enter email and you're done. No subscription, no credit card.
2
Search, tap and you're done. Over 3,400 medicines.
3
Check, remind, get an overview.
Sarah K., 34
I finally understand my therapy. The app reminds me, answers my questions — and I don't feel alone with it anymore.
What really helps against leg cramps? Causes from magnesium deficiency and statins to diabetes and circulatory problems, treatment, and quick relief.
Sign up for free now
When to see a doctor: frequent cramps (>2x/week), one-sided swelling, pain on walking, neurological accompanying symptoms, new medications, diabetes with worsening
Leg cramps — medically crampi or muscle cramps — are sudden, painful, involuntary muscle contractions that usually affect the calf muscle, occasionally also the foot, thigh, or hand muscles. The cramp typically lasts a few seconds to minutes — feeling like an eternity — and often leaves a muscular soreness afterward that can last hours to days.
Leg cramps are among the most common complaints of all. About 60 percent of adults experience nighttime leg cramps at least once a year, and from age 60 it is nearly 80 percent. In younger people they occur mainly in connection with exercise, pregnancy, or certain medications — in older people, usually at night, with no clearly identifiable trigger.
In most cases, leg cramps are harmless and easily treated — whether through simple immediate measures such as stretching, through a change in lifestyle, or through targeted drug treatment. At the same time, however, they can also be a pointer to serious underlying conditions: diabetes with polyneuropathy, circulatory problems, electrolyte derailments, or thyroid disorders. A medical evaluation is therefore worthwhile with frequent or newly appeared cramps.
A leg cramp arises from an excessive excitability of the motor nerve endings in the affected muscle. Normally, an electrical impulse from the spinal cord triggers a controlled muscle contraction that is released again once the task is done. In a cramp, however, the nerve ending discharges uncontrollably and repetitively — the muscle contracts maximally and stays locked in this state until stretching or increased inhibitory signals release it.
The exact mechanisms are not fully understood, but several factors demonstrably play a role: electrolyte shifts (magnesium, potassium, sodium, calcium) change the electrical excitability of the nerves. Dehydration reduces the volume in the muscle tissue and concentrates metabolic products. Muscle fatigue and a shortened muscle length (e.g. with long sitting with a pointed foot) increase the readiness to cramp. Circulatory problems reduce the supply of oxygen and nutrients and accelerate the build-up of acid.
From this understanding follow the most important therapeutic levers: stretching interrupts the cramp acutely, an electrolyte balance and enough fluids act preventively, and targeted treatment of an underlying disease removes the cause.
Idiopathic nighttime leg cramps are by far the most common form — they have no clearly identifiable cause and are regarded as a condition in their own right. They typically occur out of sleep, usually in the second half of the night, often after lying for a long time with a pointed foot (plantar flexion). The cramp wakes you abruptly, can be very painful, and noticeably disrupts sleep quality.
Risk factors: older age, female sex, preceding intense physical activity, long standing, too-tight bedding (which pushes the feet into plantar flexion), family history — and of course underlying conditions such as diabetes, thyroid disorders, chronic kidney disease, or liver disease.
Prevention: stretch the calf muscle for 1–2 minutes before going to bed (see the immediate-relief section), drink enough during the day, not too much alcohol in the evening, do not tuck the foot end of the bedding in too tightly, regular moderate exercise. In studies, daily evening calf stretching alone reduces the frequency of nighttime cramps by about 30 to 50 percent.
During exercise, leg cramps occur particularly often in two situations: at the end of long, intense exertion (marathons, long cycling, triathlon) and with unaccustomed exertion without adequate preparation. The cause in these cases is usually a combination of muscle fatigue, dehydration, and electrolyte loss through sweating.
A classic example: a marathon runner who feels the first cramp symptoms from kilometer 30 and gets a full cramp in the final sprint. Studies show: athletes with frequent exertion cramps often have a lower cramp threshold in their motor nerve endings — a constitutional factor that can be influenced through training, mineral balance, and targeted stretching.
What helps: adequate fluid and electrolyte intake during exertion (isotonic sports drinks for long sessions), gradually increasing the load, regular stretching of the calf muscle, and magnesium supplementation if a deficiency is documented. With recurring cramps, a sports-medicine examination with an electrolyte analysis before and after exertion is worthwhile.
The best-known suspect — and at the same time the most frequently overrated. A documented magnesium deficiency does indeed cause leg cramps (common with chronic alcohol use, diabetes, diuretic treatment, diarrhea, or malabsorption). In people without a deficiency and with normal lab values, however, studies show a rather limited effect of magnesium on leg cramps. Even so, supplementation is sensible in many cases — because of its good tolerability and low risk.
Potassium loss is a very common and often overlooked cause of leg cramps — especially with diuretic treatment (loop diuretics such as furosemide, thiazides such as hydrochlorothiazide), with chronic diarrhea, vomiting, laxative misuse, or with primary aldosteronism. A simple measurement of the potassium level in the blood clarifies the suspicion — values below 3.5 mmol/l need treatment.
Rare, but relevant — especially in older people on diuretics, with excessive drinking ("water intoxication" in marathon runners), with heart failure, or with disorders of the hormone ADH (SIADH). Leg cramps here are usually combined with confusion, headache, and nausea.
A pronounced calcium deficiency can lead to typical carpopedal spasms of the hands and to leg cramps (tetany). Causes: vitamin D deficiency, underactive parathyroid glands, chronic kidney failure. Vitamin D deficiency alone is very common and can contribute to an increased readiness to cramp — measuring the 25-OH vitamin D level is worthwhile especially in winter.
Drinking too little — especially in older people with a reduced sense of thirst and on diuretics — is a common, easily remedied cause. About 1.5 to 2 liters a day are recommended, more with physical activity or hot weather. An important exception: with severe heart or kidney failure, different fluid amounts apply — please clarify with a doctor.
Statins (atorvastatin, simvastatin, rosuvastatin, pravastatin) are among the most prescribed medications in the world and effectively lower LDL cholesterol — they are a central pillar of preventing heart attacks and strokes. A statin-associated myopathy, however, is a known and not-rare side effect: muscle pain, muscle weakness, leg cramps.
Frequency and course: in randomized studies, 7 to 10 percent of statin users complain of muscle symptoms — many of which, however, also occurred under placebo (the nocebo effect). True muscular side effects typically appear within the first 6 months, often dose-dependent, more often in women, older people, those with low body weight, hypothyroidism, high alcohol use, or in combination with other medications (e.g. gemfibrozil, ciclosporin, macrolide antibiotics).
What to do: with a suspicion, see a doctor for measurement of creatine kinase (CK) — with markedly raised values, the statin must be stopped immediately, because in the worst case there is a risk of rhabdomyolysis (muscle breakdown with kidney damage). With normal CK and persistent complaints: a dose reduction, a switch to a different statin, or a switch to alternative lipid-lowering drugs (e.g. ezetimibe, PCSK9 inhibitors). Coenzyme Q10 as a supplement is often recommended — the evidence is limited, but its use is safe.
A wide range of medications can cause leg cramps as a side effect — usually via electrolyte shifts, neuromuscular effects, or microcirculation problems. Particularly relevant:
Important: never stop suspect medications on your own — many patients absolutely need the treatment. A medical evaluation with electrolyte measurement and, if needed, a dose adjustment or switch is the right way to go. More: drug interactions, taking medication correctly.
With diabetes, leg cramps are a common accompanying symptom — especially in the context of diabetic polyneuropathy. This nerve damage affects about 30 to 50 percent of all long-standing diabetics and shows itself, besides cramps, with tingling, numbness, burning pain especially at night, and sensory disturbances. Good blood sugar control slows the progression but usually cannot reverse existing damage.
Other neurological causes of cramps: amyotrophic lateral sclerosis (ALS) — very rare, but important to know, since leg cramps and fasciculations (muscle twitches) can be among the early signs. Multiple sclerosis, herniated discs with irritation of the nerve roots (especially L5/S1 — typically one-sided), polyneuropathies of other causes (alcohol, vitamin B12 deficiency, thyroid, kidney failure). With any persistent or progressive symptom pattern, a neurological evaluation should be done.
Peripheral arterial disease (PAD) is an important and often-overlooked cause of leg cramps — especially in smokers, diabetics, patients with high blood pressure, and older people. Characteristic is intermittent claudication ("window-shopping disease"): cramp-like calf pain that appears on walking after a reproducible distance and quickly disappears again when standing — so-called walking-distance complaints.
Difference from typical leg cramps: PAD cramps occur under exertion and stop at rest, whereas idiopathic nighttime cramps occur at rest (lying down). With PAD, the foot pulse is often missing, the skin is cool, the hair is reduced. A medical evaluation includes the ankle-brachial index (ABI) and, if needed, Doppler ultrasound and angiography. Treatment: consistent reduction of risk factors (stop smoking!), walking training, antiplatelet agents, and, if needed, interventional opening of blocked vessels.
Leg cramps are a very common complaint in pregnancy — about 30 to 50 percent of pregnant women are affected, usually from the second trimester. Causes are changes in calcium and magnesium metabolism, increased pressure on the leg veins, changes in muscle physiology, and an increased need for fluids.
What helps in pregnancy: magnesium supplementation (300–360 mg/day) has shown a moderate but consistent effect in studies and is the standard recommendation. Optimize calcium and vitamin D supply. Regular calf stretching before going to bed. Drink enough. Avoid long sitting or standing without movement breaks. With cramps that cannot be remedied — especially with swelling — see a doctor because of the increased risk of thrombosis.
With increasing age, the frequency of leg cramps rises markedly — from age 60 about 50 percent suffer from them regularly, from age 80 up to 80 percent. Several factors act together: a reduced sense of thirst with chronic dehydration, several long-term medications with cramp potential, pre-existing conditions such as diabetes or kidney failure, decreasing muscle mass (sarcopenia), less exercise, and a shortened calf muscle from long sitting.
Therapeutic approach in older people: critically review the medication list (reduce polypharmacy), measure electrolytes and vitamin D, ensure enough fluids (provided heart and kidney function allow it), regular calf stretching and moderate exercise, and, if needed, low-dose magnesium or, as a second line, a cramp prophylactic such as quinine sulfate (only under medical supervision, because of rare side effects).
See a doctor promptly if:
The medical evaluation follows a step-by-step scheme:
More: preparing for a doctor's appointment, understanding blood test results.
What really helps in the moment of a cramp — tried-and-tested and fast-acting:
The long-term strategy against leg cramps rests on three pillars: lifestyle, mineral balance, and medications if needed.
Magnesium is by far the best-known and most frequently used supplement for leg cramps — the evidence, however, is nuanced:
When magnesium clearly helps: with a documented magnesium deficiency (serum magnesium below 0.7 mmol/l), with diuretic treatment, with chronic alcohol use, with diabetes, in pregnancy. In these constellations the effect is well documented and magnesium is an established standard.
When the effect is limited: with idiopathic nighttime leg cramps without a documented deficiency. Studies here show a rather weak effect beyond placebo. Even so, many people subjectively report improvement — the trial over 4 to 6 weeks is justifiable because of the low side effects.
Which magnesium preparation: organic compounds such as magnesium citrate, magnesium glycinate, or magnesium malate are absorbed considerably better than inorganic ones (magnesium oxide, carbonate). Dose: 300–400 mg of elemental magnesium per day, best in the evening. Main side effect: soft stool or diarrhea with too high a dose.
Caution with impaired kidney function — here magnesium accumulation can occur. Talking to a doctor is sensible. Magnesium also has several interactions: it should be taken 2 hours apart from levothyroxine, iron supplements, and tetracycline and fluoroquinolone antibiotics.
brite supports you in better understanding leg cramps and keeping track of your medications.