Periods and PCOS · Article

Magnesium for cramps, periods, and sleep

How magnesium deficiency causes period cramps, leg cramps in pregnancy, and restless sleep — and how much you need from food and supplements.

The short answer

  • Magnesium deficiency contributes to painful period cramps, leg cramps in pregnancy, and poor sleep.
  • Indian diets often fall short because refining removes it from grains and many people get little leafy greens.
  • PCOS is linked to low magnesium — which worsens insulin resistance and irregular periods.
  • Good food sources include nuts, seeds, leafy greens, and whole grains — but absorption drops with phytates.
  • A food-first approach with strategic supplementation (200–400 mg) can help cramps and sleep.

Quick answer: How magnesium deficiency causes period cramps, leg cramps in pregnancy, and restless sleep — and how much you need from food and supplements. Magnesium deficiency contributes to painful period cramps, leg cramps in pregnancy, and poor sleep. Indian diets often fall short because refining removes it from grains and many people get little leafy greens.

Quick answer: Magnesium deficiency contributes to painful period cramps, leg cramps in pregnancy, and poor sleep.

Period cramps, leg cramps at 2 a.m., and that feeling of never quite resting — magnesium deficiency could be part of the picture. As one of the body’s natural relaxants, magnesium helps muscles and nerves settle down. For Indian women, especially those with PCOS and during pregnancy, getting enough matters more than most realise.

Magnesium-rich foods and deficiency symptoms for Indian women

Why magnesium runs low

Magnesium is lost every day through sweat, urine, and the menstrual cycle. The problem for Indian women is twofold:

  1. Refined grains lose magnesium — the outer layers of wheat, rice, and millet, where most magnesium lives, are stripped away during milling.
  2. Phytate interference — plant foods like dal, rajma, and leafy greens contain phytates that bind to magnesium and block absorption.
  3. PCOS connection — up to 60% of women with PCOS have low magnesium, which worsens insulin resistance and irregular periods.

The symptom pattern

SymptomWhy it happensWho it affects most
Period cramps, heavy flowMagnesium helps uterine muscles relax; deficiency leads to stronger crampsAll menstruating women
Leg cramps at nightMuscle relaxation impaired, common in pregnancyPregnant and postpartum women
Restless sleep, anxietyNervous system overactive; magnesium calms neurotransmittersWomen with PCOS, stress
Palpitations, headachesBlood vessels tighten; magnesium helps them dilatePerimenopausal women
ConstipationSmooth muscles in intestines slow downAnyone, but worse with low fibre

Why periods hurt

When your period starts, the lining of your uterus breaks down and your body releases prostaglandins — chemicals that make the uterus contract. These contractions squeeze out the lining, but they can also cause pain, nausea, and bloating. Magnesium helps these muscles relax, so low levels can make cramps worse.

Indian food sources, ranked

Highest (3–4 servings/week)

FoodMagnesium per 100 gNotes
Pumpkin seeds (roasted)~250 mgBest single source; soak to remove phytates
Flaxseeds (ground)~390 mgAlso provides omega-3 ALA for PCOS
Cashews (20 pieces)~240 mgAlso provides healthy fats
Almonds (10–12 pieces)~130 mgSoak overnight for better absorption
Spinach, cooked (1 cup)~150 mgAlso provides iron and folate

Good (daily)

FoodMagnesium per servingNotes
Sattu (½ cup)~95 mgMix with lemon for vitamin C
Makhana / fox nuts (1 cup, dry)~90 mgGood pregnancy-friendly snack
Ragi roti (1 medium)~80 mgBetter than refined wheat
Bajra roti (1 medium)~70 mgKeep the bran in
Peanuts (¼ cup)~65 mgPrefer roasted, unsalted
Dark chocolate (70%, 30 g)~65 mgSmall amounts satisfy cravings

Daily target: Aim for 300–400 mg from food across the day.

Absorption tips

  • Soak nuts and seeds for 2–8 hours before eating — this activates enzymes that reduce phytate levels.
  • Ferment grains when possible — idli, dosa, and sourdough reduce phytates significantly.
  • Cook leafy greens — boiling removes some oxalates that would otherwise bind magnesium.
  • Pair with vitamin B6-rich foods — banana, sabut, and whole grains help magnesium convert to its active form.

When to supplement

Food-first is best, but supplementation becomes important when:

  • You have PCOS with insulin resistance (needs higher magnesium)
  • You’re pregnant and cramping badly
  • You have chronic stress or poor sleep despite diet changes

How much to take:

  • For period cramps: 350–400 mg magnesium glycinate daily, starting 2 days before your period
  • For sleep and PCOS: 200–300 mg magnesium glycinate at bedtime
  • For leg cramps in pregnancy: 350–400 mg until cramps resolve; stop after birth

Avoid magnesium oxide (poor absorption, laxative effect). Choose glycinate, citrate, or malate.

Interaction warning: Magnesium enhances the effect of some blood pressure medications. If you take BP drugs, get your levels monitored.

For anxiety or stress: If magnesium alone isn’t enough, call Tele MANAS (14416) — India’s free, 24/7 mental health helpline.

Magnesium and seed cycling

If you’re already eating flaxseeds and pumpkin seeds as part of seed cycling, you’re getting magnesium along with omega-3s and zinc. To boost the benefit, soak the seeds overnight and grind your flaxseed fresh.

Magnesium forms: which supplement to choose

Not all magnesium supplements are created equal. The form determines how well it’s absorbed and which symptoms it targets:

FormAbsorptionBest forNotes
Magnesium glycinateExcellentSleep, anxiety, crampsCalming; least likely to cause loose stools
Magnesium citrateVery goodConstipation, general deficiencyMay cause loose stools at higher doses
Magnesium malateGoodMuscle pain, fatigueOften used for fibromyalgia
Magnesium oxidePoor (10–20%)Constipation onlyCheap but poorly absorbed; laxative effect
Magnesium threonateExcellent for brainMemory, moodCrosses blood-brain barrier; most expensive

For Indian women: Magnesium glycinate is the best starting point for cramps, sleep, and PCOS-related anxiety. If cost is a concern, magnesium citrate works almost as well at half the price — just start with a lower dose and increase gradually.

Magnesium and blood pressure in pregnancy

Magnesium helps relax blood vessels, which is why it’s crucial for preventing and managing pregnancy-induced hypertension. However, if you’re taking blood pressure medication, work with your doctor:

  • Labetalol, nifedipine, or methyldopa — magnesium supplements can enhance their effect, lowering BP too much
  • ACE inhibitors — avoid in pregnancy anyway, but if prescribed, magnesium can interact
  • Aspirin (81 mg) — often prescribed for pre-eclampsia prevention in high-risk women; magnesium and aspirin don’t interact but both affect clotting

The sweet spot for pregnancy-induced hypertension is 350–400 mg of magnesium glycinate daily, monitored by your obstetrician. This matches the dose that helps with leg cramps — so one supplement addresses two common pregnancy complaints.

Not all cramps are from magnesium deficiency. Here’s how to tell:

Magnesium-responsive cramps:

  • Occur when you’re tired or stressed
  • Feel like tight bands or knots, not sharp spasms
  • Happen at night, often between 10 p.m. and 4 a.m.
  • Improve with stretching or warmth
  • Are bilateral (both legs or both calves)

Non-magnesium cramps:

  • Sharp, shooting, one-sided
  • Occur during the day with activity
  • Don’t improve with stretching
  • May be from nerve compression or circulatory issues

If your cramps match the magnesium-responsive pattern, try a 2-week trial of 350 mg magnesium glycinate at bedtime. If there’s no improvement, look elsewhere — possibly iron deficiency (which can also cause restless legs) or nerve compression.

For period cramps specifically, our foods for period pain guide covers anti-inflammatory foods and magnesium-rich ingredients.

Key takeaways

  1. Cramps and poor sleep are classic signs — magnesium is nature’s muscle relaxant.
  2. Indian refined diets are low in it — soaking, fermenting, and eating nuts/seeds helps.
  3. PCOS worsens magnesium depletion — targeting 400 mg+ daily is often needed.
  4. Choose the right supplement — glycinate or citrate, not oxide.
  5. Start small — excess magnesium causes loose stools, which tells you to dial back.

Related: Flaxseeds and pumpkin seeds are the best Indian kitchen sources of magnesium. For sleep support, see our guide on seed cycling for hormones and PCOS.

Ingredients in this guide

Questions women ask

How much magnesium do I need daily?

Adult women need about 310–320 mg daily. Pregnant women need 350–360 mg. The tolerable upper limit for supplemental magnesium is 350 mg/day from supplements (not food).

Will magnesium help my period cramps?

Several studies show that 350–500 mg of magnesium per day reduces the severity of menstrual pain. It works by relaxing blood vessels and smooth muscle, including the uterus.

Which form of magnesium should I take?

For cramps and sleep, magnesium glycinate or magnesium citrate are best absorbed and least likely to cause loose stools. Avoid magnesium oxide, which is poorly absorbed and laxative.

Does magnesium interfere with birth control or PCOS medications?

Magnesium may lower blood pressure slightly, which can interact with some medications. If you take blood pressure drugs, check with your doctor. Otherwise, it is generally safe with PCOS medications.

Sources

  1. Dietary Guidelines for Indians, 2024 (ICMR–National Institute of Nutrition)
  2. Magnesium and menstrual pain: systematic review (Cochrane Database, 2023)

Cite this article

Poshita. "Magnesium for cramps, periods, and sleep." Last reviewed 2026-10-24. Accessed 2026-11-24.

This guide is general information, not medical advice. Every pregnancy, birth and body is different. Check with your doctor or a registered dietitian before changing your diet, especially if you have diabetes, high blood pressure, a thyroid condition, allergies or a recent surgery. Read our medical disclaimer.

Read next