Leg Cramps and Charley Horses: Causes, Quick Relief and When to Worry

A leg cramp, the everyday charley horse, is a sudden, painful tightening of a leg muscle that will not relax when you tell it to. It is usually the calf, sometimes the back or front of the thigh, and most often at night or at rest. A cramp usually lets go within seconds to about 10 minutes, the muscle can stay sore for a day, and in most people no cause is ever found. Stretching the muscle the other way is the quickest fix. Cramps are common and usually harmless, but a few things are worth knowing: some medicines make them more likely, several conditions raise the odds, and a few problems that need treatment, a blood clot above all, can feel like a cramp at first. This guide explains what a charley horse is, why legs cramp at night, how to stop a calf or thigh cramp, what the evidence says about stretching, magnesium, quinine and a new trial of compression stockings, and when to see a doctor.

When leg pain is not just a cramp

  • One calf or leg that is swollen, warm, red or darkened, or a constant, throbbing ache in one calf or thigh that is getting worse rather than fading like ordinary after-cramp soreness: get same-day care, because a blood clot (deep vein thrombosis) has to be ruled out, especially if you are pregnant or gave birth in the last 3 months, have had recent surgery or a long journey, have had a clot before, or are being treated for cancer. Call 911 if you are also short of breath or have chest pain.
  • A leg or foot that suddenly turns cold, pale, numb or very painful: call 911. A suddenly blocked artery is an emergency.
  • After an injury, a crush, a broken bone or a tight cast: pain far worse than the injury seems to explain, especially if stretching the muscle makes it much worse, or a tense, swollen muscle: go to an emergency room, and call your doctor at once if you have a cast. Pressure building inside the muscle (acute compartment syndrome) is a surgical emergency.
  • Dark, tea- or cola-colored urine with muscle pain or weakness, especially after hard exercise or work in the heat, a fall or a long time lying still, heavy drinking, a seizure, or starting a medicine such as a statin: stop any exertion, drink water and get medical care right away. Muscle breakdown (rhabdomyolysis) can damage the kidneys.
  • Leg pain with weakness or numbness in both legs, numbness around the genitals or bottom, or new trouble controlling your bladder or bowels: go to an emergency room, because these can mean serious pressure on the nerves in the lower back.
  • Feet or toes that ache at rest, especially in bed at night and better with the leg hanging down, or a foot sore that will not heal: get same-day care, because the blood supply may be critically low.
  • Cramping that will not let go despite stretching and walking, or pain that becomes unbearable: get medical care right away.

What a charley horse is

Doctors use charley horse as another name for a muscle cramp. The Merck Manual puts it this way: “A muscle cramp (charley horse) is a sudden, brief, involuntary, painful contraction of a muscle or group of muscles.” Dictionaries are narrower. Merriam-Webster defines it as “a muscular pain, cramping, or stiffness especially of the quadriceps that results from a strain or bruise”, the front-of-thigh ache that can follow a strain or a blow. Where the name came from is a mystery: the American Heritage Dictionary calls it “Originally baseball slang, of unknown origin,” and it dates from the 1880s. Charlie horse is a common spelling, though Merriam-Webster does not list it. This guide uses charley horse in the everyday sense, a sudden cramp in a leg muscle. A thigh bruised by a knee or a ball is a muscle injury rather than a cramp; rarely, a badly bruised muscle swells enough to cause the pressure emergency described in the box above, so severe, worsening pain with a tense, swollen thigh needs an emergency room.

In a cramp, the muscle contracts on its own and stays contracted: it feels hard, may visibly bunch up, and the pain can be intense. A calf cramp pulls the foot and toes downward. The Merck Manual notes that “Leg cramps at night usually occur in the calf and cause plantar flexion of the foot and toes, but cramping of other muscle groups is also possible.” The NHS says a leg cramp lasts from a few seconds to 10 minutes, and the muscle can feel sore and tender for up to 24 hours afterwards.

There are two main kinds:

  • Night (nocturnal) leg cramps come at rest or wake you from sleep. Sleep medicine calls them sleep-related leg cramps. The American Academy of Sleep Medicine describes them as “sudden and intense feelings of pain in the leg or foot” that come on in bed and ease when the muscle is stretched.
  • Exercise-associated cramps strike during or soon after hard or long exercise, often in the calf or thigh (below).

The calf is by far the commonest place. In a French study of 236 people aged 60 and over who had cramps, 80% had them in the calves, 30% in the thighs and 15% in the feet (some had more than one). Foot and toe cramps have their own guide: Foot and toe cramps →

How common leg cramps are

Very common, and more so with age.

  • In a US national health survey, 6% of adults had night leg cramps more than five times a month.
  • In an urban US primary care clinic, 52% of 294 patients, average age 46, reported leg cramps; more than half of them said cramps sometimes or often disturbed their sleep.
  • Half of 365 outpatients aged 65 and over in a clinic survey had cramps, mostly at night. The American Academy of Sleep Medicine estimates that a third of people over 60 have night leg cramps at least once every two months.
  • About 7% of children and teenagers get night leg cramps; in a study of 2,527 children, none were younger than 8, and cramps were most common at 16 to 18.
  • In pregnancy, figures range from 18% to 58%, rising in the later months (see below).

Night cramps also follow the seasons. In British Columbia, new prescriptions of quinine for cramps, and Google searches about leg cramps in the US and Australia, peaked in summer and were roughly double their winter lows. Nobody knows why.

They matter more than their reputation suggests. Studies link frequent night cramps with poorer sleep and lower quality of life, yet many people never mention them to a doctor: in a British survey, only a third of people with cramps had told their GP.

How to stop a leg cramp

Most cramps stop on their own, but stretching the cramped muscle in the opposite direction usually shortens them. No trial has compared these methods; they are what Mayo Clinic, the NHS and orthopedic surgeons recommend.

  1. Calf cramp: pull the foot up. Sit with the leg straight and pull your toes and the top of your foot back toward you, by hand or with a towel looped around the ball of the foot. Mayo Clinic’s advice: “For a calf cramp, keep the leg straight while pulling the top of your foot on the side that’s cramped toward your face.”
  2. Or stand on it. Holding on to the bed or a chair, put your weight on the cramped leg and press down firmly through the heel; then walk around. Mayo Clinic adds that standing and pressing down this way helps the back of the thigh too: “This helps ease a cramp in the back of the thigh too.”
  3. Front of the thigh: bend the knee. Holding a chair for balance, pull the foot of the cramped leg up toward your buttock. In Mayo Clinic’s words: “For a front thigh cramp, try pulling the foot on that leg up toward your buttock.”
  4. Rub it. Massage the knot while you stretch.
  5. Use warmth or ice afterwards. A warm towel, bath or shower relaxes a tight muscle; ice wrapped in a cloth eases soreness. If your feet are numb or your circulation is poor, test water with your hand or elbow, and do not put a heating pad or hot water bottle on your legs or feet.
  6. Save painkillers for the soreness. In the NHS’s words, “Paracetamol or ibuprofen can help to ease muscle soreness after a cramp, but they will not help when it’s happening as they take too long to work.” Paracetamol is the UK name for acetaminophen. Ask your doctor before taking ibuprofen if you have kidney disease, heart failure or a stomach ulcer, or take a blood thinner.

Why legs cramp at night

Usually there is no single cause

In most people, no cause is found. The leading explanation is overexcited nerve signals from the spinal cord to the muscle, with muscle fatigue as a trigger, rather than anything wrong with the muscle or the blood. Several everyday things make cramps more likely:

  • Age. Cramps become more common after middle age.
  • A pointed foot in bed. Lying with the toes pointed keeps the calf shortened, which may make it easier to cramp. In an Australian survey of 80 people with weekly calf cramps, those who could name a trigger described pointing the foot.
  • Too little activity, or too much. In small French studies of adults over 60, people with a sedentary lifestyle were far more likely to have night cramps, as were people who drank alcohol; these studies show links, not proof of cause. Unaccustomed exercise raises the odds too, and in a Korean study of 2,165 workers, men who stood for long hours reported more night cramps.
  • Pregnancy, especially the second half.

Dehydration and electrolytes: less important than you have been told

Dehydration and low potassium or magnesium are the most popular explanations for leg cramps, but for ordinary night cramps the evidence does not support them. American Family Physician’s review found that night cramps have not been linked with dehydration or with low potassium, sodium or magnesium. Studies of athletes point the same way: in a 2026 analysis of nine studies following 11,274 people, the only strong predictor of exercise cramps was having had them before, and hydration made no consistent difference.

Genuinely low levels do cause cramps, though, and they come with other clues. The Merck Manual says a bigger drop in potassium “can cause muscle weakness, cramping, twitches, and even paralysis.” Think of a real electrolyte problem when cramps come with vomiting or diarrhea, a new water pill, heavy sweating, dialysis, muscle weakness or twitching, cramps in many muscles at once, or tingling around the mouth with spasms of the hands and feet, which can mean low calcium. These need a blood test soon: the same day if your hands and feet go into spasm, you feel very weak, or vomiting or diarrhea will not settle. Call 911 for throat tightness or trouble breathing, a seizure, fainting, or a racing or irregular heartbeat.

Medicines

Several medicines have been linked to cramps. A study of prescription records in British Columbia compared how often people started treatment for cramps in the year after beginning a new medicine with the year before. Long-acting inhalers for asthma or COPD (long-acting beta-agonists) more than doubled it, and so did potassium-sparing water pills; thiazide-type water pills raised it by about half, and statins only slightly. Studies like this cannot prove cause, and other studies have found no link with water pills. Statins are often blamed for leg symptoms, but in blinded trials of more than 120,000 people, cramps were only marginally more common on a statin than on placebo, and the researchers concluded that “Most (>90%) of all reports of muscle symptoms by participants allocated statin therapy were not due to the statin.” If you develop unexplained muscle pain or weakness on a statin, call your prescriber promptly; dark urine needs same-day care. Drug databases also list cramps with intravenous iron sucrose, raloxifene, estrogens, naproxen and teriparatide, among others.

If your cramps began or worsened after a new medicine or dose change, tell your prescriber. Do not stop a heart, blood pressure, cholesterol or lung medicine on your own.

Medical conditions linked to leg cramps

  • Nerve damage and diabetes. In one study, 63% of adults with polyneuropathy had cramps, often disabling, and in a small study of 69 people with type 2 diabetes, 78% reported cramps. Burning, tingling or numbness in the feet is the clue. Burning or numb feet →
  • Spinal stenosis. Narrowing of the spinal canal in the lower back squeezes the nerves to the legs. In a Japanese study, 71% of 120 people having surgery for it had leg cramps, mostly at night, against 37% of 370 older adults from the general population.
  • Cirrhosis of the liver (67% of patients in one study) and kidney failure on dialysis (55% across many studies). Both have their own specific treatments, so mention cramps to your specialist.
  • Peripheral artery disease and vein disease: see the next section.
  • ALS (amyotrophic lateral sclerosis), rarely. Cramps can be an early symptom, and the clue is that they come with muscle twitching, stiffness, weakness or wasting.
  • Thyroid disease is often listed, but the link is weak.

Are leg cramps a sign of poor circulation?

Usually not, but the question has two parts, because arteries and veins behave very differently.

Arteries: claudication is a look-alike, not a cramp

Narrowed leg arteries (peripheral artery disease, or PAD) cause cramping, aching or tiredness in the calf, thigh or buttock when you walk, which goes away within a few minutes of standing still. That is claudication, and it is one of the most important cramp look-alikes. As the Merck Manual explains, “Muscle ischemia during exertion in patients with peripheral artery disease (claudication) may cause calf pain, but this pain is due to inadequate blood flow to muscles, and the muscles do not contract as with a cramp.” The pattern is the giveaway: a predictable walking distance brings it on and rest relieves it. If that sounds familiar, ask for an ankle-brachial index test; the same artery disease raises the risk of heart attack and stroke. Artery disease is also more common among people who get cramps: in the French study, 16% of people with cramps had it, against 2% of those without. Leg pain when walking →

In advanced artery disease, the feet ache at rest, especially lying in bed, and the Merck Manual notes that “For relief, the person may hang the feet over the side of the bed or rest sitting up with the legs hanging down.” That is not a cramp, and it needs same-day care and prompt assessment by a vascular specialist.

Veins: a weak and inconsistent link

The vein story is murkier. People with vein problems do report more cramps. In a Japanese study of 288 people with leaky leg veins, 67% had cramps in the past year, against 53% of 550 people of the same age from the general population, and their cramps were more often at night and in the calf: “Muscle cramps in patients with varicose veins occur more frequently and more often at night and in the calf in comparison with those from the general population.” In the French study, 30% of people with cramps had venous insufficiency, against 3% of those without.

But large population studies that account for age and sex find little or no link. In a German study of 9,100 working adults, cramps were somewhat more common in people with small skin veins, but the researchers concluded that “age and sex are the most relevant explanations for these symptoms.” In the Edinburgh Vein Study of 1,566 adults, cramps were not related to varicose veins in either men or women: “Even in the presence of trunk varices, most lower limb symptoms probably have a non-venous cause.” The German Bonn Vein Study linked cramps only with more advanced vein disease, with swelling or skin changes, not with varicose veins alone.

Vein procedures have not been shown in controlled trials to relieve cramps. American Family Physician’s review is blunt: “Venous insufficiency is also linked to leg cramps, but research has not demonstrated that cramps are caused by tissue hypoxia or toxic metabolites, and treatment of venous insufficiency has not been shown to relieve cramps.” The US vascular guideline does list cramping among the possible symptoms of varicose veins: “Symptoms of varicose veins may include pain, burning, cramping, feeling of limb heaviness or swelling, restless leg or itching.” The same guideline weakly suggests some venoactive supplements, such as horse chestnut extract, for vein-related night cramps, but the evidence is low quality and none is approved by the FDA. The fair summary is that veins may contribute in some people, especially those with swelling and skin changes, but cramps on their own are not a reason for a vein procedure. A new trial of compression stockings, below, is the most interesting development. Varicose veins →

Leg cramp or something else?

Several problems can feel like a cramp at first. These are the ones worth telling apart.

Condition What it feels like Clues What to do
Cramp A hard, visible knot; the foot points down; sore afterwards At rest, at night, or during or after exercise; lets go with stretching within minutes Stretch, stand, walk; see below for prevention
Blood clot (DVT) Throbbing or aching pain in one calf or thigh Swelling, warmth, redness or darkened skin; pain persists and does not release Same-day care; 911 if short of breath or chest pain
Claudication (artery disease) Cramping, aching or tiredness in the calf, thigh or buttock, without a knot Comes after a predictable walking distance; goes after a few minutes standing still Ask for an ankle-brachial index test
Rest pain (advanced artery disease) Aching or burning in the feet or toes At rest, worse lying flat; better with the leg hanging down Same-day care and prompt assessment by a vascular specialist
Restless legs syndrome An urge to move the legs, with crawling, pulling or aching feelings; no hard muscle Evenings and at rest; moving brings brief relief See a doctor; it has its own treatments
Sciatica or spinal stenosis Pain, burning, tingling or numbness down the back of the leg Often with back or buttock pain; stenosis eases when you sit or lean forward See a doctor; emergency if both legs, groin numbness or bladder trouble
Calf muscle tear (tennis leg) A sudden pop or tearing in the calf while pushing off Bruising and swelling follow; walking hurts Same-day care with an ultrasound if the calf swells, because a clot has to be ruled out
Burst Baker’s cyst Sudden pain and swelling at the back of the knee and calf Often a known swelling behind the knee; bruising may follow Same-day care with an ultrasound: it looks like a clot, and the two can occur together
Compartment syndrome Acute: severe, worsening pain after an injury. Chronic: cramping or tightness during exercise Acute: pain worse with stretching, tense muscle. Chronic: stops with rest Acute: emergency. Chronic: see a sports or orthopedic doctor
Rhabdomyolysis Muscle pain or cramps and weakness after prolonged hard exertion or heat Dark, tea- or cola-colored urine Immediate medical care

The two most important differences: a cramp is a hard knot that lets go within minutes, while a clot causes pain that persists, usually with swelling or warmth in one leg; and claudication is not a knot at all but pain that walking brings on and standing still relieves. Restless legs is easy to confuse with cramps (it is usually not painful, though some people describe an ache), but in American Family Physician’s words, “Restless legs syndrome is marked by an irresistible urge to move or shake the legs and does not cause pain or tight muscles.” A calf tear typically happens in an active middle-aged person pushing off, and people “feel a pulling or tearing sensation within the calf at the time of injury.” DVT: symptoms and why timing matters →

What prevents leg cramps, and how good is the evidence?

American Family Physician’s verdict still stands: “No current treatments for leg cramps have been proven both safe and effective.” Here is what has been tested, and how good the evidence is.

Stretching

Stretching is free and safe, but the trials disagree. In a Dutch trial of 80 adults over 55, stretching the calves and hamstrings every night before bed for six weeks reduced how often cramps came and how bad they were. In an English trial of 191 people, calf stretching alone made no difference. A 2021 Cochrane review rated the evidence low: calf and hamstring stretching together may ease the severity of night cramps in people over 55, while the effect on how often they come is uncertain. A 2024 trial of 98 people with frequent cramps, about half of whom had cirrhosis, found that five weeks of stretching and five weeks of meditation both reduced cramp severity and improved sleep; as the authors put it, “While patients preferred stretching, there was no difference in effect between arms.”

If you want to try it, copy the trial’s basic idea: stretch your calves and the backs of your thighs every night just before bed. One common way is to stand facing a wall with your hands on it, step one foot back, keep that heel flat and the knee straight, and lean in until you feel a stretch in the calf; then sit with one leg straight and reach toward the ankle to stretch the back of the thigh. Advice pages suggest holding each stretch for about 30 seconds (Mayo Clinic says 30 to 60), without bouncing, and repeating a few times.

Compression stockings: a promising new trial

The newest evidence comes from a Finnish trial published in 2026. It randomized 121 adults aged 50 to 85 who had at least two leg cramps a week, recorded their cramps for four weeks, then gave them one of three things for four more weeks: knee-high medical compression stockings to wear through the day, a daily magnesium pill (250 mg of magnesium), or a dummy pill. Participants started with a median of 4 cramps a week; by the end, the median was 2 with the stockings and 3 with the dummy pill. After adjusting for starting levels, stockings meant about 1.4 fewer cramps a week than the dummy pill, and fewer night-time awakenings blamed on cramps (the authors note this may partly reflect fewer trips to the bathroom). Magnesium did no better than the dummy pill. The authors concluded that “Among older adults, daily use of compression stockings was effective in reducing the frequency and pain intensity of leg cramps, as well as the number of nocturnal awakenings caused by them.”

This is one trial, and people knew whether they were wearing stockings, which can exaggerate a benefit; it needs repeating. About 1 in 5 people given stockings dropped out, four of the 42 because of eczema, pain or itching, and stockings were worn every day in only about 4 in 10 of the weeks. The trial used light (Class I) medical-grade knee-highs, though the exact pressure is unclear. It did not include anyone with artery disease, and that matters, because an international consensus warns that compression on a leg with poor arterial blood flow can damage the skin and tissue underneath. If you have known or suspected artery disease, or have had a leg-artery bypass or stent, do not use compression until a clinician has checked your circulation, usually with an ankle-brachial index, and says it is safe. Ask first, too, if you have diabetes, numb feet, leg pain when walking, fragile skin or leg ulcers, heart failure or severe kidney disease. Compression safety: who needs a check first → Compression socks, chosen by need →

Magnesium: probably not, by mouth or on the skin

Magnesium is the most popular cramp remedy and probably does not work for the commonest kind. A 2020 Cochrane review of 11 trials concluded: “It is unlikely that magnesium supplementation provides clinically meaningful cramp prophylaxis to older adults experiencing skeletal muscle cramps.” The Finnish trial agrees, and in a Swiss population study of up to 3,887 adults, people taking magnesium reported more night cramps, not fewer. The authors noted that “Magnesium supplementation did not prevent night cramps.” That does not show magnesium causes cramps (people with cramps may be the ones who start taking it), but it offers no sign of benefit. The trials in pregnancy conflict. If a blood test shows you are low in magnesium, replacing it makes sense. If you have kidney disease, ask your doctor before taking it.

We found no trials of magnesium sprays, oils, lotions or Epsom salt soaks for cramps. Magnesium barely crosses intact skin: a 2017 review found that “the propagation of transdermal magnesium is scientifically unsupported,” a 2026 laboratory study on pig skin found very little passes the skin’s outer layer, and in a 2025 trial a commercial magnesium gel did not reduce muscle soreness after exercise. Rubbing in a lotion is a massage, which is pleasant, but the magnesium itself is not doing the work.

Quinine and tonic water: no

Quinine, a malaria drug, does reduce cramps, by about 28% over two weeks in a Cochrane review of 23 trials, but it can cause rare and dangerous reactions, including a collapse in the platelets that help blood clot. In 2010 the FDA stated: “Qualaquin should not be used for night time leg cramps.” It had received 38 reports of serious side effects in the US, including two deaths. Quinine has not been allowed in nonprescription cramp remedies since 1995; the FDA ruled that “There is a lack of adequate data to establish general recognition of the safety and effectiveness of quinine sulfate, vitamin E, or any other ingredients for OTC use in the treatment and/or prevention of nocturnal leg muscle cramps.” The American Academy of Neurology also advises against routine use. If you already take quinine and notice easy bruising, nosebleeds, bleeding gums, blood in your urine or stool, or unusual purple, brown or red spots on your skin, go to an emergency department now and tell the team you take quinine, which can make the platelets fall suddenly; call 911 if bleeding will not stop or you feel faint. Red dots on the legs and feet →

Tonic water is not a safe workaround. US rules cap the quinine in soft drinks at 83 parts per million, roughly 30 mg in a 12-ounce can at most, while the trials used 200 to 500 mg a day. No trial has tested tonic water itself, and anyone who has reacted to quinine should avoid it.

Homeopathic leg cramp tablets

US pharmacies sell homeopathic tablets for leg cramps. One brand, Hyland’s Leg Cramps, contains a homeopathic dilution (3X, about 1 part in 1,000) of cinchona bark, the plant that quinine comes from, with several other plant and mineral ingredients. DailyMed lists its marketing status as unapproved homeopathic, its label warns “Ask a doctor before use if you are sensitive to quinine,” and its relief claim carries the footnote “CLAIMS BASED ON TRADITIONAL HOMEOPATHIC PRACTICE, NOT ACCEPTED MEDICAL EVIDENCE.” The FDA has not reviewed homeopathic products for safety or effectiveness; since 1995, any nonprescription product sold for night leg cramps has needed FDA approval, and these tablets have none. We found no trial of them for cramps. If you have ever reacted to quinine, avoid them.

Vitamins and prescription options

  • Vitamin B complex and the blood pressure drug diltiazem are rated possibly effective by the American Academy of Neurology, each on the strength of one small trial (28 and 13 people).
  • Gabapentin and baclofen have only weak evidence: an open study without a comparison group, and a small trial in spinal stenosis that compared the two drugs with each other but not with a placebo.
  • Vitamin E did not help in a small crossover trial.
  • Vitamin K2 appeared to cut night cramps by about two-thirds in a 2024 trial of 199 older adults (from about 2.6 to 1 a week, while the placebo group’s rose), but the paper was retracted and replaced in 2025 and independent reviewers have questioned how it was carried out; the evidence is unclear. K2 can interfere with the blood thinner warfarin.
  • In cirrhosis, a 2025 review of 12 trials found that baclofen, methocarbamol, orphenadrine and taurine each beat a placebo; these are decisions for your liver specialist.

Pickle juice and other drinks

Pickle juice has the best evidence of any drink, though not for night cramps specifically. In a laboratory study, a small drink of pickle juice shortened deliberately triggered cramps by 49 seconds compared with water, faster than any fluid or salt could be absorbed, which points to a reflex from the mouth and throat. In a trial in people with cirrhosis, “sips of pickle brine consumed at cramp onset improve cramp severity without adverse events.” Pickle juice is very salty, so if you have been told to limit salt or fluids, for heart failure, kidney disease, high blood pressure or fluid buildup from liver disease, ask your doctor first. Sports drinks make sense after heavy sweating. No trial shows that drinking more water prevents night cramps.

Daily habits worth trying

None of these has been tested in a trial, but they are harmless: loosen the sheets and blankets at the foot of the bed so they do not push your toes down; avoid lying with your feet pointed; stay active during the day, since a sedentary lifestyle is linked with night cramps; and go easy on alcohol, which is linked with them too.

Option Best evidence Verdict
Calf and hamstring stretching Trials disagree; Cochrane rates the evidence low Harmless; may ease severity
Knee-high compression stockings One trial of 121 people (2026); stockings not blinded Promising; untested in artery disease. Get your circulation checked (ankle-brachial index) first if you have artery disease, diabetes or numb feet
Magnesium by mouth Cochrane review of 11 trials; 2026 trial; Swiss cohort Unlikely to help older adults
Magnesium sprays, lotions, Epsom salts No cramp trials; barely absorbed Unsupported
Quinine About 28% fewer cramps; rare serious harm Do not use (FDA)
Tonic water No trials; little quinine Not recommended
Homeopathic leg cramp tablets No trials; not FDA evaluated Untested
Vitamin B complex, diltiazem One small trial each Possibly effective
Vitamin K2 One trial, retracted and replaced Unclear
Pickle juice at the start of a cramp Laboratory study; one trial in cirrhosis Plausible; untested for night cramps

Leg cramps in pregnancy

Leg cramps are a familiar part of pregnancy, mostly calf cramps at night in the second and third trimesters. Estimates vary widely: 18% of 1,835 pregnant Australian women in one survey, and 58% of women in the last three months of pregnancy in a study in Jordan. They usually go away after the birth. The cause is unclear.

The same stretches are reasonable to try, although they have not been tested in pregnancy. The NHS advises gentle exercise, especially ankle and leg movements, and says: “It may help to ease cramp if you pull your toes hard up towards your ankle or rub the muscle hard.” As for supplements, a 2020 Cochrane review of eight small trials found that “It is unclear from the evidence reviewed whether any of the interventions provide an effective treatment for leg cramps.” The trials of magnesium conflict, and the evidence for calcium is very weak. Quinine should not be used. Ask your obstetric clinician before taking any supplement for cramps.

Pregnancy and the 3 months after giving birth raise the risk of blood clots, the CDC says, so be alert to leg pain that does not behave like a cramp. Australia’s Pregnancy, Birth and Baby service puts it simply: “If pain in your leg doesn’t go away, or if your leg is red, warm or swollen, see your doctor immediately.” Compression socks in pregnancy →

Cramps during or after exercise

Exercise cramps are a different animal. A sports medicine review defines them this way: “Exercise associated muscle cramping (EAMC) is defined as a painful, spasmodic, and involuntary contraction of skeletal muscle that occurs during or immediately after exercise.” They strike when you push harder or longer than usual, and people who have had them before are the most likely to get them again. Despite the advice to drink more and take salt, studies of runners and triathletes have not found that dehydration or low electrolytes predict them; tiring muscles and overexcited nerve signals fit the evidence better. Stop, stretch the muscle gently and rest. For people sweating heavily in hot conditions, the National Institute for Occupational Safety and Health advises water with a snack or a sports drink every 15 to 20 minutes, no salt tablets, and medical help if the cramps do not settle within an hour, or sooner for anyone with heart problems or on a low-sodium diet. Heat cramps can be part of heat exhaustion: if they come with dizziness, nausea, headache or heavy sweating, stop, cool down and get medical help, and call 911 for confusion, fainting or a seizure.

When to see a doctor or podiatrist

Make an appointment if:

  • cramps are disturbing your sleep, or leaving you tired during the day
  • they come often, last longer than 10 minutes, or do not improve with stretching and the steps above
  • you also have numbness, burning, tingling or swelling in your feet or legs
  • you notice muscle weakness, muscle loss or twitching
  • cramps started after a new medicine or a dose change
  • walking brings on cramping that stops when you rest
  • you have diabetes, kidney disease, liver disease or artery disease, or you are pregnant

What to expect

The history does most of the work: when the cramps come, which muscles, what eases them, and every medicine you take. A doctor will usually check your legs and feet, your pulses, sensation, strength and reflexes. For ordinary cramps, American Family Physician advises against a battery of tests: “Routine blood tests are not helpful in the diagnosis because leg cramps have no proven association with electrolyte abnormalities, anemia, glucose levels, thyroid function, or kidney disease.” Targeted tests make sense when something points to a cause: electrolytes and kidney function if you take water pills or have been vomiting, blood sugar and vitamin B12 if your feet are numb, an ankle-brachial index if walking brings the pain on, and an ultrasound if a clot or a muscle tear is possible.

A podiatrist can check the circulation and nerves in your feet, sort out foot and ankle look-alikes, and advise on footwear and safe compression. A vascular specialist is the right referral for walking pain, rest pain or significant vein disease.

Near Howell or Bloomfield Township, Michigan?

The author of this site practices podiatry at Balance Foot & Ankle, which he owns, so this is a disclosed option rather than an independent referral. If leg cramps are frequent, come with numbness, swelling or walking pain, or you are not sure they are cramps, an evaluation can check the circulation and nerves in your legs and feet, review whether compression is safe for you, and coordinate with your other clinicians. Michigan evaluation →

Common questions

What is a charley horse?

In everyday and medical use, a charley horse is a sudden, painful cramp in a leg muscle, usually the calf, that will not relax for seconds to minutes. Dictionaries define it more narrowly, as pain or stiffness in a muscle, especially the front of the thigh, after a strain or a blow. The name started as American baseball slang in the 1880s, and nobody knows who Charley was.

What causes leg cramps at night?

Usually nothing that can be identified. Night cramps become more common with age, and lying with the foot pointed keeps the calf shortened, which may make it more likely to cramp. Inactivity, alcohol, pregnancy and some medicines, such as water pills and long-acting asthma inhalers, add to the risk. Conditions such as nerve damage, spinal stenosis, cirrhosis and kidney failure make cramps more common. Frequent cramps with numbness, swelling, weakness or walking pain should be checked.

How do I stop a leg cramp fast?

Stretch the muscle the other way. For a calf cramp, straighten your leg and pull your toes and foot up toward you, or stand up, put your weight on the leg and press the heel down. For the back of the thigh, the same standing press helps; for the front of the thigh, hold a chair and pull your foot up toward your buttock. Rub the knot, walk around, and use warmth afterwards. Painkillers act too slowly to stop a cramp but can ease the soreness later.

What deficiency causes leg cramps?

For most people with ordinary night cramps, none: studies have not linked them with low potassium, sodium or magnesium, and magnesium supplements are unlikely to help. Genuinely low potassium, magnesium or calcium can cause cramps, usually with other clues such as vomiting or diarrhea, water pills, dialysis, weakness, twitching, or tingling around the mouth with spasms of the hands and feet. In that situation, a prompt blood test is worthwhile, the same day if your hands and feet go into spasm or you feel very weak.

Are leg cramps a sign of poor circulation?

Usually not. Narrowed arteries cause claudication, a cramping or aching in the calf, thigh or buttock that comes on after a predictable amount of walking and fades within minutes of standing still; it is not a true cramp, and it calls for an ankle-brachial index test. Feet that ache at rest in bed and feel better hanging down need same-day care. The link between night cramps and vein disease is weak and inconsistent, and vein procedures have not been shown to stop cramps. PAD symptoms and warning signs →

Do compression socks help leg cramps?

Possibly. In a Finnish trial of 121 adults aged 50 to 85 with frequent cramps, published in 2026, knee-high compression stockings worn during the day cut cramps by about 1.4 a week more than a dummy pill and reduced nights woken by cramps; magnesium did not help. It is a single trial in which people knew they were wearing stockings, and it did not include anyone with artery disease. If you have known or suspected artery disease or a leg-artery bypass or stent, do not use compression until a clinician has checked your circulation, usually with an ankle-brachial index; ask first, too, if you have diabetes, numb feet, walking pain or fragile skin.

Does magnesium help leg cramps?

Probably not, for the usual cramps of later life. A 2020 Cochrane review of 11 trials found magnesium unlikely to give a meaningful benefit to older adults, a 2026 trial found no effect, and it can cause diarrhea. Magnesium sprays and lotions have not been tested for cramps and barely pass through the skin. If a blood test shows your magnesium is low, replacing it is reasonable; the evidence in pregnancy is conflicting.

Does pickle juice help leg cramps?

It might shorten a cramp. In a laboratory study, a small drink of pickle juice ended triggered cramps 49 seconds sooner than water, probably through a reflex from the mouth and throat rather than by replacing salt. In people with cirrhosis, sips of pickle brine at the start of a cramp eased its severity. It has not been tested for preventing night cramps, and it is very salty, so ask first if you have been told to limit salt or fluids.

Why do I get leg cramps in pregnancy?

Nobody knows exactly, but they are common, especially in the second half of pregnancy, and usually settle after the birth. Stretching your calves, pulling your toes up toward your ankle during a cramp, and staying active are reasonable steps; no supplement has been clearly shown to help, so ask your obstetric clinician before taking one. A leg that stays painful, or becomes red, warm or swollen, needs to be checked the same day for a blood clot; call 911 if you are also short of breath or have chest pain.

Sources

  1. NHS. Leg cramps; Deep vein thrombosis (DVT); Sciatica; Baker’s cyst; Restless legs syndrome; Common health problems in pregnancy.
  2. Mayo Clinic. Muscle cramp: symptoms and causes and diagnosis and treatment; Night leg cramps; Leg cramps during pregnancy.
  3. Cleveland Clinic. Leg cramps at night; Claudication.
  4. MedlinePlus, National Library of Medicine. Muscle cramps.
  5. American Academy of Orthopaedic Surgeons, OrthoInfo. Muscle cramps; Compartment syndrome; Lumbar spinal stenosis.
  6. Merck Manual Professional Version. Muscle cramps; Merck Manual Consumer Version. Hypokalemia (low level of potassium in the blood); Hypocalcemia (low level of calcium in the blood); Peripheral artery disease; National Institute of Diabetes and Digestive and Kidney Diseases. Diabetes and foot problems.
  7. American Academy of Sleep Medicine. Sleep leg cramps.
  8. Merriam-Webster. Charley horse; The American Heritage Dictionary of the English Language. Charley horse; Dictionary.com. Charley horse.
  9. Allen RE, Kirby KA. Nocturnal leg cramps. American Family Physician 2012;86(4):350–355.
  10. Maisonneuve H, Chambe J, Delacour C, et al. Prevalence of cramps in patients over the age of 60 in primary care: a cross sectional study. BMC Family Practice 2016;17:111.
  11. Grandner MA, Winkelman JW. Nocturnal leg cramps: prevalence and associations with demographics, sleep disturbance symptoms, medical conditions, and cardiometabolic risk factors. PLOS ONE 2017;12:e0178465.
  12. Khandalavala B, Geske J, Klein J. Patient-reported prevalence, characteristics, and impact of leg cramps in an urban primary care clinic. Annals of Family Medicine 2023;21:440–443.
  13. Abdulla AJ, Jones PW, Pearce VR. Leg cramps in the elderly: prevalence, drug and disease associations. International Journal of Clinical Practice 1999;53:494–496; Naylor JR, Young JB. A general population survey of rest cramps. Age and Ageing 1994;23:418–420.
  14. Leung AK, Wong BE, Chan PY, Cho HY. Nocturnal leg cramps in children: incidence and clinical characteristics. Journal of the National Medical Association 1999;91:329–332.
  15. Garrison SR, Dormuth CR, Morrow RL, Carney GA, Khan KM. Seasonal effects on the occurrence of nocturnal leg cramps: a prospective cohort study. CMAJ 2015;187:248–253.
  16. Hawke F, Chuter V, Burns J. Impact of nocturnal calf cramping on quality of sleep and health-related quality of life. Quality of Life Research 2013;22:1281–1286.
  17. Blyton F, Chuter V, Burns J. Unknotting night-time muscle cramp: a survey of patient experience, help-seeking behaviour and perceived treatment effectiveness. Journal of Foot and Ankle Research 2012;5:7; Bahk JW, Kim H, Jung-Choi K, et al. Relationship between prolonged standing and symptoms of varicose veins and nocturnal leg cramps among women and men. Ergonomics 2012;55:133–139.
  18. Delacour C, Chambe J, Lefebvre F, et al. Association between alcohol consumption and nocturnal leg cramps in patients over 60 years old: a case-control study. Annals of Family Medicine 2018;16:296–301; Association between physical activity and nocturnal leg cramps in patients over 60 years old: a case-control study. Scientific Reports 2020;10:2638.
  19. Costa LDS, Correa VAF, de Oliveira VF, et al. Risk factors for exercise-associated muscle cramps: a systematic review with meta-analysis. Muscle & Nerve 2026;74(5):1375–1386; Schwellnus MP, Drew N, Collins M. Muscle cramping in athletes: risk factors, clinical assessment, and management. Clinics in Sports Medicine 2008;27:183–194.
  20. National Institute for Occupational Safety and Health. Heat-related illnesses; Rout P, Chippa V, Adigun R. Rhabdomyolysis. StatPearls.
  21. Garrison SR, Dormuth CR, Morrow RL, et al. Nocturnal leg cramps and prescription use that precedes them: a sequence symmetry analysis. Archives of Internal Medicine 2012;172:120–126.
  22. Cholesterol Treatment Trialists’ Collaboration. Effect of statin therapy on muscle symptoms: an individual participant data meta-analysis of large-scale, randomised, double-blind trials. Lancet 2022;400:832–845.
  23. Maxwell SK, Kokokyi S, Breiner A, et al. Characteristics of muscle cramps in patients with polyneuropathy. Neuromuscular Disorders 2014;24:671–676; Matsumoto M, Watanabe K, Tsuji T, et al. Nocturnal leg cramps: a common complaint in patients with lumbar spinal canal stenosis. Spine 2009;34:E189–E194; Abraham A, Barnett C, Lovblom LE, et al. Cramps frequency and severity are correlated with small and large nerve fiber measures in type 1 diabetes. Clinical Neurophysiology 2018;129:122–126.
  24. Chatrath H, Liangpunsakul S, Ghabril M, et al. Prevalence and morbidity associated with muscle cramps in patients with cirrhosis. American Journal of Medicine 2012;125:1019–1025; Roberts AT, Makar J, Abdelmalak J, et al. Management of muscle cramps in patients with cirrhosis: a systematic review of randomised controlled trials. Alimentary Pharmacology & Therapeutics 2025;61:44–64.
  25. Babroudi S, Tuttle M, Lacson EK. Skeletal muscle cramp prevalence among patients receiving dialysis: a global systematic review and meta-analysis. Clinical Journal of the American Society of Nephrology 2026; Mantilla-Manosalva N, Guadarrama S, Bedoya-Muñoz LJ, et al. Pharmacological treatment for dialysis-related muscle cramps: a systematic review. Seminars in Dialysis 2024;37:415–423.
  26. National Institute of Neurological Disorders and Stroke. Amyotrophic lateral sclerosis; Restless legs syndrome.
  27. Hirai M. Prevalence and characteristics of muscle cramps in patients with varicose veins. VASA 2000;29:269–273.
  28. Kröger K, Ose C, Rudofsky G, et al. Symptoms in individuals with small cutaneous veins. Vascular Medicine 2002;7:13–17.
  29. Bradbury A, Evans C, Allan P, et al. What are the symptoms of varicose veins? Edinburgh vein study cross sectional population survey. BMJ 1999;318:353–356.
  30. Wrona M, Jöckel KH, Pannier F, et al. Association of venous disorders with leg symptoms: results from the Bonn Vein Study 1. European Journal of Vascular and Endovascular Surgery 2015;50:360–367.
  31. Gloviczki P, Lawrence PF, Wasan SM, et al. The 2023 Society for Vascular Surgery, American Venous Forum, and American Vein and Lymphatic Society clinical practice guidelines for the management of varicose veins of the lower extremities. Part II. Journal of Vascular Surgery: Venous and Lymphatic Disorders 2024;12:101670.
  32. Society for Vascular Surgery. Peripheral artery disease; Centers for Disease Control and Prevention. About venous thromboembolism (blood clots); Risk factors for blood clots.
  33. Monseau AJ, Balcik BJ, Denne N, et al. Point-of-care ultrasound diagnosis of tennis leg. Clinical Practice and Cases in Emergency Medicine 2019;3:36–39.
  34. Hallegraeff JM, van der Schans CP, de Ruiter R, de Greef MH. Stretching before sleep reduces the frequency and severity of nocturnal leg cramps in older adults: a randomised trial. Journal of Physiotherapy 2012;58:17–22; Coppin RJ, Wicke DM, Little PS. Managing nocturnal leg cramps — calf-stretching exercises and cessation of quinine treatment: a factorial randomised controlled trial. British Journal of General Practice 2005;55:186–191.
  35. Hawke F, Sadler SG, Katzberg HD, et al. Non-drug therapies for the secondary prevention of lower limb muscle cramps. Cochrane Database of Systematic Reviews 2021;5:CD008496; Tapper EB, Trivedi H, Simonetto DA, et al. The RELAX randomized controlled trial: stretching versus meditation for nocturnal muscle cramps. Liver International 2024;44:2434–2441.
  36. Kuusipalo A, Laitila J, Lehtonen E, et al. Secondary prevention of leg cramps using compression stockings or magnesium supplements: a three-arm randomized clinical trial. Trials 2026;27:216; Rabe E, Partsch H, Morrison N, et al. Risks and contraindications of medical compression treatment: a critical reappraisal. An international consensus statement. Phlebology 2020;35:447–460.
  37. Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews 2020;9:CD009402; Stadie N, Heinzer R, Marques-Vidal P. Magnesium supplements, sleep quality, and nocturnal leg cramps: a combination of cross-sectional and prospective studies. European Journal of Nutrition 2026;65:60.
  38. Gröber U, Werner T, Vormann J, Kisters K. Myth or reality: transdermal magnesium? Nutrients 2017;9:813; Camili V, Stürup S, Heinz A. Does magnesium permeate the skin? An ex vivo investigation of magnesium ion delivery through intact and barrier-disrupted skin. European Journal of Pharmaceutics and Biopharmaceutics 2026;226:115173; Coates AM, Patel DV, Binet ER, Gibala MJ. No effect of topical application of a commercial magnesium gel on exercise recovery in active individuals. International Journal of Sport Nutrition and Exercise Metabolism 2025;35:416–423.
  39. El-Tawil S, Al Musa T, Valli H, et al. Quinine for muscle cramps. Cochrane Database of Systematic Reviews 2015;(4):CD005044; US Food and Drug Administration. FDA Drug Safety Communication: new risk management plan and patient Medication Guide for Qualaquin (quinine sulfate), 8 July 2010 (archived copy).
  40. Electronic Code of Federal Regulations. 21 CFR 310.546: Drug products containing active ingredients offered over-the-counter (OTC) for the treatment and/or prevention of nocturnal leg muscle cramps; 21 CFR 172.575: Quinine.
  41. DailyMed. Hyland’s Leg Cramps tablets: label; US Food and Drug Administration. Homeopathic products.
  42. Katzberg HD, Khan AH, So YT. Assessment: symptomatic treatment for muscle cramps (an evidence-based review). Neurology 2010;74:691–696; reaffirmed by the American Academy of Neurology on 19 July 2025; Herzberg J, Stevermer J. Treatments for nocturnal leg cramps. American Family Physician 2017;96(7) (online).
  43. Chan P, Huang TY, Chen YJ, et al. Randomized, double-blind, placebo-controlled study of the safety and efficacy of vitamin B complex in the treatment of nocturnal leg cramps in elderly patients with hypertension. Journal of Clinical Pharmacology 1998;38:1151–1154; Voon WC, Sheu SH. Diltiazem for nocturnal leg cramps. Age and Ageing 2001;30:91–92; Connolly PS, Shirley EA, Wasson JH, Nierenberg DW. Treatment of nocturnal leg cramps: a crossover trial of quinine vs vitamin E. Archives of Internal Medicine 1992;152:1877–1880; Serrao M, Rossi P, Cardinali P, et al. Gabapentin treatment for muscle cramps: an open-label trial. Clinical Neuropharmacology 2000;23:45–49; Kim HJ, Yoon KB, Kang M, et al. Use of baclofen as a treatment for nocturnal calf cramps in individuals with lumbar spinal stenosis: a prospective randomized study. American Journal of Physical Medicine & Rehabilitation 2024;103:384–389.
  44. Tan J, Zhu R, Li Y, et al. Vitamin K2 in managing nocturnal leg cramps: a randomized clinical trial. JAMA Internal Medicine 2024;184:1443–1447, with notice of retraction and replacement, 2025;185:904; DynaMed. Don’t jump at vitamin K2 for nocturnal leg cramps.
  45. Miller KC, Mack GW, Knight KL, et al. Reflex inhibition of electrically induced muscle cramps in hypohydrated humans. Medicine and Science in Sports and Exercise 2010;42:953–961; Tapper EB, Salim N, Baki J, et al. Pickle juice intervention for cirrhotic cramps reduction: the PICCLES randomized controlled trial. American Journal of Gastroenterology 2022;117:895–901.
  46. Hall H, Lauche R, Adams J, et al. Healthcare utilisation of pregnant women who experience sciatica, leg cramps and/or varicose veins: a cross-sectional survey of 1835 pregnant women. Women and Birth 2016;29:35–40; Abandeh A, Sindiani A, Nazzal MS, et al. Prevalence and predictors of leg cramps in the third trimester of pregnancy: a cross-sectional study. International Journal of Women’s Health 2024;16:1377–1387.
  47. Luo L, Zhou K, Zhang J, et al. Interventions for leg cramps in pregnancy. Cochrane Database of Systematic Reviews 2020;12:CD010655.
  48. Pregnancy, Birth and Baby (Australian Government). Leg cramps during pregnancy; American College of Obstetricians and Gynecologists. Preventing deep vein thrombosis.

Written by Tom Biernacki, DPM, FACFAS. Published 12 November 2026. General education, not medical advice.