
A foot cramp comes out of nowhere: the arch knots up, your toes curl or splay apart, and for a few seconds to a few minutes you can’t do much but wait for it to let go. Foot cramps are very common. Up to 60% of adults say they’ve had nighttime leg cramps, which most often strike the calf but can also affect the foot, and most cramps are harmless. Here’s what causes foot cramps, how to stop one fast, and when a cramp is a reason to get checked — because cramps that keep coming back are worth understanding, and occasionally they point to something that needs a closer look.
A cramp is a sudden, involuntary tightening of a muscle that doesn’t relax on its own right away. Cramps can seize the arch, the toes, or the top of the foot. Many have no single clear cause, but these are the most common triggers:
First, check for a warning sign: if one calf is swollen, warm, or red along with the pain, don’t stretch or massage it — get seen the same day (go to the ER if your doctor’s office is closed or can’t see you today), since that can be a sign of a blood clot. Call 911 if you also have chest pain, trouble breathing, or cough up blood. Otherwise, these steps can help a cramp let go:
It’s normal for the muscle to feel sore for a while afterward.

Nighttime cramps in the feet and calves become more common with age, and most have no identifiable cause. They can wake you from sleep and leave the foot sore the next morning. Tired muscles from the day, long stretches of sitting, pregnancy, some medications, and certain health conditions can all make them more likely. A little light activity before bed — a short walk or a few minutes on a stationary bike — and gently stretching your calves and feet before you lie down are simple, low-risk things to try. If what you feel is more of an urge to move your legs than a muscle that locks up, that may be restless legs syndrome, which is worth mentioning to your doctor.
Toe cramps — when one or more toes suddenly curl under, lift up, or spread apart — usually share the same triggers as other foot cramps. Shoes that squeeze the toes together or tilt your weight forward can trigger them. Gently straightening the toes, massaging the ball of the foot, and changing into roomier shoes can help settle them. If a toe stays curled or the cramps keep coming back, get it checked.
These low-risk habits may help lower your odds:
You’ll often see magnesium recommended for cramps, but the evidence that it prevents them is limited — a 2020 research review found it’s unlikely to help most older adults with cramps — and no treatment has been clearly proven both safe and effective for nighttime leg cramps. Ask your doctor before taking magnesium supplements, particularly if you have kidney disease. Don’t use quinine for cramps, whether as pills or by drinking tonic water for its quinine: it’s no longer recommended for leg cramps because the FDA has warned about serious side effects. If a doctor prescribed quinine for you for another reason, talk with them before making any change.
A podiatrist can look at the parts of the picture that live in your feet — your foot structure, the way you walk, and your shoes. If flat feet may be contributing, see our page on flat feet treatment in Long Beach, or call (562) 426-2551 to schedule a visit. If your feet also tend to feel cold, see why your feet may always be cold. For more background, Cleveland Clinic has a helpful overview of leg and foot cramps.
Changing how you eat, sleep, and manage stress is easier with guidance. Our 9 Secrets Membership Program offers general wellness education and coaching on nutrition, sleep, and stress. It isn’t a treatment for muscle cramps and doesn’t replace medical care or the medication your doctor prescribes. Learn which level fits you, or call (562) 426-2551.
Foot cramps usually have no single cause, and frequent ones are worth mentioning to a doctor. Common triggers include tired muscles, long periods of sitting or standing, tight or unsupportive shoes, pregnancy, some medications, and conditions such as diabetes, nerve damage, or poor circulation; dehydration or low electrolytes may also play a role.
If one calf is also swollen, warm, or red, don’t stretch or massage it — get seen the same day (the ER if your doctor’s office is closed or can’t see you today), since that can signal a blood clot; call 911 if you also have chest pain, trouble breathing, or cough up blood. Otherwise, gently stretch the muscle the opposite way — pull your toes up toward your shin, or stand holding onto something steady and press the foot flat — then massage the arch and walk a few steps.
Nighttime foot and leg cramps are common, become more frequent with age, and often have no single cause; if they happen often or regularly wake you, talk with a doctor. Tired muscles, long periods of sitting, pregnancy, some medications, and certain health conditions can make them more likely.
Most cramps aren’t caused by a single vitamin or mineral deficiency, no supplement has been clearly proven to prevent them, and research linking cramps to low electrolytes is mixed, so ask your doctor before taking supplements — especially magnesium if you have kidney disease. A 2020 research review found magnesium is unlikely to help most older adults with cramps. Don’t use quinine pills or tonic water for cramps; the FDA has warned about quinine’s serious side effects, and if a doctor prescribed quinine for another reason, talk with them before changing anything.
Call 911 if a foot suddenly turns cold, pale, or bluish, especially with severe pain, numbness, or weakness, or if you have chest pain, trouble breathing, or cough up blood along with calf swelling. Get seen the same day — the ER if your doctor’s office is closed or can’t see you today — for cramping calf pain with swelling, warmth, or redness in one leg. See a doctor or podiatrist for cramps that are frequent or severe, come with numbness or weakness, start after a new medication, or appear when you walk and ease with rest — and get prompt care for foot pain at rest or sores that won’t heal.
If a toe stays curled or the cramps keep coming back, get it checked. Toe cramps happen when the small muscles that bend or lift the toes tighten suddenly, so the toes curl under, lift, or spread apart; gently straightening the toes and massaging the ball of the foot can help, and shoes that squeeze the toes can trigger them.