Buy your weekday smoothies and get your weekend ones for free. (7 for the price of 5!)
You're sound asleep. Then a sharp, squeezing pain grabs your calf and yanks you awake. You kick your foot, press your heel into the mattress, try anything to make it stop. It lasts maybe 30 seconds. Maybe two minutes. Then it's gone.
If this sounds familiar, you're not alone. Nighttime leg cramps are one of the most common problems my patients bring up. And most of them have been told the same thing: drink more water.
That's not wrong. But it's only part of the answer.
What's Really Happening When Your Leg Cramps
A muscle cramp is a sudden, tight squeeze that you didn't ask for. Your brain didn't send the signal. A nerve did it on its own.
That's the key thing most people don't know: leg cramps don't start in the muscle. They start in the nervous system. A nerve that controls the muscle gets overexcited and fires on its own. The muscle does what it's told — and you wake up in pain.
This explains a few things that used to confuse doctors:
- Why stretching helps (it sends a calming signal back to the nerve)
- Why cramps happen at rest, not during exercise
- Why people with nerve conditions get them more often
Why Do They Happen at Night?
Three things work against you when you're sleeping:
Blood flow slows down. When you're still, less blood reaches your feet and calves. That means less of the minerals your nerves need to stay calm.
Your foot position. Most people sleep with their toes pointed slightly down. That keeps the calf muscle bunched up in a shortened position — which makes cramping more likely.
Your nervous system relaxes its guard. During the day, your brain constantly keeps your nerves in check. At night, that oversight goes down. Nerves become more excitable.
Up to 60% of adults have had a nighttime leg cramp at some point, according to the American Academy of Family Physicians. After age 50, they get more common.
The Magnesium Connection
Magnesium plays a big role in keeping nerves calm. Think of it as a natural "off switch" between your nerves and muscles. When you have enough magnesium, the switch works properly. When levels are low, nerves can fire on their own.
Here's the problem: more than half of Americans don't get enough magnesium from their diet. Most of us eat processed foods that have had the magnesium stripped out. It's a widespread, quiet shortage.
So low magnesium → overexcited nerves → more cramps. Makes sense.
But the science gets interesting here.
Why Oral Magnesium Has Limits for Muscle Cramps
Magnesium supplements can be a good way to support your overall magnesium levels — and many people take them for good reason. But for the specific problem of nighttime leg cramps, the research tells a more complicated story.
A large review published in the Cochrane Database — one of the most trusted sources in medicine — found that for most people, oral magnesium supplements did not make a significant difference in leg cramp frequency. A separate study published in JAMA Internal Medicine tested magnesium oxide tablets in 94 adults with nighttime leg cramps. For cramp relief specifically, the tablets did not outperform placebo.
This isn't because supplements are bad. It comes down to how they work and where the magnesium ends up.
Magnesium oxide — the most common form — absorbs at less than 4%. Even better-absorbed forms like magnesium glycinate or citrate have to survive your digestive system first, then get distributed throughout your entire body. How much actually reaches the muscles in your calves and feet depends on your gut health, your age, and other factors outside your control. For whole-body magnesium support, oral supplements do their job. For getting magnesium directly into a specific cramping muscle, topical delivery has a clear advantage.
Why Topical Magnesium Works Differently
When you rub magnesium directly onto your skin — right over the calf or foot — you skip all of that. The magnesium doesn't have to survive your stomach or intestines. It goes straight to the tissue underneath.
A study published in PLOS ONE found that applying magnesium to the skin raised magnesium levels in the body. A more recent review in a major dermatology journal confirmed that topical magnesium has measurable effects in the skin and underlying tissue.
There's also a bonus: rubbing balm into your calves before bed is a form of massage. Massage sends calming signals to the same nerves that trigger cramps. So you get two benefits at once — the mineral and the mechanical.
I formulated our Magnesium Balm with magnesium chloride, which absorbs through skin better than other forms. Combined with organic shea butter, coconut oil, and beeswax, it goes on smooth and absorbs well. You apply it to your calves, feet, or hamstrings before bed. No stomach upset. No capsule to remember.
Other Things That Cause Nighttime Cramps
Magnesium is the most common fixable cause I see. But it's not the only one. If cramps are happening regularly, consider these too:
Your medications. Blood pressure pills called diuretics flush out magnesium and potassium. Cholesterol drugs called statins can cause muscle problems in some people. If cramps started after a new medication, mention it to your doctor.
Not enough water — spread throughout the day. Drinking a big glass right before bed doesn't help much. What works is staying hydrated all day. When you're dehydrated, the balance of minerals in your muscles gets thrown off.
Sitting too long. If you sit at a desk all day, blood doesn't move well through your legs. When you lie down at night, the change in circulation can trigger a cramp. Even short walks during the day help.
A health condition worth checking. In some cases, frequent cramping is a sign of something like low thyroid function, kidney issues, or a nerve problem in the legs. If cramps are happening every night or they're getting worse, see your doctor.
A Simple Bedtime Routine That Actually Helps
Here's what I tell my patients. These five things work together:
1. Stretch your calves before bed. Stand near a wall. Put your hands on it. Step one foot back and press your heel flat to the floor. Lean forward slightly. Hold 30 seconds each leg. This lengthens the muscle and lowers the chance of cramping.
2. Drink water all day, not just at night. A large glass before bed won't fix dehydration. Aim for steady water intake throughout the day.
3. Ask your doctor about your medications. If you take a diuretic or statin, ask if there's a different option or if you should add magnesium to your routine.
4. Apply magnesium balm to your calves before bed. Rub it into the calves, feet, and backs of your knees. The massage helps, and the magnesium supports the nerves that control those muscles.
5. Adjust how you sleep. If you sleep on your back, put a pillow under your knees. It takes the calf out of the cramping position. If you sleep on your stomach, try letting your feet hang slightly off the end of the mattress.
Questions People Ask Most
Why do cramps happen at night but not during the day?
During the day you're moving, which keeps blood flowing and nerves regulated. At night, you're still, blood slows down, and nerves become easier to excite. The conditions for cramping are just better at night.
Is it really a magnesium problem?
Often, yes. More than half of Americans are low on magnesium, and it plays a direct role in nerve and muscle function. But it's not the only cause — hydration, medications, and how you sit or sleep all matter too.
Why didn't my magnesium supplement help my cramps?
Oral supplements are good for supporting overall magnesium levels in the body, but for targeting a specific muscle group — like your calves — topical magnesium has a delivery advantage. The magnesium goes directly to the tissue, without having to travel through your digestive system and bloodstream first. The two can work well together.
What do I do when a cramp hits?
Stand up and put your full weight on the leg. Or pull your foot up toward your shin as hard as you can. Both of these stretch the calf and send a signal to the nerve to stop firing. Massage the muscle while you stretch. Applying the magnesium balm right after can help with the soreness.
Can dehydration cause cramps?
Yes. When you're dehydrated, the minerals in your muscles get out of balance, and cramps become more likely. This is especially true after exercise, in hot weather, or after drinking alcohol.
When should I see a doctor?
If cramps happen every single night, wake you up consistently, come with swelling or numbness in the leg, or started after a new medication — see your doctor. Frequent, severe cramps can sometimes point to something that needs treatment.
The Bottom Line
Nighttime leg cramps start with a nerve, not the muscle. The most common reason that nerve gets overexcited is low magnesium — a problem that affects more than half of Americans.
Magnesium pills often don't fix it because they don't absorb well. Topical magnesium delivers the mineral right where you need it, without the guesswork.
Pair it with calf stretches, steady hydration, and a better sleep position — and most people see a real difference within a week or two.
Our Magnesium Balm was made for this. Magnesium chloride in a clean, organic base. Apply it before bed. Let it work while you sleep.
This content is for informational purposes only and is not intended as medical advice. Always consult a qualified healthcare professional before making changes to your health regimen.
References
1. Garrison SR, et al. "Magnesium for skeletal muscle cramps." Cochrane Database of Systematic Reviews. 2020. DOI: 10.1002/14651858.CD009402.pub3 2. Maor NR, et al. "Effect of Magnesium Oxide Supplementation on Nocturnal Leg Cramps: A Randomized Clinical Trial." JAMA Internal Medicine. 2017. PMC5818780. 3. Rondanelli M, et al. "What is the role of magnesium for skeletal muscle cramps?" Journal of Musculoskeletal and Neuronal Interactions. 2021;21(1):1–3. PMC8020016. 4. Veronese N, et al. "Prevalence of nocturnal leg cramps in the adult US population." PMC5460850. 5. Rosanoff A, et al. "Suboptimal magnesium status in the United States: are the health consequences underestimated?" PubMed 22364157. 6. Kass L, et al. "Effect of transdermal magnesium cream on serum and urinary magnesium levels in humans: A pilot study." PLOS ONE. 2017.