Skip to main content
Nutrition

Magnesium and Muscle Cramps: What Every Gym-Goer Should Know

Coach Farah Liyana

Understand the link between magnesium deficiency and muscle cramps. Learn the best food sources and supplements for active Malaysians who train regularly.

The Mineral Most Malaysians Are Missing

You are deep into a heavy squat session when suddenly your calf locks up in an agonising cramp. Or perhaps you wake at 3 AM with a charley horse in your leg that leaves you clutching your calf in the dark. If these scenarios sound familiar, there is a good chance your body is not getting enough magnesium.

Magnesium is the fourth most abundant mineral in your body and is involved in over 300 enzymatic reactions, including muscle contraction, nerve function, energy production, and protein synthesis. Despite its critical importance, magnesium deficiency is remarkably common - estimates suggest that 50 to 80 percent of people in developed countries consume less than the recommended daily amount.

For active Malaysians who exercise regularly, the problem is amplified. You lose magnesium through sweat, and intense exercise increases your body's magnesium requirements. Training in Malaysia's tropical heat, where sweat rates are significantly higher than in temperate climates, further depletes your magnesium stores.

How Magnesium Affects Your Muscles

Magnesium plays a crucial role in the muscle contraction-relaxation cycle. Here is how it works:

When a nerve signal tells your muscle to contract, calcium floods into the muscle cells, triggering contraction. Magnesium acts as the gatekeeper that helps push calcium back out, allowing the muscle to relax. When magnesium levels are insufficient, calcium lingers too long in the muscle cells, causing prolonged contractions - what you experience as cramps, spasms, and twitches.

Beyond cramps, low magnesium affects muscle function in several ways:

Reduced strength. Magnesium is essential for ATP (adenosine triphosphate) production - the energy currency your muscles use for every contraction. Low magnesium means less available energy for your workouts.

Impaired recovery. Magnesium supports protein synthesis, the process by which your muscles repair and grow after training. Deficiency slows recovery and can limit muscle gains.

Increased inflammation. Low magnesium is associated with elevated inflammatory markers, which can increase muscle soreness and joint discomfort.

Poor sleep quality. Magnesium helps regulate neurotransmitters involved in sleep, including GABA. Many people with magnesium deficiency report difficulty falling and staying asleep - and poor sleep directly impairs muscle recovery.

Signs of Magnesium Deficiency

Beyond muscle cramps, watch for these symptoms:

  • Muscle twitches, especially around the eyes or calves
  • Persistent muscle tension or tightness
  • Difficulty relaxing or winding down at night
  • Restless legs, particularly in the evening
  • Headaches or migraines
  • Fatigue despite adequate sleep
  • Increased anxiety or nervousness
  • Heart palpitations
  • Numbness or tingling in extremities

Many of these symptoms overlap with other conditions, so if you experience several of them, magnesium deficiency should be considered alongside other possibilities.

Why Active Malaysians Are at Higher Risk

Sweat Losses

A single hour of intense exercise in Malaysian conditions can cause the loss of 1 to 2.5 litres of sweat. Each litre contains approximately 4 to 10 mg of magnesium. While this may seem small, cumulative losses over weeks of regular training add up significantly.

Increased Metabolic Demand

Exercise increases your body's magnesium turnover. Active individuals need 10 to 20 percent more magnesium than sedentary people to support higher rates of energy production, muscle contraction, and tissue repair.

Dietary Patterns

The modern Malaysian diet, increasingly dominated by processed foods, white rice, and convenience meals, often falls short of magnesium-rich whole foods. Soil depletion in commercial agriculture has also reduced the magnesium content of crops over the past several decades.

Stress

High cortisol levels from chronic stress increase urinary magnesium excretion. Given the fast-paced, high-pressure lifestyle common in Malaysia's urban centres, stress-related magnesium depletion is a real concern.

Coffee and Tea Consumption

Malaysia's coffee and tea culture (teh tarik, kopi, and the thriving specialty coffee scene) can contribute to magnesium loss. Caffeine has a mild diuretic effect that increases mineral excretion through urine.

Magnesium-Rich Foods in the Malaysian Diet

Before reaching for supplements, prioritise magnesium-rich foods:

Dark Leafy Greens

  • Bayam (spinach): 79 mg per 100g cooked
  • Kangkung: 65 mg per 100g
  • Sawi (mustard greens): 54 mg per 100g

Nuts and Seeds

  • Pumpkin seeds: 550 mg per 100g - the richest food source
  • Almonds: 270 mg per 100g
  • Cashews: 260 mg per 100g
  • Peanuts: 168 mg per 100g (peanut butter on wholemeal bread is an easy choice)

Legumes

  • Black beans: 70 mg per 100g cooked
  • Chickpeas: 48 mg per 100g cooked
  • Lentils (dhal): 36 mg per 100g cooked

Whole Grains

  • Brown rice: 44 mg per 100g cooked (compared to 12 mg in white rice)
  • Oats: 177 mg per 100g dry

Other Sources

  • Dark chocolate (70%+ cocoa): 228 mg per 100g
  • Avocado: 29 mg per 100g
  • Banana: 27 mg per 100g
  • Tofu: 53 mg per 100g

Recommended Daily Intake

  • Men: 400 to 420 mg per day
  • Women: 310 to 320 mg per day
  • Active individuals: 400 to 500 mg per day may be beneficial

Magnesium Supplements: Choosing the Right Form

If dietary changes alone are insufficient, supplementation can help. However, not all magnesium supplements are created equal.

Magnesium Glycinate

Magnesium bound to the amino acid glycine. Highly absorbable with minimal digestive side effects. The glycine also has calming properties, making this the best form for evening use and sleep support. This is my top recommendation for most people.

Cost in Malaysia: RM40 to RM100 for a month's supply.

Magnesium Citrate

Well-absorbed and widely available. Has a mild laxative effect at higher doses, which can be beneficial for those with constipation but problematic for others.

Cost in Malaysia: RM25 to RM70.

Magnesium Threonate

The only form shown to cross the blood-brain barrier effectively, making it the best choice for cognitive benefits and sleep. More expensive than other forms.

Cost in Malaysia: RM80 to RM180.

Magnesium Oxide

The cheapest and most common form found in Malaysian pharmacies. Unfortunately, it has very poor bioavailability - your body absorbs only about 4 percent. Mainly useful as a laxative rather than for correcting deficiency.

Magnesium Taurate

Combines magnesium with the amino acid taurine. Good for cardiovascular support and muscle function. Moderately priced and well-tolerated.

Practical Supplementation Guide

Timing: Take magnesium with dinner or before bed. It promotes relaxation and sleep, and absorption is enhanced when taken with food.

Dosage: 200 to 400 mg of elemental magnesium per day through supplements, in addition to dietary intake. Start with 200 mg and increase if needed.

Duration: Replenishing magnesium stores can take 4 to 6 weeks of consistent supplementation. Do not expect immediate results.

Caution: Excessive magnesium can cause diarrhoea, nausea, and in extreme cases, dangerous drops in blood pressure. People with kidney disease should consult their doctor before supplementing, as the kidneys regulate magnesium excretion.

Other Strategies to Prevent Cramps

While magnesium is often the primary culprit, muscle cramps can have multiple causes:

  • Stay hydrated. Dehydration concentrates minerals in your blood and can trigger cramps, especially in Malaysian heat.
  • Ensure adequate sodium and potassium. These electrolytes work alongside magnesium for proper muscle function.
  • Warm up properly. Cold muscles are more prone to cramping.
  • Do not neglect stretching. Regular flexibility work reduces muscle tightness that predisposes to cramps.
  • Progress training gradually. Sudden increases in exercise volume or intensity are a common cramp trigger.

Magnesium deficiency is one of the most common yet most overlooked nutritional issues among active Malaysians. By prioritising magnesium-rich foods, supplementing wisely, and staying well-hydrated in our tropical climate, you can reduce cramps, improve your workout performance, sleep better, and support your overall health.

Find a Personal Trainer

Ready to put this into practice? Connect with a certified personal trainer near you, or explore by service and goal.

Ready to Put This Into Action?

Stop reading, start training. WhatsApp us your goal and we will match you with a certified trainer in your area. No commitment needed.

Chat on WhatsApp Now