What Should I Eat to Stop Muscle Cramps?
Quick answer: Muscle cramps are usually caused by electrolyte imbalances (magnesium, potassium, sodium, calcium) or dehydration. Eating electrolyte-rich foods and staying hydrated prevents most cramps.
What to Eat
Bananas
Potassium-rich — low potassium causes muscle cramps. Eating a banana before or after exercise prevents exercise-induced cramps.
Magnesium foods (dark chocolate, almonds, pumpkin seeds, spinach)
Magnesium is the most important mineral for muscle relaxation. After a cramp occurs, magnesium is the primary deficiency to address.
Avocado
Extremely high in potassium (more than banana) and magnesium — dual electrolyte support for muscle function.
Sweet potato
High in potassium and calcium — excellent cramp-preventing food.
Dairy (milk, yogurt)
Calcium is essential for muscle contraction and relaxation regulation.
Coconut water
Natural isotonic drink — contains potassium, magnesium, and sodium in a bioavailable form ideal for cramp prevention.
Salmon and fatty fish
Vitamin D, omega-3s, and magnesium — all reduce inflammation and support muscle nerve signalling.
Dark leafy greens (spinach, Swiss chard, kale)
Calcium, magnesium, and potassium — three of the four main cramp-preventing electrolytes in one food.
Watermelon
Water + potassium + magnesium — natural cramp-prevention food, especially good in hot weather.
What to Avoid
Alcohol
Diuretic that depletes electrolytes through excess urination — a reliable cramp trigger after drinking.
Caffeine in excess
Mild diuretic effect that can deplete potassium and magnesium in heavy users.
Heavily salted processed foods
Excess sodium disrupts fluid balance and electrolyte ratios, paradoxically worsening cramping.
Sugary sports drinks (excessive amounts)
The sugar content can impair electrolyte absorption — dilute if using during long exercise.
Hydration
Dehydration is a primary cause of cramps. Drink 2–3L daily with additional fluid during and after exercise. Add electrolytes (salt + potassium) to water during prolonged exercise rather than drinking plain water. Coconut water is excellent for post-cramp recovery.
Tips
- •Night cramps specifically are most commonly due to magnesium deficiency — magnesium glycinate (200–400mg) before bed resolves them effectively.
- •Pickle juice (a small shot: 60–90ml) relives cramps within 35 seconds in research — thought to work through neural inhibition, not electrolytes.
- •Quinine (tonic water) is a traditional remedy — limited clinical evidence but considered safe in small amounts.
- •Stretch affected muscles regularly, especially calf muscles before sleeping if you get night cramps.
- •If cramps are frequent and severe, rule out circulation issues, nerve compression, or medication side effects (statins, diuretics commonly cause cramps).