Updated: April 2, 2026
How Does Aluminum Hydroxide/Magnesium Hydroxide Work? Mechanism of Action Explained in Plain English
Author
Peter Daggett

- What Causes Heartburn in the First Place?
- How Do Antacids Work Differently from H2 Blockers and PPIs?
- The Chemistry of Acid Neutralization (Plain English Version)
- Why Combine Aluminum AND Magnesium Hydroxide?
- What Happens to the Antacid After It Works?
- Why Does the Relief Only Last 1-2 Hours?
- Ready to Find This Antacid Near You?
Overview
How does Mylanta work to relieve heartburn so fast? Learn the science behind aluminum hydroxide and magnesium hydroxide's acid-neutralizing mechanism in plain English.
Is Aluminum Hydroxide/Magnesium Hydroxide in stock near you?
Medfinder checks real pharmacy inventory — start a search and we'll find Aluminum Hydroxide/Magnesium Hydroxide near you.
Ever wondered why a tablespoon of Mylanta can stop heartburn in minutes when some heartburn pills take hours to work? The answer lies in how aluminum hydroxide and magnesium hydroxide work — they neutralize acid directly, right in your stomach, rather than blocking acid production from happening in the first place. Here's the science, explained without the chemistry degree.
What Causes Heartburn in the First Place?
Your stomach produces hydrochloric acid (HCl) to break down food and kill bacteria. This is normal and necessary. Heartburn happens when stomach acid escapes upward into the esophagus — either because the lower esophageal sphincter (LES) relaxes inappropriately, or because there's simply too much acid in the stomach.
Normal gastric acid pH is between 1.5 and 3.5 — highly acidic. The esophagus lining isn't built to handle this acidity, which is why it causes that burning, uncomfortable sensation.
Check live stock now.
How Do Antacids Work Differently from H2 Blockers and PPIs?
It helps to understand that there are three main ways medications manage stomach acid:
- Antacids (like aluminum/magnesium hydroxide): Neutralize acid that's already in the stomach. Work within minutes. Don't prevent future acid production.
- H2 blockers (famotidine/Pepcid): Block histamine receptors that trigger acid production. Take 30-60 minutes to work, last 8-12 hours.
- Proton pump inhibitors (omeprazole/Prilosec): Block the enzyme (proton pump) responsible for acid secretion. Take 1-4 days for full effect, last 24 hours.
The Chemistry of Acid Neutralization (Plain English Version)
Aluminum hydroxide and magnesium hydroxide are both alkaline (basic) compounds. Bases neutralize acids — this is basic chemistry. When you swallow Mylanta or a generic aluminum/magnesium antacid, here's what happens in your stomach:
- The antacid mixes with the hydrochloric acid (HCl) in your stomach.
- The aluminum and magnesium compounds react with HCl to form aluminum chloride + magnesium chloride + water.
- The reaction raises the pH of the stomach contents — making it less acidic.
- With less acid present, the burning sensation diminishes — often within 5-15 minutes.
Why Combine Aluminum AND Magnesium Hydroxide?
You might wonder: why not just use one or the other? The combination exists because the two ingredients complement each other in two important ways:
- Speed vs. duration: Magnesium hydroxide raises stomach pH faster; aluminum hydroxide provides longer-lasting neutralization. Together they give rapid onset AND sustained effect.
- Balancing GI effects: Aluminum hydroxide alone causes constipation; magnesium hydroxide alone can cause diarrhea. Together they balance each other, resulting in a more neutral effect on bowel habits for most people.
What Happens to the Antacid After It Works?
After neutralizing stomach acid, aluminum and magnesium compounds mostly pass through the digestive system. A small percentage of magnesium (up to 30%) is absorbed into the bloodstream and eliminated by the kidneys — this is why people with kidney disease need to be cautious with magnesium-containing antacids. Aluminum absorption is minimal but can accumulate with prolonged use, especially in kidney disease.
Why Does the Relief Only Last 1-2 Hours?
Because antacids neutralize existing acid — they don't stop your stomach from making more. Once the antacid is used up and exits the stomach, your stomach continues producing acid normally. This is why antacids are taken as needed rather than once daily, and why they're a better fit for occasional symptoms than for chronic conditions like GERD where ongoing acid suppression is needed.
Found
Rate
on average
Ready to Find This Antacid Near You?
Now that you know how it works, finding it is the next step. medfinder calls pharmacies near you to check which ones have it in stock and texts you the results. For a full guide on uses and dosage, see our article What Is Aluminum Hydroxide/Magnesium Hydroxide?.
Frequently Asked Questions
Aluminum hydroxide/magnesium hydroxide typically begins working within 5-15 minutes. The magnesium hydroxide component raises stomach pH quickly, while the aluminum hydroxide component provides more sustained neutralization. This rapid onset is one of the main advantages of antacids over H2 blockers and PPIs.
Aluminum hydroxide/magnesium hydroxide neutralizes acid that is already in the stomach — it doesn't prevent acid production. Pepcid (famotidine) blocks histamine receptors that trigger acid production and lasts 8-12 hours. Prilosec (omeprazole) blocks the enzyme that makes acid and provides 24-hour suppression. Antacids work fastest; PPIs are most powerful for chronic use.
Mylanta (aluminum hydroxide/magnesium hydroxide) works by directly neutralizing acid already in your stomach — a simple chemical reaction that happens within minutes. Prilosec (omeprazole) works by blocking the enzyme that produces acid, which requires the drug to be absorbed into the bloodstream, enter cells lining the stomach, and inhibit the enzyme. This process takes 1-4 days to reach full effect.
Antacids like aluminum hydroxide/magnesium hydroxide neutralize existing acid but do not stop your stomach from producing more. Once the antacid is neutralized and passes through the stomach, acid production resumes normally. This is why relief typically lasts only 30 minutes to 2 hours. For longer-lasting relief, H2 blockers or PPIs may be more appropriate.
Medfinder Editorial Standards
Medfinder's mission is to ensure every patient gets access to the medications they need. We are committed to providing trustworthy, evidence-based information to help you make informed health decisions.
Read our editorial standardsPatients searching for Aluminum Hydroxide/Magnesium Hydroxide also looked for:
More about Aluminum Hydroxide/Magnesium Hydroxide
39,049 have already found their meds with Medfinder.
Start your search today.
Your information is private and never shared.





