Can I take Magnesium and Vitamin B12 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
There is no known harmful interaction between magnesium and vitamin B12. In fact, these two nutrients often work together in the body to support energy production and the nervous system.
Why this happens
Magnesium and vitamin B12 use different pathways for absorption in the digestive tract and do not interfere with how the body processes or eliminates each other.
What you should do
It is safe to take magnesium and vitamin B12 together. You can take them at the same time of day, with or without food, unless your doctor or the product packaging suggests otherwise.
Important precautions
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.
It is best to avoid or strictly limit alcohol while taking Vitamin B12. Heavy alcohol consumption can interfere with the body's ability to absorb Vitamin B12 from the gut and can reduce the amount of the vitamin stored in the liver.
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.
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 Paracetamol together?
Mounjaro may slow down how quickly your body absorbs paracetamol. This means it might take longer for the paracetamol to start working to relieve pain or reduce a fever. However, the total amount of medicine that gets into your system should remain the same.

Drug interactions checker
Can I take Lisinopril and Potassium together?
Taking lisinopril and potassium supplements together can cause the levels of potassium in your blood to become dangerously high (a condition called hyperkalaemia). While your body needs potassium for your heart and muscles to work, too much of it can lead to serious heart rhythm problems or even cause the heart to stop. Symptoms of high potassium can include muscle weakness, tingling sensations, or palpitations, but often there are no symptoms until the level is very high.
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

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 Alcohol and Paracetamol together?
- Can I take Allopurinol and Ramipril together?
- Can I take Alogliptin and Amlodipine together?
- Can I take Amitriptyline and Aspirin together?
- Can I take Amitriptyline and Modafinil together?
- Can I take Amlodipine and Nustendi together?
- Can I take Atorvastatin and Eplerenone together?
- Can I take Atorvastatin and Spironolactone together?
- Can I take Black garlic and Rosehip together?
- Can I take Black garlic and Vitamin B complex together?
- Can I take Colesevelam and Naproxen together?
- Can I take Danazol and Lansoprazole together?
- Can I take Fibre supplements and Losartan together?
- Can I take Oxycodone and Pregabalin together?
- Can I take Quetiapine and Viagra together?
- Can I take Ramipril and Ibuprofen together?
- Can I take Rivaroxaban and Aspirin together?
- Can I take Simvastatin and Venlafaxine together?
- Can I take Venlafaxine and Vitamin B12 together?
- Can I take Vitamin C and Turmeric with black pepper together?