It’s 2:00 in the morning. You’ve finally fallen into a deep, comfortable sleep. Then, without warning, your toes seize up. They curl inward like a fist. The pain shoots through your foot and up your calf. You grab the bed sheet. Your heart is pounding. And in that moment, one thought runs through your mind: Is this just part of getting older?

Here’s what experts want you to know: that curling, that cramping, that middle-of-the-night agony in your toes — it is not just aging. It is your body sending you a very specific signal. And tonight, before you go to bed, there are simple things you can do to answer that signal and stop it from happening.

What Is Actually Happening When Your Toes Curl at Night

When your toes suddenly clench in the middle of the night — what doctors call nocturnal foot cramps or digital cramps — a muscle is involuntarily contracting. The small muscles along the bottom of the foot, which control how the toes move, are firing without your permission. They squeeze hard and won’t let go. That is the cramp, and it is painful.

This symptom affects millions of seniors and is almost always misunderstood. Most people chalk it up to bad luck or old age and do nothing. But physicians who specialize in longevity and healthy aging point to three specific, addressable causes that become more common after 60.

Nerve Signaling Changes

As we age, the peripheral nerves that travel down into the feet and toes can become slightly less efficient. They may overfire or misfire, sending contraction signals to the muscles where none were requested. Researchers have documented this pattern in multiple studies on age-related peripheral neuropathy, even in people without diabetes.

Sluggish Circulation

During the day, movement keeps blood pumping steadily to the feet. At night, the body is still, and circulation naturally slows. For older adults who already have some degree of reduced peripheral blood flow, that overnight slowdown can create what specialists describe as a “mineral and oxygen debt” in the foot muscles. A low-oxygen muscle is an irritable muscle — one that cramps easily.

Mineral Imbalance

The toe muscles need three key minerals to contract and — just as importantly — to relax: magnesium, potassium, and calcium. If any of these are low, the muscle can get stuck in the contraction phase. It cramps and holds.

This imbalance is more common than most people realize. Research published in the American Journal of Clinical Nutrition found that magnesium absorption decreases measurably with age, even when dietary intake stays the same. Many seniors also take common medications — diuretics for blood pressure, certain heart medications, and some antacids — that quietly deplete magnesium and potassium in the body. The balance tips not through any fault of the person, but through the combined effects of aging and medication.

The result: the toe muscles are often the first to complain at night. They are the farthest from the heart, the smallest muscles, and the last to receive a full mineral delivery.

The Simple Before-Bed Routine That Addresses All Three Causes

The good news is that all three causes are addressable. Longevity physicians report that most patients who follow a short, consistent pre-sleep routine see a meaningful reduction in toe cramping within three to five nights — some notice improvement the very first night.

Here is what that routine looks like, step by step.

Step 1: A Small Potassium-Rich Snack (30–60 Minutes Before Bed)

About an hour before bed, have one small banana or half an avocado. A banana provides roughly 400 mg of potassium in a form the body absorbs well overnight, keeping the toe muscles nourished while you sleep. Not a fan of bananas? A small handful of unsalted almonds or cashews provides both magnesium and potassium together.

Magnesium deserves special attention here. It is the mineral that tells a contracted muscle to let go. Without adequate magnesium, the muscle can contract — but the “off switch” works slowly or not at all.

Step 2: A 5-Minute Warm Foot Soak

Fill a basin with comfortably warm water — not hot — and sit with your feet submerged for five minutes. Add two tablespoons of Epsom salts to the water. This deceptively simple step does two things at once: the warm water dilates the small blood vessels in the feet, directly improving circulation, while the magnesium in the Epsom salts is absorbed through the skin. Research from the University of Birmingham documented increased magnesium levels in participants after regular Epsom salt soaks.

Seniors who make this part of their evening routine often say it is the step they look forward to most. It can easily be done while sitting in a chair watching the evening news. Epsom salts are inexpensive and available at any pharmacy.

Step 3: Four Gentle Foot Movements (5 Minutes, Sitting on the Edge of the Bed)

This is the most critical step, because it directly addresses the nerve misfiring issue. All four movements can be done sitting on the edge of the bed before lying down.

Movement 1 — The Toe Spread: Sit with your feet flat on the floor. Spread your toes apart as wide as you can, fanning them out. Hold for five seconds, then relax. Repeat 10 times. This wakes up the small intrinsic muscles of the foot and sends a clear reset signal through the peripheral nerves, countering the misfiring that triggers nighttime cramps.

(Envato)

Movement 2 — The Toe Extension: Lift the toes of both feet up toward the ceiling while keeping your heels on the floor. Hold for five seconds, then release slowly. Repeat 10 times. This stretches the flexor muscles on the bottom of the foot — the exact muscles that pull the toes into that curling position when a cramp strikes — giving them less tendency to shorten overnight.

(Envato)

Movement 3 — The Seated Calf Stretch: Extend your right leg out in front of you and loop a towel or belt around the ball of the foot. Gently pull the toes back toward your shin. Hold for 20 to 30 seconds, breathing normally. Repeat on the left side. This stretch releases the Achilles tendon and the calf muscle, which connects all the way down to the toe flexors. A tight calf increases tension on the foot muscles during sleep.

Movement 4 — The Ankle Circle: Lift one foot slightly off the floor and make slow, smooth circles with the ankle — 10 clockwise, 10 counterclockwise — then switch feet. This improves blood flow through the ankle and foot joints and helps the peripheral nerves reestablish normal signaling before sleep.

The Sleeping Position Detail Almost No One Knows About

There is one more factor that most people never hear about, and it makes a real difference. When you sleep on your back with a heavy blanket tucked tightly at the foot of the bed, the blanket pushes down on the toes, forcing them into a downward-pointed position. The calf and toe flexor muscles stay shortened for hours. The longer they stay in that shortened position, the more prone they are to cramping.

A study in the Journal of Orthopaedic and Sports Physical Therapy found that sustained plantar flexion during sleep was a contributing factor to calf and foot cramping in older adults.

Two easy fixes: First, do not tuck your blanket tightly at the foot of the bed — let it drape loosely. Second, if you sleep on your back, try placing a small pillow under your calves (not under your knees, but under the calves themselves). This slightly elevates the lower legs, improves blood returning from the feet toward the heart overnight, and keeps the Achilles tendon and toe muscles in a more neutral position. Many people are surprised by how much this single positional change reduces their nighttime foot cramps.

Don’t Forget Daytime Hydration

If nighttime toe cramps have been a recurring problem, it is also worth looking at daily water intake. Dehydration stiffens circulation and slows mineral delivery to the muscles. Most seniors do not drink enough water during the day.

Physicians recommend aiming for six to eight glasses of water throughout the day — not all at once in the evening, which can disrupt sleep — but spread across the day and front-loaded toward the morning and early afternoon. Good hydration keeps the “delivery roads” open so that minerals can reach the feet efficiently.

When to Talk to Your Doctor

Everything described above is gentle and safe for most seniors. But there are situations where nighttime toe cramping is a stronger signal — one that warrants medical attention.

See your doctor if any of the following apply:

•  Cramps are happening every single night and are worsening week by week.

•  Your feet or toes feel numb or tingly alongside the cramping, which can point to peripheral neuropathy.

•  You have diabetes and are experiencing any foot symptoms — do not wait.

•  You are on diuretics or ACE inhibitors for blood pressure. Ask your doctor whether your magnesium and potassium levels have been checked recently. A simple blood test can identify whether a mineral deficiency is contributing to the cramps.

Your Feet Have Carried You a Lifetime. Give Them 10 Minutes Tonight.

The complete before-bed routine takes about 10 to 15 minutes. A small potassium-rich snack an hour before bed. A five-minute warm Epsom salt foot soak. Four gentle foot movements from the edge of the bed. Loose bedding at the foot of the bed, and a pillow under the calves if you sleep on your back.

That is all it takes. Physicians who specialize in longevity consistently find that patients in their 70s and 80s go from cramping every single night to cramping rarely or never after making these small adjustments. The body is remarkably responsive when you give it what it was asking for.

Tonight, start with just one step. Maybe it’s the banana before bed. Maybe it’s loosening the blanket at the foot of your bed. Maybe it’s five minutes soaking your feet in warm Epsom salt water. See how your body responds. Add the next step tomorrow. That is how lasting habits are built — one small step at a time.

Sleep well.