Gastroenteropedia ES
Digestive system

The stomach and gastric acid

The stomach stores, grinds and starts digesting food with a very strong acid, without digesting itself. Its parts and cells, how acid is controlled, how long it takes to empty and which tests examine it.

Where it is and what it looks like

The stomach sits in the upper left part of the abdomen, beneath the diaphragm and partly protected by the ribs. Empty, it holds little, but thanks to its folds (the gastric "rugae") it stretches easily: it comfortably takes 1-1.5 litres and can reach several litres.

Part Where it is Main function
Cardia Junction with the oesophagus Entrance; part of the anti-reflux barrier
Fundus Upper dome Stores food and swallowed air (the "gastric bubble" on X-rays)
Body Central and largest part Produces acid, pepsin and intrinsic factor
Antrum Lower part Grinds and mixes; produces gastrin
Pylorus Outlet to the duodenum Sphincter that only lets through particles of 1-2 mm

The upper stomach relaxes when we eat to make room without raising the pressure (accommodation), and the lower stomach works like a mill: contractions about three times a minute push food against the closed pylorus and throw it back until it becomes a paste called chyme. When accommodation fails, early fullness follows, one of the mechanisms of functional dyspepsia.

The cells of the stomach

The stomach lining is dotted with millions of small glands containing specialised cells:

Cell Where What it makes Why it matters
Parietal Fundus and body Hydrochloric acid and intrinsic factor Target of PPIs; if destroyed (autoimmune gastritis), vitamin B12 runs short
Chief Fundus and body Pepsinogen and gastric lipase Pepsin starts protein digestion
Mucous Whole surface Mucus and bicarbonate Barrier that prevents self-digestion
G Antrum Gastrin Stimulates acid; rises with PPIs and in atrophic gastritis
D Antrum and body Somatostatin Brakes acid
Enterochromaffin-like (ECL) Body Histamine Stimulates the parietal cell; target of H2 blockers
X/A-like cells Fundus Ghrelin The "hunger hormone"

Acid: how it is made and controlled

The parietal cell pumps hydrogen ions into the stomach through the proton pump (H⁺/K⁺-ATPase). The result is a juice with a fasting pH of 1-2, nearly a million times more acidic than blood. Three signals switch the pump on: acetylcholine from the vagus nerve, gastrin and histamine. Secretion has three phases:

  1. Cephalic: seeing, smelling or thinking about food activates the vagus before the first bite.
  2. Gastric: stretching of the stomach and proteins release gastrin; this is the most intense phase.
  3. Intestinal: when acidic chyme reaches the duodenum, hormones such as secretin and somatostatin brake acid production.

Medicines act on these signals: proton pump inhibitors (omeprazole and others) block the pump; H2 blockers and antacids act on histamine or neutralise acid already made; and the newer potassium-competitive acid blockers such as vonoprazan block the pump faster and more steadily.

Why so much acid?

  • Digestion: it turns pepsinogen into pepsin and unfolds proteins.
  • Sterilisation: it kills most of the microbes we swallow. With less acid, the risk of some gut infections rises slightly.
  • Absorption: it helps absorb iron, calcium and vitamin B12 from food.

Why the stomach does not digest itself

The lining protects itself with a layer of mucus and bicarbonate, very tight junctions between cells, an abundant blood supply, prostaglandins and rapid renewal of the surface cells. NSAIDs (ibuprofen, naproxen, aspirin) block prostaglandins, and Helicobacter pylori disrupts acid control and the barrier: these are the two main causes of peptic ulcer.

Gastric emptying

Liquids leave the stomach within minutes; solids must first be ground down, so a mixed meal takes about 2-4 hours to empty, longer if it is high in fat or calories. Standard gastric emptying scintigraphy considers emptying delayed if more than 60% remains at 2 hours or more than 10% at 4 hours after a test meal (consensus of the American Neurogastroenterology and Motility Society and the Society of Nuclear Medicine, 2008). Delay with symptoms and no blockage defines gastroparesis, common in long-standing diabetes. GLP-1 agonists such as semaglutide also slow emptying, which matters before an endoscopy or anaesthetic.

Intrinsic factor and vitamin B12

Vitamin B12 from food can only be absorbed when bound to the intrinsic factor made by parietal cells, and that absorption happens at the end of the ileum. This is why B12 deficiency can be caused by autoimmune gastritis (pernicious anaemia), gastric or bariatric surgery and, to a lesser extent, very long-term use of PPIs or metformin. See ferritin, iron, vitamin B12 and folate.

Conditions and figures

  • Helicobacter pylori: a 2024 review (Chen and colleagues, Gastroenterology) estimated that adult prevalence worldwide fell from around 53% before 1990 to about 44% in 2015-2022. It is the main cause of ulcers and of gastric cancer, which is why guidelines (Maastricht VI/Florence 2022, the Fourth Spanish Consensus Conference, ACG 2024) recommend treating everyone who is infected. See the eradication guide.
  • Gastric cancer: about 970,000 new cases and 660,000 deaths worldwide in 2022 (GLOBOCAN; Bray and colleagues, 2024), the fifth most common cancer.
  • Dyspepsia: chronic upper abdominal discomfort is very common; most cases are functional (Rome IV criteria).

How the stomach is examined

Test What for Practical point
Gastroscopy with biopsies Ulcers, gastritis, atrophy, metaplasia, tumours Fast for 6 hours from solids
H. pylori tests (urea breath test, stool antigen) Diagnosis and confirmation of cure Sensitivity and specificity above 90%; stop PPIs 2 weeks and antibiotics 4 weeks before, if your doctor advises
Gastric emptying scintigraphy Gastroparesis Retention > 60% at 2 h or > 10% at 4 h
Blood tests Anaemia, ferritin, B12, parietal cell antibodies Point to atrophic gastritis or bleeding

Act immediately (call 112, in Europe, or your local emergency number) if you vomit blood or dark "coffee-ground" material, have black tar-like stools, feel dizzy or faint, or have sudden, severe stomach pain with a board-like rigid abdomen (possible perforation). See upper gastrointestinal bleeding.

Myths and facts

  • "Stress causes ulcers." Only in extreme situations (severe burns, intensive care). Most are due to H. pylori or NSAIDs.
  • "Milk soothes acidity." It helps for a few minutes, but its protein and calcium then stimulate more acid.
  • "If you eat little, your stomach shrinks." It does not change size meaningfully; what adapts is the feeling of fullness.
  • "Taking omeprazole protects your stomach from everything." It protects against NSAID ulcers in people at risk, but it does not make alcohol harmless or replace H. pylori eradication. More in is it bad to take omeprazole for a long time?.

Sources

  1. Chen YC, et al. Global prevalence of Helicobacter pylori infection and incidence of gastric cancer between 1980 and 2022. Gastroenterology. 2024;166:605-19. doi:10.1053/j.gastro.2023.12.022
  2. Malfertheiner P, et al. Management of Helicobacter pylori infection: the Maastricht VI/Florence consensus report. Gut. 2022;71:1724-62. doi:10.1136/gutjnl-2022-327745
  3. Chey WD, et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. Am J Gastroenterol. 2024;119:1730-53. doi:10.14309/ajg.0000000000002968
  4. Gisbert JP, et al. IV Conferencia Española de Consenso sobre el tratamiento de la infección por Helicobacter pylori. Gastroenterol Hepatol. 2022;45:392-417. doi:10.1016/j.gastrohep.2021.07.011
  5. Bray F, et al. Global cancer statistics 2022: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA Cancer J Clin. 2024;74:229-63. doi:10.3322/caac.21834
  6. Abell TL, et al. Consensus recommendations for gastric emptying scintigraphy: a joint report of the American Neurogastroenterology and Motility Society and the Society of Nuclear Medicine. Am J Gastroenterol. 2008;103:753-63. doi:10.1111/j.1572-0241.2007.01636.x
  7. Stanghellini V, et al. Gastroduodenal disorders. Gastroenterology. 2016;150:1380-92.
  8. Hall JE, Hall ME. Guyton and Hall Textbook of Medical Physiology. 14th ed. Elsevier; 2021.
  9. MedlinePlus. Stomach disorders.

Sources reviewed in November 2026.

Spotted a mistake? Write to partenopides@gmail.com