Eleven trials in the Cochrane review tested magnesium by mouth or IV for leg cramps. Not one tested a cream. So does topical magnesium work better than oral for leg cramps?
The short answer: Magnesium by mouth mostly failed to prevent cramps in older adults, in a Cochrane review of 11 trials. Nobody has run a trial of magnesium cream for leg cramps, so no trial can say topical beats oral. A magnesium balm is best used as a massage that works right where you put it, along with the nightly stretching that does have a trial behind it.
By Dr. Doug Strobel, MD, a board-certified neurologist who formulated Dr. Doug's balms. Last reviewed October 13, 2026.

Night cramps are common, and the first steps are simple
A night cramp is miserable, and you did nothing to earn it. Patients ask me about magnesium for cramps all the time. The answer starts with what the trials found, and I'll keep it simple.
Does oral magnesium help leg cramps?
For the most common kind, night cramps in older adults, magnesium by mouth probably doesn't help much.
The Cochrane review pooled 11 trials with 735 people (Garrison, Cochrane Database of Systematic Reviews, 2020). Most people had night leg cramps with no clear cause, and most were in their 60s. Compared with a sugar pill, magnesium made a tiny difference that could have been chance: about 0.18 fewer cramps per week. The authors said magnesium pills are unlikely to give older adults any cramp prevention that matters.
For cramps in pregnancy, the results didn't agree. For cramps during exercise, the review found no trials at all. And magnesium by mouth caused more minor side effects than the sugar pill, mostly stomach trouble.
Has topical magnesium been tested for cramps?
No. Every trial in the Cochrane review used magnesium by mouth or by IV. I haven't found a published trial of magnesium cream, oil or balm for leg cramps.
That means any claim that a cream works "better than pills" for cramps is a guess. What we have on topical magnesium is lab research. It shows magnesium can cross the skin's outer layer, mostly through hair follicles, the tiny openings hairs grow from. More gets in with stronger products and more time (Chandrasekaran, Magnesium Research, 2016). That is a fair reason to use it where you want to feel it. It is not proof of cramp prevention.
Topical vs oral magnesium for cramps, side by side
| Oral magnesium | Magnesium cream or balm | |
|---|---|---|
| Tested for cramps? | Yes, 11 trials | No trials found |
| What the trials found | Little to no benefit for older adults' night cramps; mixed in pregnancy | Not studied |
| Common downside | Digestive side effects (loose stools, upset stomach) | Tingling or sting with some sprays |
| Where it acts | Whole body | Right where you massage it |
| Best use | When a doctor finds low magnesium or diet falls short | As part of a calf and foot massage |
For the bigger comparison beyond cramps, see magnesium cream vs pills.
What actually helps a leg cramp?
During a cramp, stretching the muscle is the fastest thing most people can do. Between cramps, a regular stretching and movement routine is a good place to start.
During a calf cramp:
- Straighten your knee and pull your toes up toward your shin. Or stand and lean into a wall with your heel down.
- Walk around once it eases.
- Massage the calf firmly with long strokes.
Between cramps:
- Stretch your calves and hamstrings every day, including before bed.
- Drink enough water, especially after exercise or a hot day.
- Look at your shoes and how long you stand or sit.
- Ask your doctor to review your medicines. Some common prescriptions are linked to cramps.
Nightly stretching has better trial support than magnesium. In a trial, 80 adults over 55 with night leg cramps were split into two groups by chance. One group stretched their calves and hamstrings every night right before bed for six weeks. They had fewer cramps, and less painful ones, than the group that didn't (Hallegraeff, Journal of Physiotherapy, 2012). It is one trial. But it is the kind of result magnesium has not been able to show.
Where does a magnesium balm fit?
A magnesium balm fits as the massage part of your routine. It doesn't replace stretching or a doctor visit. My name is Dr. Doug Strobel, MD. I am a board-certified neurologist, a Marine and Navy pilot before medical school, and an adventure athlete. I made a magnesium balm for my clinic patients and for myself first. I wanted to formulate a product unlike others on the market. I chose magnesium chloride since it's made for skin and it's the best pick for topical magnesium. My goal: the most magnesium chloride possible that still absorbs in completely, with no sting and no grit, in a handful of clean, non-toxic ingredients. Only goodness and nourishment that truly helps. That matters here, because the massage is the part you're most likely to keep doing. The magic happens when you massage it in completely. It comes as a 2.5 oz twist-up stick for the gym bag, an 8 oz jar for home and a 0.5 oz mini.
When should leg cramps worry you?
See a doctor if cramps are frequent or severe, come with weakness, numbness, swelling or skin changes, or started with a new medicine.
Most leg cramps are harmless. But cramps can be tied to pregnancy, nerve problems and some medicines. As a neurologist, I'd rather see someone early than have them keep buying products for something that needs a diagnosis.
Your calf plan: pick, rub, repeat
- Pick your spot. The calf that cramps, from ankle to knee. Start with a thin layer. Most people use too much.
- Rub it in. Use my 5-inch rule: cover the spot that cramps plus about 5 inches above, below and all the way around it. Massage with long strokes from ankle to knee until it disappears.
- Repeat. Before bed, after a run, or any time you like, right after your nightly stretch. Skip broken or irritated skin.
Picture lights out after a calf stretch and a slow two-minute rub. Nothing on your sheets, and a routine you can stick with.
Related reading
- Magnesium Cream vs Pills: Which Should You Use (and Can You Use Both)?
- Does Topical Magnesium Absorb Through the Skin? A Neurologist Reads the Research
- Magnesium Balm Benefits for Sore Muscles: A Neurologist's Recovery Guide
Frequently asked questions
Does magnesium cream help leg cramps?
Magnesium cream can be part of a calf massage, and lab work shows magnesium can cross the skin's outer layer. It has not been tested for leg cramps in a clinical trial, so there is no proof of cramp prevention.
Is topical magnesium better than oral for cramps?
Magnesium by mouth was tested in 11 trials and showed little benefit for older adults' night cramps. Topical magnesium hasn't been tested for cramps at all, so no one can say which is better.
Does magnesium help leg cramps at night?
Magnesium by mouth is unlikely to do much to prevent leg cramps at night in older adults, a Cochrane review of 11 trials found. The evidence in pregnancy is mixed.
Which magnesium is best for leg cramps?
If your doctor finds low magnesium, glycinate and citrate are usually easier on the stomach. No form has been shown best for leg cramps, because magnesium by mouth as a whole showed little benefit for older adults' night cramps.
Does stretching help leg cramps at night?
Stretching helps leg cramps at night. In a trial of 80 adults over 55, stretching the calves and hamstrings right before bed every night for six weeks cut how often and how badly cramps hit.
Where should I rub magnesium for leg cramps?
Rub magnesium for leg cramps on the calf, from the ankle to the back of the knee, covering about 5 inches around the spot that cramps. Massage until it disappears.
What stops a leg cramp fast?
Stretching the muscle stops a leg cramp fastest. Straighten the knee and pull your toes toward your shin, or lean into a wall with your heel down. Then walk and massage the calf.
Sources
- Garrison SR, et al. Cochrane Database of Systematic Reviews, 2020. PMID 32956536
- Chandrasekaran NC, et al. Magnesium Research, 2016. PMID 27624531
- Hallegraeff JM, et al. Journal of Physiotherapy, 2012. PMID 22341378
This article is educational and is not medical advice. Dr. Doug's products are cosmetic and are not intended to diagnose, treat, cure or prevent any disease.