Magnesium Citrate: Uses, Evidence and Who Should Avoid It

Medically Reviewed by Dr. Pedro Yelamo Vera, MD
Licensed Physician No. 484814280 · Official Medical College of Bizkaia (Spain)Last reviewed: 31 October 2026
Magnesium citrate is a short-term laxative for constipation. What the evidence says on cramps, sleep and migraine, and who should avoid it.
You don't have to figure this out alone
Dr. Pedro Yelamo Vera is an independent, bilingual GP licensed in Spain. Book a 15-minute video consultation in English or Spanish for €50, with a private electronic prescription issued under Spanish law when clinically appropriate.
Magnesium citrate is a form of magnesium that pulls water into the bowel. Its best proven use is as a short-term laxative for occasional constipation, and as part of bowel preparation before a colonoscopy. As a supplement, the evidence for cramps, sleep and migraine is weak or mixed. People with kidney disease should not take it without their doctor's advice.
- Magnesium citrate is a saline laxative: it draws water into the stool and softens it.
- It is for occasional, short-term constipation, not for daily use over weeks.
- A Cochrane review found it is unlikely to help night-time leg cramps in older adults.
- Evidence for sleep, migraine and blood pressure is limited.
- Avoid it with kidney disease unless your doctor agrees, and keep it apart from some antibiotics.
Dr. Pedro Yelamo Vera is a GP licensed in Spain (Colegiado No. 484814280).
For a medical emergency, call 112 or go to the nearest local emergency department. Do not wait for a video consultation or an online reply.
What is magnesium citrate used for?
Magnesium citrate has two main uses, according to MedlinePlus:
- Occasional constipation, on a short-term basis.
- Emptying the bowel before a colonoscopy or some other tests.
It is also sold as a magnesium supplement. Many people take it for cramps, tiredness or sleep. For those uses the evidence is much weaker, as we explain below.
Does magnesium citrate work for constipation?
Yes, for short spells. It is a saline laxative. It keeps water in the stool, which makes it softer and easier to pass. MedlinePlus says it usually works within 30 minutes to 6 hours. So take it when you can stay near a toilet.
It is not the first step, though. The NHS advises lifestyle changes first, before any laxative. Diet, fluids and activity all play a part. If a laxative is still needed, the NHS lists four types. These are bulk-forming fibre, osmotic laxatives such as macrogol and lactulose, stool softeners and stimulants. In Spain you will find macrogol as Movicol and lactulose as Duphalac.
How long can you take it? Only for a short time, as the label says. If you still need a laxative after a few days, see a doctor. Constipation that keeps coming back has a cause worth finding.
Does magnesium help with muscle cramps?
Probably not, for most adults. A Cochrane review from 2020 pooled 11 trials. In older adults with night-time leg cramps, magnesium worked no better than a dummy pill. The authors say it is unlikely to give a useful benefit. For cramps in pregnancy, the trials disagreed and were of low quality. No trials tested cramps from exercise.
Low magnesium can cause cramps, but that is rare in healthy people. A blood test can check your level if your doctor thinks it is low.
Can magnesium citrate help you sleep?
The evidence is weak. A 2021 review found only three small trials, all in older adults. People fell asleep a little faster with magnesium. Total sleep time did not clearly change. The authors rated the evidence as low to very low quality. Good sleep habits help more. Poor sleep that lasts for weeks is worth a proper check. Our page on insomnia care explains what helps.
What about migraine, blood pressure and diabetes?
The US National Institutes of Health (NIH) sums up the research like this:
- Migraine: some small trials found fewer attacks. US headache experts say it is probably effective for prevention. The amounts used are high, so take it only with a doctor's advice.
- Blood pressure: it lowers it only slightly. It does not replace proper treatment.
- Diabetes: diets rich in magnesium are linked to less diabetes. There is not enough evidence to use pills for blood sugar control.
Food is the best source. Green leafy vegetables, beans and lentils, nuts, seeds and whole grains are all rich in magnesium.
Is magnesium citrate better than other forms?
The body seems to absorb it well. The NIH says citrate, lactate, chloride and aspartate are absorbed better than oxide. That finding comes from small studies, though. Any form can cause loose stools in large amounts.
Is magnesium citrate a medicine or a supplement in Spain?
Most magnesium citrate in Spanish pharmacies and shops is sold as a food supplement (complemento alimenticio). The Spanish food safety agency, AESAN, says supplements are foods. They add to a normal diet and do not cure or treat disease. A varied, balanced diet gives most people all the magnesium they need.
Bowel preparation before a colonoscopy is different. Kits such as CitraFleet contain magnesium oxide and citric acid with another laxative. They are medicines prescribed by your doctor. Follow the hospital's written plan, not supplement labels.
Constipation that keeps coming back, or a laxative that no longer works?
You can book a video visit with a GP licensed in Spain, in English or Spanish. He looks at the cause and tells you which treatment fits you.
Who should not take magnesium citrate?
Ask a doctor or pharmacist first if any of these apply to you:
- Kidney disease. The kidneys clear extra magnesium. When they work poorly, magnesium can build up to harmful levels, the NIH warns.
- A diet low in magnesium or salt, set by your doctor.
- Tummy pain, nausea or vomiting, or a sudden change in your bowel habit that has lasted more than two weeks.
- Pregnancy or breastfeeding. Check with a doctor or pharmacist first.
- Bowel disease, such as Crohn's disease or ulcerative colitis, or heart failure. The NHS lists both for laxatives in general.
- Children. Give laxatives to a child only if a doctor recommends them.
Which medicines does magnesium citrate affect?
- Some antibiotics, the tetracyclines and the quinolones (such as ciprofloxacin). Magnesium binds them and they work less well.
- Bisphosphonates for bone thinning, such as alendronate. Magnesium lowers how much is absorbed.
- Any other medicine. MedlinePlus advises leaving a gap between magnesium citrate and your other tablets. Ask your pharmacist how long.
Some medicines lower your magnesium instead. These include some water tablets (diuretics) and stomach acid pills (PPIs such as omeprazole) taken for over a year. Your doctor may check a blood level.
Side effects and when to see a doctor
Loose, watery or more frequent stools are common. Bloating and tummy cramps can happen too. Drink enough fluid to avoid dehydration. Stop it and see a doctor if:
- You see blood in your stool.
- You cannot open your bowels after taking it.
- Laxatives have not helped after three days.
- Your bowel habit has changed for no clear reason, or you are losing weight.
Go to urgencias straight away if you have severe tummy pain with a swollen belly and vomiting, or you cannot poo or pass wind. These can be signs of a blocked bowel.
Call 112 if someone collapses, has a seizure, struggles to breathe or cannot be woken. Also call 112 if the face, lips or throat swell after a dose.
Talking it through with a doctor by video
Dr. Yelamo is a GP licensed in Spain. He sees adults, children and pregnant patients by video, every day from 07:30 to 20:30 (Spain time). In the visit he will:
- Ask about your bowel habit, diet, fluids and activity.
- Go through your medicines and supplements, as some cause constipation.
- Check for warning signs that need tests or a hospital visit.
- Explain whether magnesium citrate, another laxative or a simple change fits you best.
He does not promise any test or prescription before the visit. Where clinically appropriate, following a genuine evaluation. Treatment and prescriptions are issued solely at the doctor's discretion based on evidence-based clinical guidelines.
A prescription is never guaranteed: it is issued only where clinically appropriate after a genuine evaluation, as a private electronic prescription under Spanish law. This service is for urgent, non-emergency care. In an emergency, call 112.
See how the Urgent Care video visit works. It lasts 15 minutes and costs €50.
This guide is general information. It does not replace the product label or the advice of your doctor or pharmacist.
Frequently asked questions
What is magnesium citrate used for?
Mainly as a short-term laxative for occasional constipation, and as part of bowel preparation before a colonoscopy. It is also sold as a magnesium supplement.
How long does magnesium citrate take to work for constipation?
MedlinePlus says it usually causes a bowel movement within 30 minutes to 6 hours.
Does magnesium citrate help leg cramps?
Probably not for most adults. A 2020 Cochrane review found it is unlikely to give a meaningful benefit for cramps in older adults. Evidence in pregnancy is mixed.
Can magnesium citrate help me sleep?
The evidence is weak. One review of three small trials in older adults found low-quality evidence of a modest effect on falling asleep.
Is it safe with kidney disease?
Not without your doctor. Weak kidneys clear magnesium poorly, so it can build up in the blood. Ask your doctor before taking any magnesium product.
Do I need a prescription for magnesium citrate in Spain?
Most products are sold as food supplements (complementos alimenticios) without a prescription. Bowel preparation kits for a colonoscopy are prescribed medicines.
Sources
- MedlinePlus: Magnesium citrate
- NIH Office of Dietary Supplements: Magnesium fact sheet
- Cochrane: Magnesium for skeletal muscle cramps (Garrison et al., 2020)
- Mah and Pitre: Oral magnesium for insomnia in older adults (2021)
- NHS: Laxatives
Related guides
Medical Citations & Sources
This content is written and reviewed by a licensed physician with reference to the following official health authorities.

