Skip to content
SupplementMagazine

Minerals

Magnesium Citrate Uses: 4 Trials That Tested Citrate Itself

By Emrah Sümer, Founder & Managing Editor
October 7, 2026
Illustration of four capsules in a row, the last drawn only as a dashed outline
Illustration of four capsules in a row, the last drawn only as a dashed outline

Key takeaways

  • In the only trial of magnesium citrate for poor sleep (320 mg/day, 7 weeks), placebo improved sleep scores just as much.
  • Migraine: 600 mg/day trimagnesium dicitrate cut attacks 41.6% vs 15.8% on placebo, at a dose above the 350 mg supplemental limit.
  • Kidney stones: prescription potassium-magnesium citrate, new stones 12.9% vs 63.6% on placebo.
  • Leg cramps: 300 mg citrate showed a non-significant trend (p = 0.07).
  • Keep supplemental magnesium at or under 350 mg a day unless a doctor advises otherwise.

“Magnesium citrate” sits in two aisles. In the pharmacy it is a lemon-flavoured liquid laxative taken at doses many times the supplement limit. In the supplement aisle it is a capsule sold for sleep, cramps and calm.

This page is about the capsule. Most claims for it borrow evidence from trials of magnesium in general. Four trials gave people citrate itself, and they are the better guide.

Four uses, four trials

UseWhat was givenResult
Poor sleep320 mg/day magnesium as citrate, 7 weeks, 100 adults over 51Sleep improved, but equally on placebo
Migraine prevention600 mg/day trimagnesium dicitrate, 12 weeks, 81 patientsAttacks -41.6% vs -15.8% on placebo
Kidney stonesPrescription potassium-magnesium citrate, up to 3 years, 64 patientsNew stones 12.9% vs 63.6% on placebo
Night leg cramps300 mg/day as citrate, 6-week crossoverTrend only (p = 0.07)

Sleep: the trial most buyers have not heard of

The best-known sleep use is the weakest in trials of citrate.

In a US Department of Agriculture study, 100 adults aged 51 to 85 with poor sleep took 320 mg of magnesium a day as magnesium citrate or a placebo for seven weeks. Their Pittsburgh Sleep Quality Index scores improved from 10.4 to 6.6, and the authors are explicit that this happened “regardless of magnesium or placebo supplementation.” They concluded that “another factor, possibly a placebo effect, improved sleep quality.”

Magnesium did do something: in people with low blood magnesium, it raised it, and in people with high inflammation markers, it lowered C-reactive protein. It just did not beat placebo on sleep.

The broader evidence is thin too. A 2021 meta-analysis of all oral magnesium for insomnia in older adults found three trials with 151 people. People fell asleep 17.36 minutes sooner on magnesium, but total sleep time did not change significantly, and the evidence was rated low to very low quality.

Migraine: an effect, at a dose above the limit

A German trial gave 81 people with migraine 600 mg of magnesium a day as trimagnesium dicitrate for 12 weeks. In the last four weeks, attack frequency was down 41.6% against 15.8% on placebo, and both migraine days and painkiller use fell.

Two catches. 600 mg is above the 350 mg upper limit for magnesium from supplements, and 18.6% of the magnesium group had diarrhea. That makes this a dose to take with a doctor, not one to copy from a label.

Kidney stones: a prescription combination

In a three-year Kaiser Permanente trial, 64 people who had had calcium oxalate stones took potassium-magnesium citrate or placebo. New stones formed in 63.6% on placebo and 12.9% on the combination.

The product delivered potassium and citrate as well as magnesium, so the result belongs to the combination, not to a magnesium citrate capsule.

Leg cramps: a trend, not a result

A British crossover trial gave people with regular night-time leg cramps magnesium citrate equivalent to 300 mg of magnesium or placebo for six weeks each. Cramps were fewer on magnesium, but the difference did not reach significance (p = 0.07). More people felt it helped (78% vs 54%), which is the kind of result that keeps a remedy popular without proving it.

How to use magnesium citrate safely

  1. Count elemental magnesium, not citrate. The weight of magnesium citrate on a label is much larger than the magnesium in it.
  2. Stay at or under 350 mg a day of supplemental magnesium unless a doctor advises otherwise. Our supplement upper limit checker does the arithmetic.
  3. Expect loose stools above that. Diarrhea was the side effect in both the migraine and leg-cramp trials.
  4. Do not use the liquid laxative as a supplement. It is dosed for a bowel movement, not for daily magnesium.

How citrate compares with other forms for absorption is covered in is magnesium water soluble and magnesium glycinate vs citrate.

The short version

Magnesium citrate is a well-absorbed way to take magnesium, but in the one trial that tested it for poor sleep, placebo worked as well. It cut migraine attacks at 600 mg, above the supplement limit; a prescription potassium-magnesium citrate prevented kidney stones; and its effect on leg cramps was a trend. Within 350 mg a day it is a reasonable supplement, not a sleep aid.

Frequently asked questions

What is magnesium citrate used for?

Two different things. As a liquid sold in pharmacies, it is a saline laxative taken at doses far above the supplement limit. As a capsule or powder, it is a magnesium supplement, and trials of citrate specifically have tested it for sleep, migraine prevention, kidney stones and leg cramps, with mixed results.

Does magnesium citrate help you sleep?

Not in the one trial that tested citrate for poor sleep. 100 adults aged 51 to 85 took 320 mg of magnesium a day as citrate or a placebo for seven weeks. Sleep quality scores improved from 10.4 to 6.6, but equally in both groups, and the authors attributed the improvement to another factor, possibly a placebo effect.

How much magnesium citrate should I take?

For a supplement, keep total magnesium from supplements at or under 350 mg a day, the NIH upper limit, unless a doctor says otherwise. Check the elemental magnesium on the label, not the weight of magnesium citrate, which is much larger.

Is magnesium citrate good for migraines?

The classic trial used trimagnesium dicitrate at 600 mg of magnesium a day for 12 weeks and cut attack frequency by 41.6% versus 15.8% on placebo. That dose is above the 350 mg supplemental limit and caused diarrhea in 18.6%, so it is one to take with a doctor.

Can magnesium citrate prevent kidney stones?

A prescription combination, potassium-magnesium citrate, did in a three-year trial: new stones formed in 12.9% of patients against 63.6% on placebo. That product delivered potassium and citrate as well as magnesium, so the result cannot be credited to magnesium alone.

When is the best time to take magnesium citrate?

None of the four trials tested timing. Taking it with food and splitting larger doses are common ways to reduce stomach upset, the side effect reported in the migraine and leg-cramp trials.

Sources

Every claim above is drawn from these primary sources. Last checked July 2026.

  1. 1.Nielsen FH, Johnson LK, Zeng H. Magnesium supplementation improves indicators of low magnesium status and inflammatory stress in adults older than 51 years with poor quality sleep. Magnes Res 2010;23:158-68. PMID 21199787. 100 adults aged 51-85 with PSQI over 5; 320 mg magnesium/day as magnesium citrate vs sodium citrate placebo for 7 weeks; 96 completed; 'Overall PSQI scores improved (10.4 to 6.6, p < 0.0001) … regardless of magnesium or placebo supplementation'; authors: 'another factor, possibly a placebo effect, improved sleep quality.' Checked 7 October 2026
  2. 2.Peikert A, Wilimzig C, Köhne-Volland R. Prophylaxis of migraine with oral magnesium: results from a prospective, multi-center, placebo-controlled and double-blind randomized study. Cephalalgia 1996;16:257-63. PMID 8792038. 81 patients; 600 mg (24 mmol) magnesium as trimagnesium dicitrate daily for 12 weeks; attack frequency -41.6% vs -15.8% placebo (p < 0.05); diarrhea 18.6%, gastric irritation 4.7%. Checked 7 October 2026
  3. 3.Ettinger B, Pak CY, Citron JT, et al. Potassium-magnesium citrate is an effective prophylaxis against recurrent calcium oxalate nephrolithiasis. J Urol 1997;158:2069-73. PMID 9366314. 64 patients; potassium-magnesium citrate (42 mEq potassium, 21 mEq magnesium, 63 mEq citrate) daily up to 3 years; new calculi 12.9% vs 63.6% placebo; RR 0.16 (0.05-0.46). Checked 7 October 2026
  4. 4.Roffe C, Sills S, Crome P, Jones P. Randomised, cross-over, placebo controlled trial of magnesium citrate in the treatment of chronic persistent leg cramps. Med Sci Monit 2002;8:CR326-30. PMID 12011773. Magnesium citrate equivalent to 300 mg magnesium vs placebo, 6 weeks each; trend towards fewer cramps (p = 0.07); 78% vs 54% felt it helped (p = 0.03); diarrhoea reported. Checked 7 October 2026
  5. 5.Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complement Med Ther 2021;21:125. PMID 33865376. 3 RCTs, 151 older adults; sleep onset latency 17.36 min shorter; total sleep time +16.06 min, not significant; low to very low quality evidence. Checked 7 October 2026
  6. 6.NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. Tolerable Upper Intake Level for supplemental magnesium, adults: 350 mg/day. Checked 5 October 2026