magnesium has become a hugely popular supplement for sleep and relaxation taken before bed.
Here’s a breakdown of why, the science behind it, the best forms for sleep, and important cautions.
Why Do People Take Magnesium Before Bed?
-
Natural Muscle Relaxant: Magnesium helps regulate neurotransmitters that calm the nervous system and relax muscles, which can ease physical tension that prevents sleep.
-
Regulates Melatonin: It plays a role in regulating the body’s circadian rhythm and the production of melatonin, the “sleep hormone.”
-
Calms the Mind: Magnesium binds to GABA receptors in the brain. GABA is a neurotransmitter that slows down brain activity, promoting quietness and mental relaxation—exactly what’s needed for sleep.
-
May Reduce Cortisol: Some studies suggest it can help lower levels of the stress hormone cortisol, especially at night.
Best Forms of Magnesium for Sleep
Not all magnesium supplements are equal. The “type” (or compound) matters greatly for absorption and effect.
| Form | Best For | Notes for Sleep |
|---|---|---|
| Magnesium Glycinate | Sleep & Relaxation (TOP CHOICE) | Bound to glycine, an amino acid with its own calming properties. Highly bioavailable and gentle on the stomach. |
| Magnesium Citrate | Constipation & General Supplementation | Well-absorbed but has a laxative effect at higher doses. Can be used for sleep if doses are moderate. |
| Magnesium L-Threonate | Brain Function & Cognitive Support | Newer form that may cross the blood-brain barrier effectively. Anecdotally praised for sleep, but more expensive. |
| Magnesium Oxide | Constipation (Not ideal for sleep) | Poorly absorbed. Mainly used as an antacid or laxative. Not the best choice for sleep benefits. |
For sleep, Magnesium Glycinate is most frequently recommended by healthcare practitioners.
Typical Dosage & How to Take
-
Dose: A common supplemental dose for sleep is between 200-400 mg of elemental magnesium, taken 30-60 minutes before bed. Always start low (e.g., 100-200 mg) to assess tolerance.
-
Check the Label: Supplements list the total compound weight (e.g., “Magnesium Glycinate 1000mg”) and the elemental magnesium amount (e.g., “Magnesium 200mg”). Dose based on the elemental amount.
-
With or Without Food: Can be taken with or without food, but taking it consistently before bed helps establish a routine.
Important Cautions & Who Should Avoid It
-
Medication Interactions: Magnesium can interfere with the absorption of some medications, including certain antibiotics, osteoporosis drugs (bisphosphonates), and diuretics. Space it at least 2 hours apart from other medications.
-
Health Conditions: Those with kidney disease must avoid supplementation unless under direct medical supervision, as kidneys regulate magnesium.
-
Side Effects: High doses can cause diarrhea, nausea, and stomach cramps (most common with citrate and oxide forms).
-
Not a Magic Bullet: While helpful for many, sleep issues can be complex (rooted in stress, apnea, schedule, etc.). Magnesium is a supportive tool, not a cure-all.
Natural Food Sources
Increasing dietary magnesium is also beneficial:
-
Pumpkin seeds, spinach, Swiss chard, black beans, almonds, peanuts, avocado, and dark chocolate.
The Bottom Line
Many people find that 200-400 mg of Magnesium Glycinate before bed helps them relax mentally and physically, leading to improved sleep quality and onset. It’s considered safe for most people when used appropriately, but it’s wise to consult with a doctor or pharmacist before starting, especially if you have health conditions or take other medications.
Have you considered trying it, or are you looking for more specific information about a particular form or situation?
So, how much is too much? I’ve been taking 800 mg’s. because someone told me that it was good for leg cramps and I get them a lot. Sometimes it works and sometimes it doesn’t. Just wondering if taking 800 mg’s is doing any harm. Thank you.
The Short Answer: Yes, 800 mg is likely too much.
The Tolerable Upper Intake Level (UL) for supplemental magnesium is 350 mg per day for adults. This is the amount from supplements only (not food).
You are taking 800 mg — that’s more than double the safe upper limit.
What Happens at 800 mg?
For most people, doses above 350-400 mg regularly cause:
Diarrhea and loose stools (the most common first sign)
Nausea and abdominal cramping
More serious issues at very high or prolonged doses:
Irregular heartbeat (arrhythmia)
Muscle weakness
Low blood pressure (hypotension)
Confusion or lethargy
Kidney stress — especially dangerous if you have any underlying kidney issues (even mild)
Critical warning: If you have kidney disease (even early stage), 800 mg could be toxic because your body cannot excrete the excess. Magnesium toxicity can cause cardiac arrest.
Why does it sometimes work for leg cramps and sometimes not?
When it works: Your cramps may be due to a true magnesium deficiency (common in older adults, people on certain diuretics, or those with GI issues). The high dose temporarily corrects that.
When it doesn’t work: Most leg cramps are not caused by magnesium deficiency. Common causes include:
Dehydration
Electrolyte imbalance (low potassium, low sodium, low calcium)
Muscle fatigue or overuse
Peripheral artery disease (PAD)
Nerve compression (spinal stenosis)
Medications (statins, diuretics)
If magnesium doesn’t consistently stop your cramps, you’re likely treating the wrong cause — and exposing yourself to unnecessary risk.
What is a safe dose for leg cramps?
Start with 200–300 mg per day of a well-absorbed form (magnesium glycinate or citrate).
Take with food to reduce GI side effects.
Increase only if needed and if your doctor approves — and never exceed 350 mg from supplements.
What you should do right now:
Stop taking 800 mg immediately. Drop to 300–350 mg per day.
Check your kidney function (simple blood test: creatinine, eGFR) before taking any magnesium long-term.
See your doctor for recurrent leg cramps that don’t respond to 300 mg of magnesium. You may need:
Electrolyte panel (potassium, calcium, sodium, magnesium)
Review of medications
Evaluation for nerve or vascular causes
Better, safer options for leg cramps (if magnesium alone fails):
Intervention Evidence
Hydration (2–3L water daily) Strong for heat-related or exercise cramps
Pickle juice or mustard (1 tbsp) Surprisingly effective for acute cramps (triggers neural reflex)
Quinine (only tonic water) — low dose Weak evidence; avoid prescription quinine
Stretching before bed (calf stretches) Strong for nocturnal leg cramps
Vitamin B complex Helps if deficiency exists
Magnesium glycinate 300 mg + potassium-rich foods (banana, avocado, spinach) Addresses dual electrolyte deficiency
The bottom line:
800 mg is too much for almost anyone. You are in the range where toxicity becomes real, especially with long-term use. Drop your dose today, get your kidneys checked, and ask your doctor to help find the real cause of your leg cramps — because magnesium is clearly not a reliable fix for you.
Thank you for asking. You may have just saved yourself from a serious electrolyte or cardiac complication.