Not meaningfully at the amounts found in food. Calcium and magnesium can compete a little when taken as high-dose supplements, but the effect is small, and normal diets and typical supplement doses don't usually cause a magnesium shortfall.
What the research shows
Both minerals are absorbed in the small intestine, and some of the same pathways can be shared, so in theory a lot of one could slightly crowd out the other. In practice:
- Studies in people have mostly found little or no effect of calcium on magnesium absorption at everyday intakes. Evidence on high supplemental doses is more mixed and comes from fairly small studies.
- Your body adjusts absorption to its needs. When your intake is lower, you absorb a larger share.
- Taking calcium and magnesium together in a single supplement is common, and it isn't generally considered a problem.
The evidence here is reasonably consistent but not extensive, so it's best read as "no strong sign of a problem" rather than "proven to never matter."
Calcium and magnesium in common foods
Many foods supply both at once, which is how people typically eat them. These figures are from USDA, per 100 g:
| Food | Calcium | Magnesium |
|---|---|---|
| Whole milk | 113 mg | 10 mg |
| Cheddar cheese | 711 mg | 27 mg |
| Almonds | 269 mg | 270 mg |
| Raw spinach | 99 mg | 79 mg |
Almonds and spinach deliver both minerals in close to equal amounts, while dairy is much richer in calcium than magnesium. Eating these foods together in a normal diet is not known to cause a problem.
One caveat on spinach: it contains oxalate, a natural compound that binds calcium and makes the calcium in spinach poorly absorbed. This is a separate issue from calcium competing with magnesium.
Practical takeaways
- Food first: you don't need to separate dairy, nuts, and greens at meals to protect magnesium absorption.
- Supplements: if you take both, large single doses are where competition is most plausible. Splitting doses, such as calcium with one meal and magnesium with another, is a common and harmless precaution, though it's not clearly necessary.
- Upper limits: very high magnesium from supplements (not food) can cause diarrhea, and excess calcium supplements have their own concerns. Stick to label doses.
- Who should check first: if you take medications (some antibiotics, thyroid medicine, and bisphosphonates for bone health can interact with minerals), are pregnant, or have kidney disease, ask a doctor, pharmacist, or registered dietitian before adding supplements.