Magnesium hydroxide works as an antacid by directly neutralizing stomach acid (HCl) to form magnesium chloride and water, raising gastric pH within minutes. As a laxative, unreacted magnesium ions draw water into the intestine through osmotic pressure, softening stool and triggering peristalsis. One compound, two dose-dependent effects.
The same white suspension in the pharmacy aisle treats heartburn at low doses and constipation at high doses. That duality is not a side effect; it is the predictable result of how magnesium ions behave in different segments of the gut. Understanding the chemistry explains why timing, dose, and renal function all change the risk-benefit calculation.
Acid Neutralization Chemistry
Magnesium hydroxide is a weak base with low aqueous solubility. That insolubility is a feature, not a bug. When the suspension reaches the stomach, the compound dissolves gradually and reacts with hydrochloric acid in a straightforward neutralization:
Mg(OH)₂ + 2HCl → MgCl₂ + 2H₂O
Each molecule of magnesium hydroxide consumes two molecules of acid. Because the dissolution is slow relative to the acid present, the pH rise is buffered rather than explosive. A rapid spike to pH 7 or above would trigger premature gastric emptying and rebound acid secretion. The gradual reaction keeps gastric pH in a moderate range, which is why antacid labeling emphasizes symptom relief rather than sustained acid suppression.
The reaction also produces magnesium chloride, a soluble salt. That salt dissociates into magnesium ions (Mg²⁺) and chloride ions. The chloride is irrelevant physiologically at these quantities. The magnesium ions are the entire story for the laxative effect.
The Bioavailability and Osmotic Switch
At antacid doses, most of the magnesium chloride passes through the small intestine without being absorbed. The intestinal lining is not fully permeable to the divalent Mg²⁺ ion, and absorption is further limited because the ion carries a hydration shell that slows transport. The unabsorbed ions remain in the intestinal lumen and exert osmotic pressure.
Osmotic pressure is proportional to the number of dissolved particles. Each magnesium ion drags water with it along the concentration gradient. The result is increased luminal water content, softer stool, and distension of the intestinal wall. That distension stimulates stretch receptors and promotes peristalsis.
The crossover from antacid to laxative is dose-dependent, not formulation-dependent. At low doses (typical antacid use), the amount of free magnesium reaching the colon is small. At higher doses labeled for constipation, the luminal magnesium load crosses the osmotic threshold that produces a bowel movement. The same bottle serves both purposes depending on how much is taken.
A counterintuitive detail: magnesium hydroxide does not stimulate the bowel directly. It has no direct action on smooth muscle or enteric nerves. Every laxative effect traces back to water being pulled into the gut by osmosis. This is why adequate fluid intake matters during use, and why dehydration can paradoxically worsen constipation.
Quantified Context: Doses, pH Ranges, and Thresholds
Antacid labeling in the US frames magnesium hydroxide in terms of acid-neutralizing capacity (ANC), not milligrams alone. A typical antacid dose provides several hundred millimoles of acid-neutralizing capacity, though specific ANC values vary by product concentration and are printed on the label. The relevant clinical threshold is gastric pH: at baseline, fasting gastric pH sits around 1 to 2. Antacids raise it temporarily into the 3 to 5 range, which is enough to reduce pepsin activity and relieve heartburn without abolishing acid production.
For the laxative effect, the relevant threshold is the total magnesium load delivered to the colon. Labeled laxative doses deliver substantially more elemental magnesium than antacid doses; the exact milligram difference is formulation-specific and printed on packaging. The saline laxative category relies on poorly absorbed ions (magnesium, sulfate, phosphate) reaching the colon in sufficient concentration to exceed the osmotic gradient the colon can resorb.
Renal handling is the safety gate. The kidneys filter and excrete absorbed magnesium, and healthy kidneys clear a large fraction of a filtered magnesium load daily. When glomerular filtration falls below roughly 30 mL/min, magnesium clearance drops and serum levels can rise. This is why all magnesium hydroxide labels carry renal warnings and why the compound is not appropriate for routine use in advanced kidney disease without clinician guidance [FDA].
Timeline: What Happens After You Swallow It
| Time after dose | Event | Observable effect |
|---|---|---|
| 0–5 minutes | Suspension enters stomach | None |
| 5–15 minutes | Neutralization begins | Heartburn relief starting |
| 15–60 minutes | Peak acid neutralization | Maximal symptom relief |
| 1–3 hours | Mg²⁺ reaches small intestine | Osmotic water retention begins |
| 3–6 hours | Mg²⁺ reaches colon | Stool softening, urgency |
| 6–12 hours | Laxative effect concludes | Bowel movement typical |
| Up to 24 hours | Transit completes | Effect resolves |
The antacid window is measured in tens of minutes. The laxative window is measured in hours. This is why a person taking a low antacid dose feels relief without a bowel movement, and why taking the same product at a laxative dose produces an effect that arrives long after the heartburn is gone.
Plain language: the stomach gets the relief, the colon gets the water.
Comparison: How Magnesium Hydroxide Stacks Up
| Property | Magnesium hydroxide | Calcium carbonate | Aluminum hydroxide | Sodium bicarbonate | Polyethylene glycol |
|---|---|---|---|---|---|
| Antacid speed | Fast | Fast | Moderate | Very fast | None |
| Laxative mechanism | Osmotic | Constipating | Constipating | None | Osmotic |
| Constipation risk | None | High | High | Low | None |
| Diarrhea risk at high dose | Moderate–high | Low | Low | Low | Dose-dependent |
| Renal caution | Yes (magnesium) | Yes (calcium) | Yes (aluminum) | Yes (sodium) | Minimal |
| Rebound acid | Mild | Notable | Mild | Notable | N/A |
| Typical role | Antacid + laxative | Antacid | Antacid | Fast relief | Bowel prep |
The table makes the strategic point clear: only magnesium hydroxide and polyethylene glycol are laxatives in this group, and only magnesium hydroxide is also a useful antacid. The constipating salts (calcium, aluminum) are the ones often paired with magnesium in combination products to balance stool consistency.
Edge Cases: Who Gets Hurt and Why
Renal impairment is the dominant risk. Magnesium is excreted almost entirely by the kidney, so reduced filtration means retained magnesium. Early signs of hypermagnesemia include nausea, flushing, and lethargy; severe cases progress to hypotension, bradycardia, and respiratory depression. The FDA has warned specifically about magnesium-containing laxatives in patients with kidney disease.
Age is a second edge. Older adults have lower glomerular filtration on average, even when serum creatinine looks normal. A laxative dose that is harmless at age 30 may accumulate at age 75. Dehydration compounds this by reducing renal perfusion.
Pregnancy and breastfeeding change the calculus but not the mechanism. Occasional use at labeled doses is generally considered acceptable; prolonged high-dose use is a conversation for a clinician, not a package insert.
Drug interactions are modest but real. Magnesium can chelate some antibiotics (notably tetracyclines and fluoroquinolones) and reduce their absorption if taken simultaneously. Separating doses by several hours is the standard workaround. Magnesium hydroxide also alters gastric pH, which affects absorption of acid-dependent drugs such as ketoconazole and some protease inhibitors.
Severe abdominal pain of unknown cause: do not use any laxative. Vomiting, nausea, or signs of appendicitis: avoid laxatives until evaluated. Kidney disease or reduced urine output: avoid magnesium products without clinician input. Rectal bleeding or no bowel movement after use: seek care. Prolonged use beyond two weeks for constipation: evaluate the underlying cause. Use in children: follow age-specific labeling only.
Misconceptions Worth Correcting
The most common misconception is that magnesium hydroxide "stimulates" the bowel. It does not. It osmotically shifts water, and the bowel responds to the resulting volume and stretch. This distinction matters because it predicts the side-effect profile: cramping and urgency come from rapid fluid shifts, not from a drug stimulating muscle.
A second misconception is that antacids "cure" reflux by neutralizing all the acid. They do not. They raise gastric pH transiently, and the stomach re-secretes acid within an hour. Rebound hypersecretion can occur after large antacid doses, which is why frequent antacid use is a signal to reconsider the underlying problem rather than escalate the dose.
A third misconception is that combination products are safer. Combining magnesium hydroxide with aluminum hydroxide reduces diarrhea risk by offsetting the two salts' stool effects. That is a formulation trick for tolerability, not a guarantee of safety, and magnesium accumulation in kidney disease is unaffected by the pairing.
The professional caveat: efficacy studies of antacids and osmotic laxatives are old and small. Much of the clinical guidance rests on established physiology and decades of post-market experience rather than large modern trials. That does not make the mechanism wrong, but it does mean the evidence base is thinner than the marketing implies.
Practical Actions
If using magnesium hydroxide for heartburn, take the labeled antacid dose and expect relief within 15 to 30 minutes. Do not exceed the labeled maximum in 24 hours. If symptoms require daily antacid use for more than two weeks, the appropriate next step is evaluation for reflux disease, not a larger bottle.
If using it for constipation, take the labeled laxative dose with a full glass of water. Expect a bowel movement within 30 minutes to 6 hours; the wide range reflects individual transit time. Do not take a second dose before the first has had time to work.
Check the label for elemental magnesium content and compare it to your total daily intake from supplements. Combining an antacid or laxative with a magnesium supplement can push total intake high enough to cause diarrhea even in healthy people.
For anyone with known kidney disease, check with a clinician before any magnesium-based product. A simple serum creatinine and eGFR are enough to establish whether magnesium clearance is likely to be adequate.
If you take tetracycline or fluoroquinolone antibiotics, separate the magnesium dose by at least two hours, ideally four.
Limitations of What This Explains
This article describes the established chemistry and physiology of magnesium hydroxide. It does not provide dosing instructions, does not account for individual medical conditions, and cannot substitute for the product label or a clinician's assessment. Specific ANC values, elemental magnesium content, and labeled dose ceilings differ by product and should be read from the packaging. Long-term safety data for chronic use are limited, and the renal thresholds cited reflect general clinical understanding rather than a single validated cutoff. For any question about whether magnesium hydroxide is appropriate for a specific person, the answer depends on kidney function, medications, and symptoms that no general explainer can assess.