Can I take Magnesium and Vitamin D together?
Drug interaction guide
Originally published 25 Jan 2026
Meets Patient’s editorial guidelines
- DownloadDownload
- Share
- Language
- Discussion
- Audio Version
- Add to preferred sources on Google
Magnesium and Vitamin D work together in a positive way. Magnesium helps your body activate Vitamin D so it can do its job, and Vitamin D helps your body absorb magnesium more effectively. Taking them together is generally beneficial rather than harmful.
Why this happens
This is a 'synergistic' interaction. Magnesium is a necessary 'co-factor' for the enzymes that convert Vitamin D into its active form in the blood. Without enough magnesium, Vitamin D may remain stored and inactive. Conversely, Vitamin D can slightly increase how much magnesium your intestines absorb.
What you should do
It is usually fine and often recommended to take these together. However, if you have kidney disease or are taking high-dose supplements, you should speak to your doctor or pharmacist first to ensure your dosages are appropriate for your needs.
Important precautions
Hypercalcaemia (high blood calcium)
Do not take vitamin D if you have high levels of calcium in your blood or urine, as it can lead to serious kidney damage and heart rhythm problems.
Kidney disease
If you have severe kidney problems, your body may not be able to remove excess magnesium, leading to dangerously high levels in the blood. Check with your doctor before use.
Food and drink warnings
Alcohol
It is best to avoid or strictly limit alcohol when taking magnesium. Alcohol acts as a diuretic, which can increase the amount of magnesium your body loses through urine, potentially making the supplement less effective. Additionally, chronic alcohol use can lead to magnesium deficiency.
Dairy products (Milk, Cheese, Yoghurt)
Avoid taking magnesium supplements at the same time as large amounts of dairy products. Dairy is high in calcium, and high doses of calcium can compete with magnesium for absorption in the gut, meaning you may not get the full benefit of your supplement. It is best to space them at least 2 hours apart.
Caffeine (Coffee, Tea, Energy drinks)
It is best to limit caffeine intake around the time you take magnesium. Like alcohol, caffeine has a mild diuretic effect and can increase the excretion of magnesium through the kidneys.
High-fat meals
Vitamin D is a fat-soluble vitamin. It is best absorbed by your body when taken with a meal that contains some fat (such as eggs, avocado, nuts, or dairy).
Using other medicines
Taking multiple medicines? Our Medicines Interaction Checker helps you check whether your prescriptions, over-the-counter medicines, and supplements are safe to take together. Simply search for your medicines to see potential interactions and what to do about them.
Disclaimer
This information is for general educational purposes only and should not be relied upon as a substitute for professional medical advice. Always consult your GP, pharmacist, or another qualified healthcare professional before making decisions about your medications. Individual circumstances may vary, and only a healthcare professional who knows your medical history can provide personalised guidance.
Patient picks for Drug interactions

Drug interactions checker
Can I take Mounjaro and Insulin together?
Taking Mounjaro (tirzepatide) and insulin together significantly increases your risk of having a 'hypo' (hypoglycaemia), which is when your blood sugar levels drop too low. Symptoms of a hypo can include feeling shaky, sweaty, dizzy, hungry, or confused. In severe cases, it can be dangerous.

Drug interactions checker
Can I take Allopurinol and Nortriptyline together?
There is no known direct interaction between allopurinol and nortriptyline. However, both medications can occasionally cause side effects that affect the liver or blood counts. Taking them together does not typically increase these risks, but it is important to be aware of how you feel.
Article history
The information on this page is written and peer reviewed by qualified clinicians.
Article also available in English, German, Spanish, French, Italian, Portuguese, Hindi, Hebrew, Arabic, and Swedish.
25 Jan 2026 | Originally published
Join the conversation
Share your thoughts or experiences with others in our patient communities.

Ask, share, connect.
Browse discussions, ask questions, and share experiences across hundreds of health topics.

Feeling unwell?
Assess your symptoms online for free
Sign up to the Patient newsletter
Your weekly dose of clear, trustworthy health advice - written to help you feel informed, confident and in control.
By subscribing you accept our Privacy Policy. You can unsubscribe at any time. We never sell your data.
More in drug interactions checker
- Can I take Adcal-D3 and Collagen together?
- Can I take Amlodipine, Valsartan and Nebivolol together?
- Can I take Ashwagandha and Vitamin B12 together?
- Can I take Aspirin and Furosemide together?
- Can I take Black cohosh and Vitamin B2 together?
- Can I take Clarithromycin and Ibuprofen together?
- Can I take Colecalciferol and Prednisolone together?
- Can I take Danazol and Tramadol together?
- Can I take Devil's claw and Ginger together?
- Can I take Diazepam and Tirzepatide together?
- Can I take Doxadura and Ginseng together?
- Can I take Doxadura and Losartan together?
- Can I take Glucosamine and Vitamin D together?
- Can I take Lansoprazole and Rivaroxaban together?
- Can I take Losartan and Vitamin D together?
- Can I take Mirtazapine and Sertraline together?
- Can I take Pancreatin and Morphine together?
- Can I take Sertraline and Fluoxetine together?
- Can I take St John's wort and Contraceptive pill together?
- Can I take Warfarin and Aspirin together?