Ingredient guide · Ingredient reference

Vitamins and food for leg cramps: deficiency is only one possibility

There is no single best vitamin for ordinary leg cramps. Stretching, medicine review and the cause of the cramps matter; mineral replacement is most relevant when there is a reason to suspect or confirm a shortage.

Read the evidence ↓

Supplement Science Insights Editorial Team

Published September 23, 2026

Respond to the cramp and review the pattern

NHS advises stretching or massaging the affected muscle, and regular calf stretching may reduce recurrence. Dehydration, exertion, pregnancy and some medicines can contribute, while many cramps have no identified cause. Cramps disturbing sleep, lasting over ten minutes or accompanied by swelling or numbness warrant review. [1]

Magnesium is not a dependable universal answer

The inspected Cochrane review concludes that magnesium is unlikely to reduce ordinary cramp frequency or severity in older adults. Pregnancy findings were uncertain, and evidence in other settings was limited. These conclusions do not mean a diagnosed magnesium deficiency should be ignored. [2][3]

Use food to meet needs rather than chase a cramp cure

Beans, nuts, seeds and leafy vegetables contribute magnesium; potatoes, beans and other vegetables or fruits can contribute potassium. Meeting nutrient needs is different from proving that one food stops a cramp. Potassium supplements can be hazardous with some medicines or kidney impairment. [3][4]

Investigate before building a mineral stack

Imagine night cramps begin after a medicine change. Bring the timeline to the prescriber rather than independently stopping the medicine or adding several electrolytes. If replacement is indicated, the dose and follow-up should match the identified problem. [1][4]

Hypothetical example — choose a next step using the condition, evidence and safety context
Option or findingPractical implication
Brief crampStretching or gentle massage
Routine magnesium purchaseBenefit is not established for every population
New persistent patternReview medicines and possible causes
Vitamins and food for leg cramps: deficiency is only one possibility — original article outline diagram
Original editorial diagram of this article’s sections; no product photograph or clinical finding is depicted.

Sources for this article

  1. Leg cramps - NHS
    Source consulted: 2026-09-20. This is a reference resource, not a claim that we conducted the studies or tested a product.
  2. Magnesium for muscle cramps | Cochrane
    Source consulted: 2026-09-20. This is a reference resource, not a claim that we conducted the studies or tested a product.
  3. Magnesium - Health Professional Fact Sheet
    Source consulted: 2026-09-20. This is a reference resource, not a claim that we conducted the studies or tested a product.
  4. Potassium - Health Professional Fact Sheet
    Source consulted: 2026-09-20. This is a reference resource, not a claim that we conducted the studies or tested a product.