Magnesium in Pregnancy: Foods, Supplements, Leg Cramps and Staying Safe

Magnesium tends to come up in pregnancy forums late at night, usually when a calf cramp has just woken someone up. It is a mineral your body uses every day, and it is found in many ordinary foods. Questions about it often blur three quite different things: magnesium in your food, magnesium in tablets and powders you buy yourself, and magnesium that doctors give in hospital.
This guide separates the three, using figures from international reference bodies and practical information from Singapore's HealthHub, SingHealth and KK Women's and Children's Hospital (KKH).
Key points
- The US National Academies recommend 350 to 360 mg of magnesium a day in pregnancy from all sources (400 mg up to age 18). Singapore's HealthHub table does not list a figure.
- Wholegrains, leafy greens, nuts and wholemeal bread are good everyday sources.
- The upper limit of 350 mg a day applies to magnesium from supplements and medicines, not food.
- Evidence on magnesium for pregnancy leg cramps is inconsistent and of low quality.
- Magnesium sulphate given in hospital is a medicine for specific situations, not the same as a supplement.
What magnesium does
The NHS describes magnesium as a mineral that helps turn the food you eat into energy and keeps the parathyroid glands, which help regulate bone health, working normally. It is also the mineral people most often link with muscle cramps, a question we come back to below. Like most minerals, it works as part of an overall diet rather than as a fix for any one symptom.
How much magnesium you need
HealthHub's recommended dietary allowances for Singapore do not include magnesium, so the figures below come from the US National Academies:
| Age | Recommended intake in pregnancy | Upper level from supplements and medicines |
|---|---|---|
| Up to 18 | 400 mg a day | 350 mg a day |
| 19 to 30 | 350 mg a day | 350 mg a day |
| 31 to 50 | 360 mg a day | 350 mg a day |
Two things are easy to misread here. First, the recommended intake is a total from food and drinks, not a supplement dose. Second, the upper level applies only to magnesium from tablets, powders and medicines; the National Academies note that magnesium from food and water is not counted towards it. The NHS adds that taking more than 400 mg of magnesium for a short time can cause diarrhoea, and that the effects of long-term high doses are not well established.
Magnesium-rich foods for Singapore meals
HealthHub describes wholegrains such as brown rice and oats as filled with B vitamins, vitamin E and minerals including iron, zinc and magnesium. The NHS lists spinach, nuts and wholemeal bread as good sources. Simple swaps add up:
| Instead of | Try |
|---|---|
| White rice at the economic rice stall | The brown rice option, with a side of spinach or other greens |
| White bread for kaya toast | Wholemeal bread |
| Sweet biscuits at tea time | A small handful of unsalted almonds or cashews |
| Sugary cereal | Oat porridge, plain or with fruit |
HealthHub's My Healthy Plate suggests filling a quarter of your plate with wholegrains at each meal. That habit alone moves your magnesium intake in the right direction, and the extra fibre helps with the constipation many mums notice in pregnancy. For more on that, read our guide to high-fibre foods in pregnancy.
A magnesium-friendly day, hawker style
- Breakfast: oat porridge with a sliced banana, or wholemeal kaya toast with a fully cooked egg.
- Lunch: brown rice from the economic rice stall with spinach, tau kwa and a piece of fish.
- Tea time: a small handful of unsalted almonds and a glass of milk.
- Dinner: home-cooked fish with kai lan and brown rice, or chapati made with wholemeal flour and a dhal curry.
None of this needs a calculator. Choosing wholegrains, greens and nuts most days is the main thing.
Magnesium you may already be taking
Before buying a magnesium product, check what you already have at home:
- Antacids. HealthHub's medication leaflet, from the Pharmaceutical Society of Singapore, notes that antacids may contain aluminium, calcium, magnesium or sodium bicarbonate, and that magnesium-containing antacids can cause diarrhoea. Antacids should also be taken two hours apart from some medicines, including those for an underactive thyroid.
- Prenatal multivitamins. Some include magnesium, usually in modest amounts. Check the label.
- Calcium and combination tablets. Bone-health formulas sometimes add magnesium. HealthHub's antenatal guide advises keeping calcium and iron supplements at least two hours apart, so ask your pharmacist how to space any combination product.
Adding these together is the easiest way to stay under the 350 mg ceiling for supplements and medicines.
Leg cramps: what the evidence says
Calf cramps, often at night, are a common complaint in the second half of pregnancy, and magnesium is the remedy friends tend to suggest. A Cochrane review of the trials found that magnesium may reduce how often women had cramps, but the results were inconsistent and some measures showed little or no difference. The quality of the evidence was low or very low, mainly because the trials were small and had design limitations. Calcium did not consistently help either.
So magnesium is not a proven cramp treatment in pregnancy. If cramps are frequent, talk to your doctor before starting a supplement. A simple note on your phone of when they happen, how long they last and what you had eaten or done that day makes the conversation more useful. See your doctor soon if a leg stays painful or swollen between cramps, rather than easing within minutes.
Hospital magnesium is a different thing
You may hear about magnesium from your obstetric team in a very different context. Magnesium sulphate is a hospital medicine, given by injection under close monitoring:
- For severe pre-eclampsia, Singapore General Hospital's obstetric team describes magnesium sulphate as the anti-seizure medicine prescribed when eclampsia occurs.
- Under guidelines launched by KKH and the College of Obstetricians and Gynaecologists, Singapore, it is recommended as standard treatment for women at risk of delivering between 24 and 32 weeks of pregnancy, given to the mother before birth to protect the baby.
These are decisions made by doctors for specific emergencies. They are not a reason to take high-dose magnesium at home, and oral supplements cannot do the same job.
Know the warning signs of pre-eclampsia that SGH lists: a persistent headache, changes in your vision, and intense pain or tenderness in the upper abdomen. Swelling of the legs and feet is very common in pregnancy on its own, but mention it if it comes with any of these signs. If you notice any of these, contact your doctor or go to the A&E at KKH or your delivery hospital straight away. Call 995 if you have a seizure, severe headache with confusion, or difficulty breathing.
If you and your doctor decide on a supplement
- Read the amount of magnesium per dose, not just the name of the compound. Labels for magnesium citrate, glycinate and oxide should all state how much magnesium itself each serving provides.
- Count every source: supplement, prenatal multivitamin, antacids and combination tablets.
- Stop and check with your doctor if you develop diarrhoea.
- Buy from a pharmacy or established retailer and tell your doctor everything you take.
- Bring the pack to your next antenatal check so your doctor or pharmacist can see the exact product and dose.
If you choose a supplement, check the label and ask your doctor or pharmacist whether it fits your routine. Our guide to single versus multi-nutrient supplements may help you compare options.
Frequently asked questions
Is magnesium safe in pregnancy?
Magnesium from food is part of a normal pregnancy diet. Supplements are different, because they add a measured amount on top. Keep them within the 350 mg a day limit for supplements and medicines unless your doctor advises otherwise.
Does my antacid count towards my magnesium?
If it contains magnesium, yes. Check the ingredients, and tell your doctor if you are taking antacids most days.
Is magnesium citrate, glycinate or oxide better?
We did not find Singapore guidance that prefers one form in pregnancy. The amount of magnesium per dose, your total from all products and how your stomach copes matter more than the name. Magnesium can loosen stools, so diarrhoea is a sign to stop and check.
Can I take magnesium with my iron tablets?
HealthHub advises taking most iron supplements at least two hours apart from calcium, dairy, tea and coffee. Ask your pharmacist whether your magnesium product should be spaced from iron as well, and write the timings down so the routine is easy to follow.
Can magnesium help me sleep?
We did not find Singapore guidance supporting magnesium as a sleep aid in pregnancy. Persistent poor sleep is worth raising with your doctor.
I was given magnesium in hospital. Should I keep taking it at home?
No. Hospital magnesium sulphate is a treatment for a specific situation and stops when that situation is over. Follow your discharge instructions, and see our guide to calcium in pregnancy for the minerals you may still be taking.
References
- Summary Tables: Dietary Reference Intakes – National Academies of Sciences, Engineering, and Medicine (Institute of Medicine)
- Vitamins and minerals – Others – NHS (UK)
- Nutritious Foods For A Healthy Diet – HealthHub (Health Promotion Board)
- Antacids – HealthHub (Pharmaceutical Society of Singapore)
- Antenatal Supplements – HealthHub (Pharmaceutical Society of Singapore)
- Interventions for leg cramps during pregnancy – Cochrane
- Preeclampsia Risk During Pregnancy: Prevention, Symptoms and Complications – HealthXchange (Singapore General Hospital)
- KKH and the COGS launch guidelines to address Singapore's preterm birth rates – KK Women's and Children's Hospital
Still have questions?
This article is general information only and does not replace advice from your doctor, midwife or pharmacist. Always read the label and follow the directions for use.
Ask Perdays




