3 simple steps to lose weight as fast as possible. Read now

Foods that help with muscle cramps

12 foods that decrease and even prevent muscle cramps.

Muscle cramps are a painful symptom experienced by many people. Here are 12 foods that may help with muscle cramps.

This article is based on scientific evidence, written by experts, and fact-checked by experts.
We look at both sides of the argument and strive to be objective, unbiased, and honest.
12 foods that may help with muscle cramps
Last updated on June 5, 2023, and last reviewed by an expert on August 1, 2022.

Muscle cramps are an uncomfortable symptom characterized by painful, involuntary muscle contractions or part of a muscle. They’re typically brief and usually over within a few seconds to a few minutes.

12 foods that may help with muscle cramps

Although the exact cause isn’t always known, intense exercise, neuromuscular abnormalities, medical conditions, an electrolyte imbalance, medication use, and dehydration are thought to be common contributors.

Some research shows that replacing certain nutrients, including potassium, sodium, and magnesium, may help counteract muscle cramps. Plus, deficiencies in nutrients like magnesium, vitamin D, and certain B vitamins may increase the chances of muscle cramps.

For these reasons, eating nutrient-dense foods rich in particular vitamins and minerals may help decrease muscle cramping and prevent it from occurring in the first place.

Here are 12 foods that may help with muscle cramps.

1. Avocado

Avocados are creamy, delicious fruits packed with nutrients that may help prevent muscle cramps.

They’re particularly rich in potassium and magnesium, two minerals that act as electrolytes in the body and play roles in muscle health. Electrolytes are electrically charged substances that your body needs to perform critical functions, including muscle contraction.

When electrolytes become imbalanced, such as after intense physical activity, symptoms like muscle cramping can arise.

Therefore, if you experience frequent muscle cramps, consuming plenty of electrolyte-rich foods such as avocados may help.

2. Watermelon

One possible cause of muscle cramps is dehydration. Proper muscle function requires adequate hydration, and a lack of water can hinder muscle cells’ ability to contract, which may cause or exacerbate cramping.

Watermelon is a fruit that has an exceptionally high water content. Watermelon is nearly 92% water, making it an excellent choice for a hydrating snack.

What’s more, watermelon is a good source of magnesium and potassium, two minerals that are important for overall muscular function.

3. Coconut water

Coconut water is a go-to choice for athletes looking to rehydrate and replenish electrolytes naturally — and for a good reason.

It’s an excellent source of electrolytes, providing calcium, potassium, sodium, magnesium, and phosphorus — all of which may help decrease muscle cramping.

8 healthy drinks rich in electrolytes
Suggested read: 8 healthy drinks rich in electrolytes

One study found that when ten male athletes rehydrated with an electrolyte-containing beverage similar to coconut water after intense exercise, they were less susceptible to electrical-stimulation-induced muscle cramps than when they hydrated with regular water.

This may indicate that staying hydrated with electrolyte-rich coconut water may help reduce your susceptibility to post-exercise muscle cramping, though more research is needed.

4. Sweet potato

Sweet potatoes are the healthiest vegetables you can eat due to the powerful combination of vitamins, minerals, and plant compounds in their flesh and skin.

They’re packed with potassium, calcium, and magnesium — minerals that are vital for muscle function.

1 cup (200 grams) of mashed sweet potato delivers over 20% of the recommended intake for potassium and nearly 13% of the recommended intake for magnesium.

5. Greek yogurt

Greek yogurt is a healthy dairy product with many nutrients, particularly potassium, phosphorus, and calcium — all of which act as electrolytes in your body.

Muscles need calcium to function correctly, so a lack of calcium in your blood can lead to muscle-related complications, including muscle cramps and irregular heartbeat.

Greek yogurt is also loaded with protein, which is needed for the growth and repair of muscle tissue.

Therefore, eating Greek yogurt after a strenuous workout can help replenish certain nutrients that may prevent exercise-related muscle cramps and boost muscle recovery.

Suggested read: 17 foods and drinks for when you have the stomach flu

6. Bone broth

Bone broth is made by simmering animal bones in water for a long time, usually over 8 hours, to create a concentrated broth. Ingredients like apple cider vinegar, herbs, and spices are typically added to enhance the nutritional value and flavor.

Bone broth may help reduce muscle cramps for several reasons. Given that it’s a liquid, drinking it can help you stay hydrated, which may reduce muscle cramping.

Plus, bone broth is a good source of magnesium, calcium, and sodium — nutrients that may help prevent cramping.

When making bone broth, be sure to cook the broth for a long time and add an acidic component, such as apple cider vinegar, to your recipe.

Research shows that reducing bone broth pH by increasing the acidity and cooking broth for longer than 8 hours results in significantly higher concentrations of calcium and magnesium in the finished product.

7. Papaya

Papayas are tasty tropical fruits that are incredibly high in potassium and magnesium. One 11-ounce (310-gram) papaya delivers about 15% and 19% of the recommended intakes for potassium and magnesium, respectively.

One study in 230 women found that those who experienced muscle cramps consumed less dietary potassium than those who did not experience this symptom.

Therefore, consuming more potassium-rich foods like papayas may help reduce your risk of muscle cramps. However, more research in this area is needed.

8. Beet greens

Beet greens are the leafy, nutritious tops of the beet plant. They’re amongst the most nutritious greens you can eat and packed with several nutrients that support muscle health and may reduce your risk of muscle cramps.

For example, 1 cup (144 grams) of cooked beet greens contains over 20% of the recommended intake for both potassium and magnesium. They’re also rich in calcium, phosphorus, and B vitamins, which are also important for muscle function.

Moreover, beet greens are loaded with nitrates, compounds that help improve blood vessel function, ensuring proper blood flow to your muscles. Optimizing blood flow may help reduce muscle cramps.

Suggested read: Best hangover foods: The best food to eat when hungover

9. Fermented foods

Fermented foods like pickles and kimchi are typically high in sodium and other nutrients that may help reduce muscle cramps. Interestingly, some research has shown that consuming pickle juice may help inhibit electrically induced muscle cramps in athletes.

A study on male athletes demonstrated that drinking small amounts of pickle juice strained from whole pickles reduced electrically-induced muscle cramp duration by 49.1 seconds, compared with drinking plain water or no fluids.

Pickles, along with other fermented foods, including kimchi and sauerkraut, are rich in electrolytes like sodium and may be a good choice for those who experience frequent muscle cramps.

However, more research is needed before fermented foods and beverages can be recommended as a treatment for muscle cramps.

10. Salmon

Salmon is an incredibly rich source of protein, healthy anti-inflammatory fats, and other nutrients that may help prevent muscle cramps, including B vitamins, potassium, magnesium, and phosphorus.

Salmon is also high in iron, a mineral essential for healthy blood cell production, the oxygenation of muscle tissue, and blood flow, which are important for muscle cramp prevention.

Additionally, salmon is a good source of vitamin D. Having healthy blood levels of vitamin D is vital for muscle function, and being deficient in this nutrient may lead to muscular symptoms, such as muscle pain, spasms, and weakness.

Wild-caught salmon is a rich source of vitamin D and has been shown to contain between 8–55 mcg per 3.5 ounces (100 grams).

The current daily intake recommendation for vitamin D is 15 mcg per day for adults, making wild-caught salmon an intelligent choice for people looking to increase their intake of this important vitamin.

11. Smoothies

Smoothies are an excellent choice for people who experience muscle cramps. They’re not only hydrating but also can be customized to contain a hearty dose of muscle-supporting nutrients.

Suggested read: How to rehydrate: 5 helpful tips

For example, combining frozen berries, spinach, almond butter, and Greek yogurt in an easy-to-drink smoothie can help deliver the vitamins and minerals your muscles need to function optimally.

Sipping on nutrient-rich smoothies may prevent muscle cramps by ensuring your body is properly hydrated and fueled.

12. Sardines

Sardines may be tiny, but they pack a punch regarding nutrition.

These small fish are incredibly high in nutrients that may help prevent and relieve muscle cramps, including calcium, iron, phosphorus, potassium, sodium, vitamin D, and magnesium.

They’re also high in selenium, a mineral that plays an essential role in muscle function. Low selenium levels may lead to muscle weakness or other muscular problems, making it important to include enough selenium-rich foods like sardines in your diet.


Muscle cramps are a painful symptom experienced by many people.

Fortunately, eating nutrient-dense foods rich in certain vitamins and minerals may help prevent and treat muscle cramps.

If you frequently experience muscle cramps, try adding a few of the foods and beverages on this list into your diet for natural relief.

If your symptoms don’t improve or worsen, discuss possible causes and treatment options with your healthcare provider.

Share this article: Facebook Pinterest WhatsApp Twitter / X Email

More articles you might like

People who are reading “12 foods that may help with muscle cramps” also love these articles:


Browse all articles