Why do I get calf muscle cramps?

Calf cramps are common and usually harmless, often linked to tired muscles, exercise or age. Cramping pain that comes on with walking and eases with rest is different and needs checking.
A calf cramp is a sudden, painful tightening of the calf muscle that you can't control.¹ Cramps are common, especially at night and in older people.²,³ Most are harmless, and the cause often isn't known.¹,² But cramping pain in the calf that comes on when you walk and goes away when you rest is a different problem, and it's worth getting checked.
What causes calf cramps?
Tired or overworked muscles
Cramps can happen when you push your muscles hard during exercise, especially in hot or humid weather.² Muscle fatigue, overexertion and poor fitness all make cramps more likely.¹ Some people find their calves cramp when the muscles are tight or not strong enough for what they're asking of them.
Night cramps
Night cramps are common, particularly in older people and during pregnancy.³ Lying with your toes pointed down, for example under tight bed covers, or sitting for a long time with your legs crossed, can make them more likely.³
Fluids and minerals
Dehydration and an imbalance of body salts and minerals, such as sodium, potassium, calcium and magnesium, are thought to contribute to cramps.¹,³ Some medicines, such as diuretics ("fluid tablets"), certain blood pressure medicines and cholesterol medicines, can also cause cramps.¹,² Don't stop or change any medicine yourself; talk to your doctor or pharmacist first.
Circulation problems
If your calf cramps or aches when you walk and eases after a few minutes' rest, it may be a sign of peripheral vascular disease. This is when narrowed arteries can't get enough blood to your leg muscles during exercise.⁴ It's more common in people who smoke or have diabetes, high blood pressure or high cholesterol, and in older people.⁴ Doctors call this pain intermittent claudication. It can also affect the thigh or buttock.
Nerve problems
Problems with the nerves, such as sciatica or peripheral neuropathy, can also cause cramps.¹,³ Numbness, tingling or "electric" pain alongside the cramps are clues that a nerve may be involved.³
What helps during a cramp?
Gently stretch the muscle: pull your toes up towards your knee, or stand up and put your weight on the cramping leg.² Massaging the muscle can help too.¹,² After a bad cramp, the muscle may feel sore for a while.
Can I prevent them?
- Stretch your calves. Regular calf stretches may reduce cramps, though they may not stop them completely.² The evidence for stretching before bed is mixed, but it's worth a try.³
- Drink enough fluids during the day, and cut back on alcohol and caffeine, especially later in the day.³
- Keep bed covers loose so your toes aren't pushed down while you sleep.³
- Build fitness gradually, and warm up and cool down when you exercise.¹
- Wear well-fitting shoes.¹
Magnesium supplements are a popular remedy, but they're unlikely to help cramps in older adults.⁵
What can a podiatrist do?
Our podiatrists look at what might be behind your cramps, including your calf strength and flexibility, footwear, foot posture and how you walk. Depending on what we find, we may suggest:
- specific stretching and strengthening exercises
- footwear advice, and orthoses (shoe inserts) where they suit you
- a rehab program to build up your calf muscles
- a check of the circulation in your feet and legs
- a check of the nerves in your feet.
If we find signs of a circulation or nerve problem, we'll refer you to your GP for further tests.
When to see a podiatrist or doctor
See your GP or podiatrist if cramps are frequent, disturb your sleep, or last longer than 10 minutes, or if you also have numbness or swelling.² See your doctor if you get leg pain that comes on when walking and gets better when you rest.⁴
Call triple zero (000) if a leg suddenly becomes numb, pale or cold, or you can't move it.⁴
If calf cramps are getting in the way of your sleep or your exercise, book an appointment with our podiatrists in Booragoon.
References
- Better Health Channel, Victorian Department of Health (2013). Muscle cramp. https://www.betterhealth.vic.gov.au/health/conditionsandtreatments/muscle-cramp
- NHS (2023). Leg cramps. https://www.nhs.uk/conditions/leg-cramps/
- Best Practice Advocacy Centre New Zealand (2012). Nocturnal leg cramps: is there any relief? Best Practice Journal, 49, 24–28. https://bpac.org.nz/BPJ/2012/december/docs/bpj_49_legcramps_pages_24-28.pdf
- healthdirect Australia (2024). Peripheral vascular disease. https://www.healthdirect.gov.au/peripheral-vascular-disease
- Garrison SR, Korownyk CS, Kolber MR, et al. (2020). Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews, 2020(9), CD009402. https://doi.org/10.1002/14651858.CD009402.pub3
Reviewed by Andrew Schox, Podiatrist, BSc(Hons) PGradDipPod MPod. Last reviewed October 2026.
Need Professional Podiatry Care?
Our experienced team is here to help with all your foot and ankle concerns. Book an appointment today for expert diagnosis and treatment.
Book an AppointmentRelated Articles

Cortisone injections: relief for foot and ankle pain
A cortisone injection can calm a painful joint, bursa or nerve within days, and the relief often lasts weeks to months. It works best as one part of a wider treatment plan.

Why are my toenails unsightly?
Thick, discoloured or misshapen toenails are common. Fungal infection, injury, ageing, skin conditions and ingrown nails are the usual causes, and most can be treated or managed.

Not just a "simple" ankle sprain
Ankle sprains often leave a weak, wobbly ankle that keeps giving way. A proper assessment and an exercise program lower that risk, so a sprain is worth taking seriously.
