Jump to a section
At a glance
- It's a sudden, painful tightening of a muscle in the foot or leg, usually easing within seconds to minutes.
- Often there's no clear cause, though exercise, pregnancy, some medicines and some health conditions are linked.
- Gentle stretching or massage is the first step when a cramp strikes.
- Stopping cramps coming back is difficult: stretching may ease them a little, and magnesium is unlikely to help older adults.
- Some signs need prompt help, such as a hot, swollen calf or cramps that last longer than 10 minutes.
What are foot cramps, and how common are they?
A foot cramp is a sudden, painful tightening of a muscle that you can't control, sometimes with a hard knot you can feel1. The medical name is muscle cramp. It lasts from a few seconds to a few minutes and then eases by itself1. Most cramps happen at rest, mainly at night1.
Cramps are common and usually harmless, though they can be very painful and disturb your sleep23. The calf is the most common spot, but the foot and thigh can be affected too2. They're more frequent in older people, pregnant women and people exercising hard4.
What can cause foot cramps?
Often no clear cause is found3. Possible contributors include a tired muscle from exercise or overuse, ageing, dehydration and the later stages of pregnancy35. Some medicines are linked with cramps, including water tablets (diuretics), cholesterol medicines (statins) and some inhalers54. So are liver failure, kidney failure needing dialysis and vascular disease (problems with the blood vessels)46. These are links, not proof that one of them is behind your cramps.
A typical cramp is intense pain in the calf or foot that lasts up to about ten minutes and eases without you doing anything6. Pain in the calf or foot at rest can also come from poor circulation6. Questions and an examination are usually enough to tell cramps from restless legs, leg pain with walking from poor circulation (claudication), muscle inflammation and nerve problems7.
Don't stop a prescribed medicine because you suspect it's causing cramps. Check with your doctor or pharmacist first.
How is the cause found?
A podiatrist or GP will mostly work it out from your story and an examination. They'll ask where and when the cramps happen, whether they come with activity, whether they're mostly in the day or at night, and about your past health and medicines8. They may also ask about weakness, numbness or swelling29. They'll then examine your legs and feet, including your circulation and nerves8.
Blood and urine tests are only needed if an underlying cause is suspected, and usually aren't needed to confirm night-time leg cramps27. It helps to bring a list of your medicines (including inhalers and water tablets) and a note of when, where and how long your cramps last. Tell them if you have liver, kidney or circulation problems, are pregnant, or have recently started a new medicine.
What helps first?
When a cramp strikes, gently stretch or massage the muscle. It will usually pass on its own10. Non-drug measures are recommended before medicines, though it isn't clear yet how well they work11.
What helps if that isn't enough?
Medicines have little to offer. Magnesium doesn't appear to help night-time leg cramps in the general population, though it may help a little in pregnancy12.
Quinine is no longer recommended for leg cramps7. It shouldn't be used routinely, because it can affect heart rhythm and interact with other medicines13. If a doctor considers it, it's only when cramps regularly disrupt sleep, and after checking for reversible causes such as an underactive thyroid, an imbalance of body salts or a medicine that triggers cramps1311.
Talk to your doctor or pharmacist before taking any medicine or supplement for cramps, and don't use someone else's quinine or leftover supplies.
Will foot cramps go away, and can I stop them coming back?
Cramps generally settle by themselves, though they last for varying lengths of time14. In adults aged 60 and older, only a minority get cramps more than once a week, but many say cramps disturb their sleep1.
Preventing them is harder. Daily calf and hamstring stretching for six weeks may ease how severe night-time cramps are in people aged 55 and older, but the benefit is uncertain, and it's unclear whether it reduces how often they happen15. Calf stretching on its own may make little difference to how often they happen in people aged 60 and older15. Magnesium is unlikely to help prevent cramps in older adults4. If your cramps come with exercise, avoid drinking far more than you need, or overusing electrolyte products, to try to prevent them16.
It can help to note how often cramps happen, so you can tell whether they're becoming more frequent or lasting longer.
When to see a podiatrist
Most cramps are harmless, and a podiatrist or GP can help work out what's behind them.
See a podiatrist or your GP if your cramps are frequent, particularly painful, disturb your sleep, or come with numbness or swelling in your legs5.
See your GP soon if you have regular or severe cramping that lasts longer than a few minutes, as it can sometimes point to an underlying problem such as narrowed arteries14. See your GP soon too if you have muscle soreness or cramps with dark urine after a heavy endurance event18.
See your GP or a podiatrist the same day if:
- your calf is hot, swollen and painful, or your leg is red or swollen, especially on one side or after long sitting such as on a flight108;
- you have sudden severe pain or numbness in one leg or foot8;
- cramps last longer than 10 minutes and don't ease even with exercise, or began after contact with something possibly toxic or infectious2.
For urgent advice when it isn't an emergency, call healthdirect on 1800 022 222 (24 hours a day), or go to a Medicare Urgent Care Clinic.
Call 000 and ask for an ambulance if you have chest pain, trouble breathing, or signs of a stroke or heart attack10; if a leg or foot suddenly turns cold and pale or blue, with pain or numbness, or you can't move it8; or if you have an infection or wound with confusion or slurred speech17.
Go to the nearest emergency department if you lose control of your bladder or bowel, or have numbness around your bottom or groin, or trouble walking17.
Common questions
Why do I get foot cramps at night?
Most cramps happen at rest, mainly at night, and often no clear reason is found. Possible contributors include a tired muscle from exercise or overuse, ageing, some medicines and the later stages of pregnancy. If night cramps are frequent or keep waking you, it's worth raising with your GP or a podiatrist.
Can dehydration or low magnesium cause foot cramps?
Dehydration and an imbalance of body salts are listed as possible contributors, but the exact cause of cramps isn't known, so they aren't a certain explanation. If you're concerned your body salts are off, a GP can arrange simple blood tests and look at your medicines at the same time.
Are foot cramps common in pregnancy?
Cramps are more frequent in pregnant women, and leg cramps usually appear in the later stages of pregnancy. They're usually harmless. Check with your GP before taking any supplement or medicine for them, and raise it if the cramps are very painful, frequent or come with swelling in a leg.
Are foot cramps a sign of a blood clot or poor circulation?
Usually not: most cramps are harmless and settle by themselves. Occasionally cramps can be linked with circulation problems or a clot. The signs worth acting on, such as a hot, swollen calf or a leg that turns cold and pale, are listed under When to see a podiatrist.
Further reading
Want to know more? Foot cramps on Clindice
- Foot pain: MedlinePlus Medical EncyclopediaMedlinePlus
- Leg crampsNHS
- Muscle crampBetter Health Channel
Reviewed by Andrew Schox, BSc(Hons) PGradDipPod MPod
Podiatrist
Reviewed 27 October 2026. Next review by 27 October 2027.
Related guides
Sources
(18)
- 1.Prevalence of cramps in patients over the age of 60 in primary care : a cross sectional studyMaisonneuve H, Chambe J, Delacour C et al. · BMC Family Practice · 2016
- 2.Leg crampsnidirect · 2017
- 3.Leg crampHealth New Zealand | Te Whatu Ora
- 4.Magnesium for skeletal muscle crampsGarrison SR, Korownyk CS, Kolber MR et al. · The Cochrane Database of Systematic Reviews · 2020
- 5.Leg crampsNHS
- 6.Criteria in diagnosing nocturnal leg cramps: a systematic reviewHallegraeff J, de Greef M, Krijnen W et al. · BMC Family Practice · 2017
- 7.Nocturnal leg crampsAllen RE, Kirby KA · American Family Physician · 2012
- 8.Primary care approach to calf crampsLam CSE, Zhang M, Lim I · Singapore Medical Journal · 2022
- 9.Muscle twitches and cramps | Right DecisionsNHS
- 10.Calf pain - causes, treatment and preventionHealthdirect Australia · 2026
- 11.Quinine for muscle crampsEl-Tawil S, Al Musa T, Valli H et al. · The Cochrane Database of Systematic Reviews · 2015
- 12.Effect of magnesium therapy on nocturnal leg cramps: a systematic review of randomized controlled trials with meta-analysis using simulationsSebo P, Cerutti B, Haller DM · Family Practice · 2014
- 13.Nocturnal leg crampsNHS
- 14.Muscle crampQueensland Government
- 15.Non-drug therapies for the secondary prevention of lower limb muscle crampsHawke F, Sadler SG, Katzberg HD et al. · The Cochrane Database of Systematic Reviews · 2021
- 16.An Evidence-Based Review of the Pathophysiology, Treatment, and Prevention of Exercise-Associated Muscle CrampsMiller KC, McDermott BP, Yeargin SW et al. · Journal of Athletic Training · 2022
- 17.Red flags | Right DecisionsNHS
- 18.Exertional Rhabdomyolysis in Athletes: Systematic Review and Current PerspectivesBäcker HC, Richards JT, Kienzle A et al. · Clinical Journal of Sport Medicine · 2023
This page is general information, not a diagnosis or a treatment plan for you. For advice about your own feet or legs, see a podiatrist or your doctor. In an emergency, call 000.
