Taking magnesium supplements with calcium, iron, or zinc may lead to decreased absorption or increased excretion. Other factors include age and diet.