Can I take Magnesium and Vitamin B2 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 negative interaction between magnesium and vitamin B2 (riboflavin). In fact, they are often taken together because they work well as a team in the body.
Why this happens
Magnesium and vitamin B2 do not interfere with each other's absorption or metabolism. Instead, they have a 'synergistic' effect, meaning they help each other work. For example, magnesium is required for the body to properly use certain vitamins, and both are involved in the same energy-production processes within your cells.
What you should do
It is safe to take these two supplements together. They are frequently combined in a single tablet, particularly for people trying to prevent migraines. As with any supplement, stick to the recommended daily dose on the packaging unless your doctor tells you 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 when taking Vitamin B2. Alcohol can interfere with the way your body absorbs this vitamin from the digestive tract, making the supplement less effective.
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 Warfarin and Aspirin together?
Taking warfarin and aspirin together significantly increases your risk of serious bleeding. This includes internal bleeding, such as in the stomach or brain, as well as bleeding that is hard to stop from minor cuts or injuries.

Drug interactions checker
Can I take Sertraline and Fluoxetine together?
Taking sertraline and fluoxetine together significantly increases the risk of a rare but serious condition called serotonin syndrome. This happens because both medicines work by increasing the level of a chemical called serotonin in your brain. If levels get too high, it can cause symptoms like shivering, diarrhoea, confusion, severe muscle tightness, fever, and even seizures. Additionally, fluoxetine can slow down how your body breaks down sertraline, leading to a build-up of the drug in your system and increasing the risk of side effects.
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 Alendronic acid and Lansoprazole together?
- Can I take Amitriptyline and Aspirin together?
- Can I take Amitriptyline and Pregabalin together?
- Can I take Ashwagandha and Vitamin D together?
- Can I take Aspirin and Apixaban together?
- Can I take Atorvastatin and Levothyroxine together?
- Can I take Bisoprolol and Ramipril together?
- Can I take Ciprofloxacin and Dairy together?
- Can I take Cordyceps and Turkey tail together?
- Can I take Devil's claw and Turmeric with black pepper together?
- Can I take Ginger and Rosehip together?
- Can I take Hydrochlorothiazide and Alogliptin together?
- Can I take Hydroxocobalamin and Mirtazapine together?
- Can I take Mirtazapine and Nortriptyline together?
- Can I take Omeprazole and Vitamin D together?
- Can I take Pancreatin and Solifenacin together?
- Can I take Pregabalin and Trazodone together?
- Can I take Solifenacin and Vitamin B12 together?
- Can I take St John's wort and Vitamin D together?
- Can I take Vitamin B2 and Vitamin C together?