Quick answer

Yes, you can take magnesium and coffee together. Caffeine is mildly diuretic, but even with a high amount of caffeine only about 4 milligrams more magnesium were lost over 24 hours. A gap of one to two hours or an evening intake is more comfortable; regular daily use matters more.

Not sure which product fits? Get your personal recommendation in 30 seconds — lab-tested & rated, with savings. Start product finder →

Yes, you can take magnesium and coffee together. Coffee does not cancel the effect of magnesium, and it does not "flush it out" either: in a trial with healthy adults, a high amount of caffeine spread over the morning led to an extra loss of about 4 milligrams of magnesium in the urine over 24 hours. A magnesium supplement delivers 300 to 400 milligrams. If you want to keep it comfortable, you still leave one to two hours between the cup and the supplement or take the magnesium in the evening; it is not mandatory. More important than the timing is that you stick with it every day.

Magnesium Intake and Coffee Together: What Speaks For It, What Against?

The most popular question first: can you take magnesium with coffee? Yes. There is no compelling reason to separate the two, and many people take their magnesium in the morning with breakfast, exactly when the first cup is due. The only thing against it is that caffeine is mildly diuretic and the body excretes small amounts of minerals through it. How large this effect is, the next section shows.

Does Coffee Inhibit Magnesium Absorption? What Caffeine Does in the Body

Caffeine prompts the kidneys to form a little more urine. Small amounts of calcium and magnesium are lost with it. In a metabolic ward, 17 healthy adults received 3 milligrams of caffeine per kilogram of body weight twice in the morning; magnesium excretion rose for about six hours, fell again at night, and over 24 hours an extra loss of 0.16 millimoles remained, which is about 4 milligrams of magnesium. For a person weighing 60 kilograms that is 360 milligrams of caffeine in the morning, several cups when counted in coffee.

For fluid balance, another trial in people who drink coffee daily shows: a caffeine amount of 3 milligrams per kilogram did not upset the water balance, only double that amount increased urine production. If you drink two to three cups a day, you stay well below the range in which anything happens at all. A single coffee does not upset the finely tuned system that keeps the mineral balance in equilibrium.

If you drink a great deal of coffee and take in little magnesium through food, your need is somewhat higher in the long run, and then a look at your plate pays off. More on that further down.

Magnesium Coffee Gap: How Many Hours Make Sense?

A gap of one to two hours is considered practical and is our everyday rule, not a must. If you drink your coffee in the morning and take magnesium later in the morning, at lunch or in the evening, you keep it automatically. The advantage: you give up nothing and merely separate two points in time. The drawback is a little organizational extra effort, because you have to think of two moments.

Magnesium After Coffee or in the Evening? Three Ways for Your Day

There is no wrong choice, only a matter of preference. An example day: coffee at half past seven, magnesium with lunch or around eight in the evening, which creates a gap of several hours on its own. These three ways work:

  • With a gap: Coffee in the morning, magnesium later in the day. The variant for anyone who wants to be on the safe side and leave nothing to chance.
  • In the evening: Many take magnesium in the evening because coffee is usually no longer an issue then and the intake fits well into the routine before bed. Magnesium contributes to the normal function of the nervous system and to normal muscle function.
  • Together, with plenty of water: This is the simplest variant and so the one with the best chance that you keep up the intake. Drink enough water over the day then; with very high coffee consumption, a gap is the somewhat better choice.

For most healthy people with moderate coffee consumption the effect is so small that regularity outweighs exact timing. A supplement that is forgotten in the cupboard is of no use to anyone; a simple, consistently kept rhythm makes the difference over weeks. Magnesium after coffee is therefore perfectly fine, and magnesium before coffee too.

Magnesium and Caffeine: Do I Have to Drink Less Coffee?

For most people that is not necessary. A balanced diet with magnesium-rich foods and enough to drink balance out the mild effect of caffeine. With very high consumption or health questions, medical advice makes sense, just as with heart rhythm problems or in pregnancy, where other caffeine limits apply anyway.

Magnesium Through Food: What Goes on the Table Next to the Coffee

Good sources of magnesium are whole grain products, nuts and seeds, legumes, leafy greens, oats and dark chocolate with a high cocoa content; pumpkin seeds, almonds, cashews, beans and bananas also deliver notable amounts. A breakfast with oats and nuts or a salad with legumes already covers a decent part of the daily need. The reference value for adults is roughly 300 to 400 milligrams a day, depending on age and sex.

Magnesium also contributes to normal energy-yielding metabolism and to the reduction of tiredness and fatigue. If you do not reach your amount through food every day, for example with a one-sided diet, sport with heavy sweating or in phases of increased need, you close the gap with a supplement.

Magnesium Compounds and Tolerability: Does the Form Suit the Morning Coffee?

Magnesium comes in supplements as citrate, oxide, bisglycinate or malate. These forms differ in solubility and magnesium content per gram; for the coffee question the compound plays no significant role. More important is that the form is well tolerated and fits your routine, because some people react to higher single doses with looser stools. If you divide the amount over the day, that softens the effect and also fits with keeping a gap from the morning coffee.

Our Magnesium Complex combines four bioactive magnesium sources, including tri-magnesium dicitrate and magnesium bisglycinate. If you want a single form, take the magnesium bisglycinate pure: 360 mg of elemental magnesium in three capsules with meals, so that the amount spreads almost by itself.

Matching Products from Scheunengut

Magnesium Complex: Four bioactive magnesium sources in one product, including tri-magnesium dicitrate and magnesium bisglycinate. Together they give 400 mg of elemental magnesium in two capsules, high-dose and to be taken at any time of day. 180 capsules last 90 days. Magnesium contributes to the normal function of the nervous system. Magnesium contributes to normal muscle function. Magnesium contributes to the reduction of tiredness and fatigue. Taken in the evening, the coffee question is off the table.

Magnesium Bisglycinate: 360 mg of elemental magnesium in three capsules, chelated, vegan and stomach-friendly, with meals. 240 capsules last 80 days. Magnesium contributes to normal psychological function. Magnesium contributes to normal energy-yielding metabolism.

Melatonin Sleep Complex: 1 mg of melatonin per tablet, with a score line for dividing, 365 tablets in the pack, 30 to 60 minutes before going to bed. Melatonin contributes to reducing the time it takes to fall asleep; the positive effect occurs when 1 milligram of melatonin is taken shortly before going to bed. It complements the evening magnesium for everyone who wants to fall asleep faster.

That is what Scheunengut has done since 2012, with no investors behind it and a focus on pure raw material quality: clear formulas, every batch tested in an independent lab.

Frequently Asked Questions (FAQ)

Can you take magnesium together with coffee?

Yes. There is no compelling reason to separate the two. Since caffeine is mildly diuretic, a gap in time or an evening intake is a convenient way to sidestep possible influences, though. It is important to drink enough overall.

How much gap should there be between coffee and magnesium?

A gap of about one to two hours is considered practical. If you drink your coffee in the morning and take magnesium later in the day or in the evening, you keep this gap automatically.

Does coffee inhibit magnesium absorption, or does it flush it out?

Caffeine is mildly diuretic, so small amounts of magnesium are excreted in the urine; over 24 hours it was about 4 milligrams more with a high amount of caffeine. With moderate coffee consumption and sufficient fluid intake, the effect is small for healthy people.

Is it better to take magnesium in the morning or evening?

Both are possible. Many take magnesium in the evening because it fits well into the routine and coffee is usually no longer an issue then. The exact hour matters less than regular, long-term intake. Our Magnesium Complex with two capsules fits into any evening routine.

Can you take magnesium after coffee?

Yes, that is unproblematic. If you wait an hour or longer, you avoid the question altogether; if you prefer to do it right away, drink enough water over the day.

Does magnesium go with coffee, and how many cups are compatible?

Two to three cups a day are far below the range in which caffeine noticeably raises urine production. Only a high amount of caffeine (in one trial about 6 mg per kilogram of body weight) raises it noticeably; with very high consumption or health questions, medical advice makes sense.

Do I have to cut back on coffee because of magnesium?

For most people that is not necessary. A balanced diet with magnesium-rich foods and enough to drink balance out the mild effect of caffeine.

Was this guide helpful?

Health notice: This guide is for general information purposes only and does not replace individual medical or pharmaceutical advice. Food supplements are not a substitute for a balanced, varied diet and a healthy lifestyle. If you have health concerns, are pregnant or breastfeeding, or are taking medication, please consult a doctor or pharmacist. How our guides are created →

Sources

  1. German Nutrition Society (DGE) — Reference Values for Magnesium Intake, 2021
  2. Minerals – Irreplaceable Helpers — Federal Centre for Nutrition (BZfE), 2025
  3. Scientific Opinion on Health Claims Related to Magnesium (Reduction of Tiredness and Fatigue, Psychological Function) — European Food Safety Authority (EFSA), 2010
  4. Effect of caffeine on circadian excretion of urinary calcium and magnesium — Journal of the American College of Nutrition, 1994
  5. Coffee with High but Not Low Caffeine Content Augments Fluid and Electrolyte Excretion at Rest — Frontiers in Nutrition, 2017
— Malte