13 Everyday Foods That Help With Leg Cramps at Night
Muscle cramps—those sudden, painful contractions that can strike during workouts or at night—are often linked to electrolyte imbalances, dehydration, and muscle fatigue. Here’s a nutrient-packed guide to foods that help keep cramps at bay:
Top Cramp-Preventing Foods & Drinks
|
Food / Drink |
Key Electrolytes & Benefits |
|---|---|
|
Milk & Yogurt |
Rich in calcium, crucial for balanced muscle contractions |
|
Leafy Greens |
Spinach, kale, and chard offer potassium, magnesium, and calcium |
|
Bananas |
Provide ~400 mg potassium plus magnesium & calcium |
|
Avocado |
Nearly 1,000 mg potassium per fruit, plus healthy fats & electrolytes |
|
Beans (e.g., black beans) |
High in phosphorus, magnesium, and potassium |
|
Tomatoes |
Offer ~300 mg potassium with added calcium & antioxidants |
|
Sweet Potatoes |
80% water content and ~400 mg potassium per cup |
|
Melons |
~90% water → hydration + electrolytes (Ca, K, Na, Mg) |
|
Olives & Olive Oil |
Provide sodium, potassium, calcium, and magnesium |
|
Coconut Water |
Natural source of potassium and hydrating fluids |
|
Bone Broth |
Rich in electrolytes—especially sodium, magnesium, potassium |
|
Salmon |
Supplies magnesium, potassium, calcium, sodium and omega-3s |
|
Electrolyte Drinks |
Replenish sodium, potassium lost through sweating |
Why It Matters
Electrolytes like potassium, calcium, magnesium, phosphorus, and sodium are essential for healthy muscle contraction & relaxation. When these minerals drop—due to sweating, dehydration, or diet—it increases cramp risk.

Pro Tips
- Stay hydrated: drink water throughout the day
- Balance your diet: include a variety of electrolyte-rich foods
- Avoid ultra-processed foods low in minerals
- Stretch regularly—pre- and post-activity
- Consult a doctor if cramps persist despite good nutrition & hydration
Bottom Line
A diet rich in whole, nutrient-dense foods—like leafy greens, dairy, fruits, whole grains, salmon, and electrolytes—can help reduce muscle cramps by maintaining mineral balance, boosting hydration, and supporting muscle health .
Learn More About Zanskar Health
If you have joint pain, muscle pain or headaches that makes it hard to move, Zanskar offers the most advanced full stack pain relief solutions for you.
Now available to purchase, Zanskar® pain-care range have unique bio-active formulations. It provides lasting relief from muscle and joint discomfort that you can feel good about. Get your fix before stocks run out - buy now.
You can also gain access to therapeutic exercises and stretches for your condition by downloading the Zanskar Health physiotherapy mobile app. Additionally, you’ll have a personal care team to guide, support, and tailor our program to you, including behavioral and nutritional coaching.
Download our mobile app here 👉 download and track your exercise streak.
Medical Review: This article is written and medically reviewed by Dr Nishtha Mittal (Senior Health Content Editor at Zanskar Health). This article and its contents are provided for educational and informational purposes only and do not constitute medical advice or professional services specific to you or your medical condition.