How Is Magnesium Excreted? Kidneys, Sweat & Stool

Your body excretes magnesium primarily through the kidneys, with smaller amounts lost through stool and sweat. Of roughly 1,000 mmol of magnesium filtered by the kidneys each day, only about 3 mmol actually leaves in your urine. The rest is reclaimed through a tightly regulated reabsorption system that runs along different segments of the kidney’s filtering tubes, called nephrons. Understanding how this works helps explain why certain medications, dietary habits, and health conditions can throw magnesium balance off.

How the Kidneys Filter and Reclaim Magnesium

About 70% of the magnesium circulating in your blood is in a free, unbound form that passes through the kidney’s initial filter (the glomerulus). From there, it enters a long tubular system where nearly all of it gets pulled back into the bloodstream. Each segment of this tube handles a different share of the work.

The first segment, the proximal tubule, reclaims about 15 to 30% of filtered magnesium. This is a relatively modest contribution compared to what comes next. The thick ascending limb of the loop of Henle is the workhorse, reabsorbing 50 to 60% of filtered magnesium. Here, magnesium doesn’t pass through cells directly. Instead, it slips between cells through gaps called tight junctions. These junctions contain specialized proteins that form cation-selective channels, creating a pathway that lets positively charged particles like magnesium pass through. A positive electrical charge inside the tubule pushes magnesium outward through these gaps, much like two magnets of the same pole repelling each other. When the proteins forming these channels are defective, the kidney loses its ability to reclaim magnesium at this stage, leading to excessive magnesium wasting in the urine.

The final segment, the distal convoluted tubule, reabsorbs only 1 to 5% of filtered magnesium. That sounds small, but this is where your body makes its final adjustments. Unlike the loop of Henle, magnesium transport here is active and transcellular, meaning magnesium passes directly through the cell membrane via a specific ion channel on the cell surface. This channel acts as the last checkpoint before magnesium either stays in your body or gets flushed out. Because no significant magnesium reabsorption occurs beyond this point, whatever passes through ends up in the urine.

How Hormones Control Magnesium Excretion

Parathyroid hormone (PTH) plays a key role in keeping magnesium from being lost in urine. In the loop of Henle, PTH represses a protein that would otherwise block the tight junction channels responsible for magnesium reabsorption. In practical terms, when PTH levels are adequate, the pathway stays open and magnesium flows back into the bloodstream. When PTH signaling is disrupted, that blocking protein accumulates, the channels become less effective, and more magnesium spills into the urine.

The calcium-sensing receptor works in the opposite direction. When magnesium or calcium levels in the blood are high, this receptor ramps up the blocking protein, narrowing the tight junction pathway so that more magnesium passes through to the urine. This push-pull between PTH and the calcium-sensing receptor lets the kidney fine-tune magnesium excretion based on what the body needs at any given moment.

Normal Urinary Magnesium Levels

For a healthy adult eating a typical diet, daily urinary magnesium excretion falls in the range of 3 to 5 mmol over 24 hours. If your magnesium intake is below 250 mg per day, excretion drops to roughly 40 to 80 mg daily. At intakes above 250 mg per day, the kidneys let more go, and excretion rises to about 80 to 160 mg daily. This flexibility is one reason the kidneys are the primary regulator of magnesium balance: they adjust output based on input.

Medications That Increase Magnesium Loss

Both loop diuretics and thiazide diuretics cause the kidneys to waste magnesium, though through different mechanisms. Loop diuretics work in the thick ascending limb, where they reduce the electrical driving force that pushes magnesium through tight junctions. With less force, less magnesium gets reabsorbed, and more ends up in the urine.

Thiazides act further downstream in the distal convoluted tubule. Their effect on magnesium is less intuitive. By blocking sodium entry into distal tubule cells, thiazides reduce the activity of a pump that indirectly powers magnesium’s exit from the cell on the blood side. This bottleneck traps magnesium inside the cell and reduces net reabsorption. Despite these different mechanisms, studies in animal models show that both drug classes produce similar levels of magnesium wasting. For anyone taking either type of diuretic long-term, this is a practical reason to monitor magnesium status.

Dietary Habits That Raise Excretion

Alcohol is one of the most potent dietary drivers of magnesium loss. Studies consistently show that alcohol consumption markedly increases urinary magnesium excretion. Researchers believe that alcohol or one of its metabolic byproducts directly interferes with magnesium handling in the kidney tubules, though the precise mechanism remains an active area of study. This effect helps explain why heavy drinkers are at elevated risk for magnesium deficiency.

High sodium intake also competes with magnesium reabsorption. When large amounts of sodium flood the kidney tubules, the reabsorption machinery prioritizes sodium, and magnesium gets crowded out. Caffeine has a similar, though generally milder, effect by increasing the filtered load that the tubules must process.

Magnesium Lost Through Stool

Not all magnesium excretion happens through the kidneys. A significant amount leaves the body in feces. This comes from two sources: dietary magnesium that was never absorbed in the first place, and a smaller fraction of magnesium secreted from the body back into the intestine (called endogenous fecal excretion).

On average, healthy adults absorb about 44% of the magnesium they eat, meaning roughly half of dietary magnesium passes straight through. On top of that unabsorbed portion, the body secretes an estimated 30 to 50 mg of magnesium per day back into the gut, some of which also exits in stool. For people with digestive conditions that impair absorption, such as Crohn’s disease or chronic diarrhea, fecal magnesium losses can become large enough to cause deficiency even when dietary intake is adequate.

Magnesium Lost Through Sweat

Sweat is a minor but meaningful route of magnesium excretion, especially during prolonged heat exposure or intense exercise. Under hot conditions (around 100°F), research measuring whole-body sweat collection found magnesium losses averaging about 2.3 mg per hour. Over a long workout or a full day of physical labor in heat, that can add up to a non-trivial amount. For most people in temperate conditions with moderate activity, sweat losses are small enough to be covered by a normal diet. Athletes training in heat for several hours have a stronger case for paying attention to magnesium intake.