structural:expansion, information:filtering, structural:summarization
Presence in living organisms

Gastric acid is one of the main secretions of the stomach. It consists mainly of hydrochloric acid and acidifies the stomach content to a pH of 1 to 2. Chloride (Cl) and hydrogen (H) ions are secreted separately in the stomach fundus region at the top of the stomach by parietal cells of the gastric mucosa into a secretory network called canaliculi before it enters the stomach lumen.

Gastric acid acts as a barrier against microorganisms to prevent infections and is important for the digestion of food. Its low pH denatures proteins and thereby makes them susceptible to degradation by digestive enzymes such as pepsin. The low pH also activates the enzyme precursor pepsinogen into the active enzyme pepsin by self-cleavage. After leaving the stomach, the hydrochloric acid of the chyme is neutralized in the duodenum by bicarbonate.

The stomach itself is protected from the strong acid by the secretion of a thick mucus layer, and by secretin induced buffering with sodium bicarbonate. Heartburn or peptic ulcers can develop when these mechanisms fail. Drugs of the antihistaminic and proton pump inhibitor classes can inhibit the production of acid in the stomach, and antacids are used to neutralize excessive existing acid.

Hydrochloric acid is also used by osteoclasts alongside proteases for bone resorption.