What Causes Stomach Acid to Increase or Decrease

Your stomach produces acid through a highly coordinated process involving specialized cells, hormones, and nerve signals. The acid itself is hydrochloric acid, and a healthy empty stomach maintains a median pH of about 1.7, making it one of the most acidic environments in your body. Understanding what drives this process helps explain why acid levels sometimes spike or drop in ways that cause problems.

How Your Stomach Actually Makes Acid

Acid production happens in parietal cells, which line the inner wall of your stomach. These cells contain a molecular pump called the proton pump (technically H⁺-K⁺-ATPase) that pushes hydrogen ions out of the cell and into the stomach cavity while pulling potassium ions back in. The hydrogen ions then combine with chloride ions to form hydrochloric acid.

This pump works against a massive concentration gradient, meaning it takes real energy to move those hydrogen ions. Each cycle requires a molecule of ATP, your body’s main energy currency. The pump constantly flips between two shapes: one that grabs hydrogen from inside the cell and another that releases it into the stomach lumen and grabs potassium instead. Separate channels supply the potassium and chloride that keep the whole process running. This is the same pump that medications like omeprazole permanently disable, which is why those drugs are called “proton pump inhibitors.”

The Three Signals That Turn On Acid

Three chemical messengers act on separate receptors on parietal cells to trigger acid secretion: acetylcholine (a nerve signal), gastrin (a hormone), and histamine (a local signaling molecule). Each one can stimulate acid on its own, but when they work together, the effect multiplies rather than simply adding up. Histamine and gastrin potentiate each other, and when all three are present simultaneously, a three-way amplification effect kicks in. This is why blocking just one of these pathways, as antihistamines like famotidine do, can meaningfully reduce total acid output.

Histamine’s effects work through a specific signaling molecule inside the cell called cyclic AMP. Gastrin, released by G cells in the lower part of the stomach, is the only true hormonal stimulant of acid secretion, meaning it travels through the bloodstream to reach parietal cells. Acetylcholine, by contrast, is released directly by nerve endings right next to the cells it targets.

Your Brain Starts the Process Before You Eat

Acid secretion unfolds in three distinct phases, each triggered by different cues.

The cephalic phase begins before food even reaches your stomach. Seeing, smelling, or simply anticipating a meal sends signals from your brain down the vagus nerve to the stomach. A hormone called thyrotropin-releasing hormone in the brainstem acts as the central trigger, activating nerve pathways that reach both parietal cells and gastrin-producing G cells. The vagus nerve also suppresses somatostatin release from nearby delta cells. Somatostatin normally acts as a brake on acid production, so suppressing it is like releasing a parking brake, letting acid flow more freely. This phase produces relatively small amounts of acid, essentially priming the stomach.

The gastric phase is where most acid gets made. Once food enters the stomach, physical stretching activates stretch receptors, and chemical components of the food activate chemoreceptors in the stomach lining. Both signals cause enteric neurons (the stomach’s own local nervous system) to release more acetylcholine, which stimulates both G cells and parietal cells. Gastrin from G cells then feeds back to parietal cells, amplifying the response further.

The intestinal phase works in reverse. As partially digested food moves into the small intestine, the intestine sends inhibitory signals back to the stomach, slowing both acid secretion and stomach motility. This gives the small intestine time to neutralize the incoming acid and absorb nutrients efficiently.

What You Eat Directly Affects Acid Levels

Not all foods stimulate acid equally. Amino acids, the building blocks of protein, are potent triggers. When protein is broken down into amino acids in the stomach, those amino acids cause a significant rise in gastrin levels and boost acid secretion well beyond what simple stomach stretching alone would produce. Intact proteins that haven’t been broken down yet, like albumin, don’t have this effect. So the act of digestion itself creates a feedback loop: as protein breaks down, the resulting amino acids call for even more acid to continue the process.

Stomach distension from any food or liquid also stimulates acid, but the chemical signal from amino acids adds a substantial second layer on top. Gastrin is one mediator of this chemical phase, though researchers believe other, not yet fully identified messengers also play a role.

How pH Shifts During a Meal

When you eat, the food itself acts as a buffer, temporarily neutralizing some of the existing acid. In healthy young adults, the median fasting stomach pH of 1.7 climbs briefly to a peak of about 6.7 after a meal, nearly neutral. But this spike is short-lived. The stomach rapidly ramps up acid production, and pH drops back to fasting levels in less than two hours.

H. pylori Infection: It Can Go Either Way

Helicobacter pylori, a bacterium that colonizes the stomach lining in a large portion of the world’s population, has a complex and somewhat paradoxical relationship with stomach acid. During acute infection, it tends to reduce acid. The bacterium produces ammonia (through an enzyme called urease), fatty acids, and other substances that directly block the proton pump. It also triggers inflammatory molecules like interleukin-1β that suppress parietal cell activity, and it can even reduce the number of proton pumps the cells produce.

Chronic infection tells a different story, depending on where in the stomach the bacteria settle. When H. pylori colonizes mainly the lower portion of the stomach (the antrum), the ammonia it produces locally alkalinizes the area around G cells. Those G cells interpret the local drop in acidity as a signal to release more gastrin, which drives acid-producing cells elsewhere in the stomach to work harder. This pattern of elevated acid is what predisposes people with chronic antral H. pylori infection to duodenal ulcers. When the infection is eradicated, gastrin levels fall, the mass of histamine-releasing cells in the stomach shrinks, and acid output drops back down.

Gastrin-Producing Tumors

In rare cases, a tumor called a gastrinoma, usually located in the pancreas or duodenum, secretes gastrin continuously and without regulation. This causes Zollinger-Ellison syndrome, characterized by relentless acid overproduction. The constant flood of gastrin drives parietal cells to secrete far more acid than normal, leading to severe and recurrent peptic ulcers, chronic diarrhea from the excess acid overwhelming the small intestine’s ability to absorb water and sodium, and persistent acid reflux.

Why Acid Production Declines With Age

Stomach acid output shows a statistically significant decline with age, dropping by roughly 0.06 units of acid output per year according to meta-regression data. But the cause isn’t simply that parietal cells wear out. The decline is largely driven by three overlapping factors that become more common in older adults.

The biggest contributor is chronic atrophic gastritis, a condition where the specialized acid-producing and enzyme-producing cells in the stomach are gradually replaced by scar-like tissue amid chronic inflammation. This condition affects 50 to 70 percent of people over age 60. Long-standing H. pylori infection is a major driver of this atrophy, and since H. pylori prevalence increases with age, the two problems compound each other. In patients with chronic persistent infection, the acid-producing glands can be destroyed entirely, resulting in a permanent inability to produce acid.

The widespread use of proton pump inhibitors in older adults also contributes. These medications irreversibly disable the proton pump on parietal cells, and in older populations where they’re frequently prescribed, they account for a meaningful portion of the observed decline. Animal studies suggest there may also be a true age-related component: older rats show reduced responsiveness to gastrin, possibly because their parietal cells lose gastrin receptors over time and develop a higher ratio of acid-suppressing somatostatin cells relative to gastrin cells.

Rebound Acid After Stopping Acid-Reducing Drugs

If you’ve taken a proton pump inhibitor for an extended period, stopping it can temporarily cause your stomach to produce more acid than it did before you started. This happens because the drug suppresses acid so effectively that your body compensates by producing extra gastrin. That excess gastrin stimulates growth of histamine-releasing cells in the stomach lining. While you’re on the medication, the extra histamine doesn’t matter because the proton pumps are blocked. But once you stop, the enlarged population of histamine-releasing cells drives acid production above your original baseline.

Symptoms of this rebound typically appear 5 to 14 days after stopping the medication, last around 4 to 5 days on average, though some people experience onset at weeks 3 to 4. After more than a year of PPI use, the rebound hypersecretion can persist for over 8 weeks but generally resolves within 26 weeks. This rebound effect can make people feel like they still need the medication, creating a cycle that’s sometimes described as a form of physiological dependence.