The stomach produces hydrochloric acid, a strong acid that keeps the stomach contents at a pH of roughly 1.5 to 3.5 — acidic enough to kill most swallowed microbes, unfold proteins so enzymes can cut them, and activate pepsin, the enzyme that begins protein digestion. That acid is held in check by a mucus-bicarbonate barrier; when the balance between acid, mucus and the protective prostaglandins breaks down, the result is heartburn, gastritis or an ulcer.
What Stomach Acid Is Made Of
Gastric juice is a mixture, not a single substance. Its main components are hydrochloric acid (HCl), the enzyme pepsinogen (which acid converts into active pepsin), intrinsic factor (needed to absorb vitamin B12), mucus, and bicarbonate. Parietal cells in the stomach lining secrete the acid itself; chief cells secrete pepsinogen; surface cells secrete the mucus and bicarbonate that protect the lining from the acid they sit in.
The acid is produced in a stepwise way. Carbon dioxide and water combine inside the parietal cell to form carbonic acid, which splits into hydrogen ions and bicarbonate. The hydrogen ions are pumped into the stomach lumen by a proton pump (the H+/K+ ATPase), while bicarbonate is exported into the blood — which is why a heavy meal can briefly make the blood slightly more alkaline. The stomach lining is not dissolved by its own acid because it is covered by a thick mucus layer that is renewed constantly and kept slightly alkaline by bicarbonate secreted beneath it.
What the Acid Actually Does
- Kills microbes. The low pH destroys most bacteria, viruses and parasites swallowed with food and water, which is one of the body's first lines of defense against foodborne infection.
- Unfolds and breaks down protein. Acid denatures protein structure, exposing the peptide bonds that pepsin then cuts. Without acid, protein digestion slows dramatically.
- Activates pepsin. Pepsinogen is inactive until acid removes part of the molecule; the resulting pepsin works best at very low pH.
- Triggers the rest of digestion. When acidic chyme enters the small intestine, it stimulates the release of secretin and other hormones that prompt the pancreas to send bicarbonate and enzymes, and the gallbladder to release bile.
- Helps absorb nutrients. Acid releases vitamin B12 from food proteins so it can bind to intrinsic factor, and it keeps minerals such as iron and calcium in forms the intestine can absorb.
How the Stomach Controls Its Own Acid
Acid secretion is turned on and off by three signals: the hormone gastrin (released when food, especially protein, arrives in the stomach), the vagus nerve (activated by the sight, smell and taste of food), and histamine (released by enterochromaffin-like cells and acting on parietal cells). These three pathways converge on the parietal cell, which is why drugs that block histamine, block the proton pump, or neutralize acid all reduce secretion through different routes.
The stomach also has feedback brakes. As the stomach fills and the pH drops, gastrin release is suppressed, and when chyme moves into the duodenum, hormones such as secretin and cholecystokinin slow stomach emptying and reduce acid output. This is why a very large meal can feel heavy for hours: the stomach is deliberately holding its contents back until the intestine is ready.
When the Balance Breaks Down
Common problems arise when acid, mucus or the sphincter at the top of the stomach misbehave:
- Gastroesophageal reflux (GERD). The lower esophageal sphincter relaxes at the wrong time, letting acid splash into the esophagus, which lacks a mucus barrier. This causes heartburn and, over time, can damage the esophageal lining.
- Gastritis. Inflammation of the stomach lining, often from long-term use of NSAIDs (which reduce protective prostaglandins), heavy alcohol use, or infection with Helicobacter pylori, a bacterium that survives in the stomach and is a major cause of ulcers.
- Peptic ulcers. Open sores in the stomach or duodenum, most often linked to H. pylori infection or NSAID use. Ulcers are not caused by spicy food or stress alone, a common misconception.
- Low acid (hypochlorhydria). Some people produce less acid than normal, which can impair B12 and mineral absorption and allow more bacteria into the small intestine. It is more common in older adults and in people with certain autoimmune conditions.
A common misconception is that heartburn means too much acid overall. In many cases the amount is normal but the acid is in the wrong place — the esophagus — or the protective barrier has failed. That is why antacids relieve symptoms without fixing the underlying reflux.
Acid-Reducing Medicines and How They Differ
Three main classes of drugs target stomach acid, and they work in different ways:
- Antacids (calcium carbonate, magnesium hydroxide, aluminum hydroxide) neutralize acid already in the stomach. They act within minutes but last only a short time.
- H2 blockers (such as famotidine) reduce histamine-driven acid production. They work for several hours and are taken before or during meals.
- Proton pump inhibitors (omeprazole, esomeprazole, lansoprazole and similar) shut down the acid pump itself and are the strongest suppressors. They are usually taken 30 to 60 minutes before a meal and can take a few days to reach full effect.
Long-term use of strong acid suppression is associated with a modestly increased risk of certain infections (including Clostridioides difficile) and reduced absorption of vitamin B12 and magnesium, so these medicines are generally used at the lowest effective dose for the shortest necessary time, and long-term use should be reviewed with a clinician.
Everyday Factors That Affect Stomach Acid
- Large, fatty or very spicy meals slow stomach emptying and increase reflux risk.
- Alcohol and smoking both irritate the stomach lining and weaken the sphincter.
- Lying down or bending over soon after eating makes reflux more likely.
- NSAIDs, some antibiotics and certain other medicines can irritate the lining or affect acid production.
- Stress does not cause ulcers by itself, but it can worsen symptoms and affect digestion.
Practical measures that genuinely help reflux include eating smaller meals, leaving two to three hours between dinner and lying down, elevating the head of the bed, and losing excess weight. These reduce the frequency of acid exposure to the esophagus rather than changing acid production.
How Much Acid Is Normal?
The healthy stomach secretes roughly one to two liters of gastric juice a day, and its pH between meals is usually around 1.5 to 3.5. After a meal, food buffers the acid and the pH rises, then falls again as secretion continues. These are broad ranges, not fixed values; individual output varies with age, body size, diet and medication. There is no simple at-home test that reliably measures stomach acid, and commercial "low acid" tests are not well validated — a clinician can assess symptoms and, when needed, order appropriate tests.
Frequently Asked Questions
Does drinking water dilute stomach acid?
Briefly, yes, but the stomach adjusts. Water raises the pH for a short time, then parietal cells secrete more acid and the pH returns toward baseline. Drinking water with meals does not harm digestion for most people.
Is stomach acid strong enough to dissolve metal?
Hydrochloric acid in the laboratory can corrode some metals, but stomach acid is far more dilute and is quickly buffered by food and mucus. The stomach lining survives because of its mucus-bicarbonate barrier, not because the acid is weak.
Can stress cause too much stomach acid?
Stress can increase acid secretion and slow digestion in some people, and it clearly worsens symptoms of reflux and indigestion. But stress alone is not considered a direct cause of peptic ulcers; H. pylori and NSAIDs are the main established causes.
Why does acid reflux happen at night?
Lying flat removes gravity's help in keeping stomach contents down, and the lower esophageal sphincter relaxes more readily during sleep. Eating late and going to bed soon after makes it more likely.
Do antacids cure ulcers?
Antacids relieve symptoms but do not heal ulcers caused by H. pylori or NSAIDs. Treating the underlying cause — clearing the infection or stopping the offending medicine — is what allows the ulcer to heal.
Is low stomach acid common?
It occurs in some older adults and in certain medical conditions, but it is less common than excess acid and is not reliably diagnosed by symptoms alone. A clinician can evaluate it if there is reason to suspect it.