QuestionAcids and bases

How Do Antacids Work? The Chemistry of Neutralizing Acid

A bottle of antacid tablets on a table
A bottle of antacid tablets on a table. Image: Midnightcomm (CC BY 2.5), via Wikimedia Commons

Antacids work by neutralizing excess stomach acid. Most contain a weak base, such as calcium carbonate or magnesium hydroxide, that reacts with hydrochloric acid to form a salt and water, and sometimes carbon dioxide gas. Because the acid is used up, the burning feeling from too much acid is reduced.

Contents

The full answer

An antacid is a product that contains a base. The base reacts with hydrochloric acid (HCl) in the stomach in a neutralization reaction, so some of the acid is used up. Stomach acid has a pH of about 1.5 to 3.5, which is strongly acidic. It helps break down food and kills many microbes, but too much of it can irritate the lining of the stomach and the tube above it.

Each common antacid ingredient reacts with hydrochloric acid in a slightly different way:

IngredientReaction with HClGas released
Calcium carbonate, CaCO3CaCO3 + 2HCl → CaCl2 + H2O + CO2Yes, CO2
Magnesium hydroxide, Mg(OH)2Mg(OH)2 + 2HCl → MgCl2 + 2H2ONo
Aluminum hydroxide, Al(OH)3Al(OH)3 + 3HCl → AlCl3 + 3H2ONo
Sodium bicarbonate, NaHCO3NaHCO3 + HCl → NaCl + H2O + CO2Yes, CO2

Weak bases are chosen because they react with the acid without making the mixture strongly alkaline. A strong base such as sodium hydroxide is corrosive and would damage tissue, which is why it is not used in medicines.

The science behind it

Hydrochloric acid in the stomach releases hydrogen ions (H+) into the stomach contents. The base in an antacid takes up these ions. Magnesium hydroxide and aluminum hydroxide supply hydroxide ions (OH⁻), which join the hydrogen ions to form water. Carbonate and bicarbonate ions take up the hydrogen ions in a different way.

Carbonate ions first combine with hydrogen ions to form carbonic acid, H2CO3. Carbonic acid is unstable and breaks down into water and carbon dioxide gas: H2CO3 → H2O + CO2. The reaction for calcium carbonate is shown below.

CaCO3 + 2HCl → CaCl2 + H2O + CO2

One mole of calcium carbonate reacts with two moles of hydrochloric acid to give calcium chloride, water and carbon dioxide. The calcium chloride is a soluble salt, so it stays dissolved in the stomach contents. The carbon dioxide is a gas at body temperature, so it can build up and leave the stomach as a burp. The pH of the stomach contents rises as the acid is used up.

Magnesium hydroxide works more directly. Its hydroxide ions take up hydrogen ions, and the magnesium ions stay in solution as a salt. The ionic form of the reaction is shown below, where the spectator chloride ions are left out.

Mg(OH)2 + 2H+ → Mg2+ + 2H2O

Two hydrogen ions are needed for each magnesium hydroxide unit, because the formula contains two hydroxide ions. The reaction is still a neutralization, but it gives no carbon dioxide, which is why it is less likely to cause gas.

An everyday example

Effervescent antacid tablets fizz when dropped into water. The tablet contains a base, usually sodium bicarbonate, and a solid acid, usually citric acid. When both dissolve, they react and release carbon dioxide, which makes the bubbles you see. The fizzing shows that a gas is being formed by an acid-base reaction.

The same kind of reaction shapes the outdoors. Limestone and marble are made mostly of calcium carbonate, so they react slowly with acid in rain and in polluted air. Over many years, this weathering rounds the edges of old statues and gravestones. The acid is not drunk in this case, but the chemistry is the same as in the stomach.

Why some antacids make you burp

Burping after an antacid is a sign that gas is being released, and it comes from the carbonate or bicarbonate part of the product. Calcium carbonate and sodium bicarbonate both produce carbon dioxide when they react with acid. Magnesium hydroxide and aluminum hydroxide form mostly water and salts, so they produce little or no gas.

This is also why the sodium bicarbonate in some products can make a person feel bloated. Products that use magnesium or aluminum bases produce less gas, but the difference is only one part of how a product is chosen. The product label and a pharmacist are the right sources for choosing a product and for checking whether an antacid suits a particular person.

Gas is also produced whenever stomach acid meets food and bacteria, so burping is common even without medicine. An antacid adds to this gas only when its ingredients release carbon dioxide.

Common misconceptions

Antacids remove all the stomach acid. An antacid neutralizes only part of the acid present. The stomach keeps making acid, and the effect of the antacid is temporary.

Antacids are like drain cleaner. Drain cleaner contains a strong base, sodium hydroxide, which is corrosive. Antacids contain weak bases chosen so that they react gently with acid, and they are designed to be swallowed.

All antacids produce gas. Only carbonate and bicarbonate ingredients release carbon dioxide. Magnesium hydroxide and aluminum hydroxide do not, so a burp is not a sign that every antacid is working. This is general science, not medical advice.

Frequently asked questions

What is an antacid made of?

Common antacid ingredients are weak bases such as calcium carbonate, magnesium hydroxide, aluminum hydroxide and sodium bicarbonate. Each one reacts with hydrochloric acid in the stomach to form a salt and water. Some also release carbon dioxide gas.

Why do antacids use weak bases instead of strong bases?

Weak bases such as calcium carbonate react with acid without making the mixture strongly alkaline. Strong bases such as sodium hydroxide are corrosive and would damage tissue. Drain cleaner is an example of a strong base.

Does an antacid remove all the acid in the stomach?

No. An antacid only neutralizes part of the acid, and the stomach keeps making more. The effect is a temporary rise in pH. General information like this is not medical advice, and the product label or a pharmacist gives guidance on use.

Why do some antacids make you burp?

Carbonate and bicarbonate ions react with acid to form carbonic acid, which breaks down into water and carbon dioxide gas. The gas can build up and be released as a burp. Magnesium hydroxide and aluminum hydroxide do not release much gas.

What is the pH of stomach acid?

The stomach contains hydrochloric acid with a pH of about 1.5 to 3.5, depending on whether it is empty or has food in it. This strong acidity helps break down food and kill many microbes. Neutralization raises the pH toward a less acidic level.

Sources and further reading

  • IUPAC, "Compendium of Chemical Terminology (Gold Book)"
  • OpenStax, "Chemistry 2e"

Cite this page

“How Do Antacids Work? The Chemistry of Neutralizing Acid.” Atoms & Forces, https://science.bigworldlist.com/questions/how-do-antacids-work/.

More about Neutralization