Magnesium stays in your system for about 1 to 2 days, depending on the type and how your body absorbs it. Forms like magnesium citrate and glycinate are absorbed better than forms like magnesium oxide ...