Stomach pain: what's important to know

Alexey Krivenko, medical reviewer, editor
Last updated: 12.03.2026
Fact-checked
х

All iLive content is medically reviewed or fact checked to ensure as much factual accuracy as possible.

We have strict sourcing guidelines and only link to reputable media sites, academic research institutions and, whenever possible, medically peer reviewed studies. Note that the numbers in parentheses ([1], [2], etc.) are clickable links to these studies.

If you feel that any of our content is inaccurate, out-of-date, or otherwise questionable, please select it and press Ctrl + Enter.

In common parlance, "stomach pain" refers to almost any pain in the upper abdomen. Medically, this is inaccurate. Most often, patients describe pain or burning in the epigastrium, that is, in the upper central region of the abdomen, and this symptom is usually classified as dyspepsia. But even if the pain is felt "in the pit of the stomach," its source may lie not only in the stomach, but also in the duodenum, esophagus, gallbladder, pancreas, and even outside the digestive system.

Modern gastroenterology views dyspepsia as a syndrome, not a single diagnosis. Within this syndrome, functional dyspepsia, Helicobacter pylori infection, peptic ulcer disease, gastroesophageal reflux disease, and drug-induced mucosal injury, particularly associated with nonsteroidal anti-inflammatory drugs, are particularly common. However, some people with "stomach" pain actually have biliary pain or acute pancreatitis.

Functional dyspepsia deserves special attention because it remains one of the most common causes of chronic epigastric pain and postprandial discomfort. The 2022 British guidelines emphasize that the diagnosis of functional dyspepsia should be based on Rome IV criteria: bothersome epigastric pain, burning, early satiety, or heaviness after meals in the absence of a structural cause that better explains the symptoms. This is important because functional dyspepsia is not a "made-up" disease, but a disorder of gut-brain interaction with real symptoms and a real reduction in quality of life. [1]

In clinical practice, the main question isn't "what to drink for stomach problems," but "what is the symptom pattern?" If early satiety and heaviness after eating are dominant, the range of causes is the same. If burning heartburn and sour belching are predominant, gastroesophageal reflux disease is more likely. If there is black stool, bloody vomiting, or sharp pain, the approach is entirely different. That's why a good article on stomach pain should explain not only the causes but also the clinical logic behind recognition. [2]

Another important principle of the modern approach is not to send everyone for endoscopy and not to treat everyone equally. In patients under 60 years of age without warning signs, noninvasive testing for Helicobacter pylori is typically used first, with treatment if positive, and, depending on the clinical situation, a trial course of a proton pump inhibitor. In patients 60 years of age and older, as well as in some younger people at high risk of malignancy, the threshold for endoscopy is lower. [3]

Below is a table to help you understand what most often means when you hear the words "stomach ache." It is based on current guidelines for dyspepsia, gastroesophageal reflux disease, gastroparesis, pancreatitis, and acute cholecystitis. [4]

Complaint What is most often behind the symptom? What is especially important to clarify
Pain or burning in the epigastrium functional dyspepsia, peptic ulcer, Helicobacter pylori infection food related, night pain, nonsteroidal anti-inflammatory drug use
Heaviness after eating and early satiety functional dyspepsia, sometimes gastroparesis nausea, vomiting, feeling like food is standing still
Heartburn and sour taste gastroesophageal reflux disease relationship with body position, night symptoms
Sharp pain on the right side after fatty foods biliary colic, acute cholecystitis fever, pain under the right rib, ultrasound
Severe constant pain radiating to the back acute pancreatitis vomiting, alcohol, lipase, severity of the condition
Pain associated with nonsteroidal anti-inflammatory drugs erosions, ulcers, bleeding black stool, anemia, age, anticoagulants

The main causes of stomach pain

The most common group of causes is functional dyspepsia. It is characterized by epigastric pain or burning, early satiety, fullness after a normal meal, and a chronic or recurrent course. Current guidelines consider it a disorder of the interaction between the gut and brain, where visceral hypersensitivity, impaired gastric accommodation, motility, mucosal immune activity, and psychoemotional factors are important. This is why some patients have normal endoscopy, yet their symptoms are quite pronounced. [5]

Helicobacter pylori infection is a second key cause that should not be overlooked. It is associated with dyspepsia, peptic ulcer disease, and more serious long-term risks, including gastric cancer and gastric mucosal lymphoma. Current guidelines from the American College of Gastroenterology emphasize that the decision to "test" and "treat" this infection should be considered as a single clinical step, with eradication confirmed after treatment. [6]

Peptic ulcer disease remains one of the most important organic causes of epigastric pain. It should be especially suspected in cases of nocturnal pain, a history of ulcers, association with nonsteroidal anti-inflammatory drugs, iron deficiency anemia, melaena, or a positive Helicobacter pylori test. An ulcer itself does not always cause "classic" pain, so today it is recognized not by schoolyard clichés, but by a combination of symptoms, risk factors, and the results of endoscopy or Helicobacter pylori testing. [7]

Gastroesophageal reflux disease is also often perceived by patients as "stomach pain," although it is essentially a disease of the esophagus. When heartburn and regurgitation predominate without warning signs, current guidelines recommend an 8-week trial course of a proton pump inhibitor once daily before meals. If symptoms resolve, an attempt is made to discontinue the drug. If they persist or quickly return, further diagnostic steps are required. [8]

Gastroparesis should be considered when early satiety, heaviness even after small meals, nausea, vomiting, and a pronounced sensation of food retention become prominent. The new American Gastroenterological Association guidelines emphasize that the diagnosis requires documented delayed gastric emptying in the absence of mechanical obstruction, and that a 4-hour gastric emptying study is considered the appropriate test, rather than the shortened 2-hour version. [9]

Finally, some "stomach" pain isn't stomach pain at all. If the pain is acute, radiates to the back, and is accompanied by vomiting and a severe general condition, acute pancreatitis should be considered. If the pain occurs 15-60 minutes after eating fatty foods, is localized to the right, and may be accompanied by fever, biliary pathology is more likely. If acute cholecystitis is suspected, abdominal ultrasound is considered the first imaging method, and if acute calculous cholecystitis is confirmed, early laparoscopic cholecystectomy is preferable to delayed surgery. [10]

Below is a table of clinical differences between the most common causes. It summarizes the signs that help quickly select the correct diagnostic line. [11]

Cause What does the patient most often feel? What is particularly alarming
Functional dyspepsia pain or burning in the epigastrium, heaviness after eating, early satiety Significant weight loss, vomiting, and anemia require a search for an organic cause.
Helicobacter pylori and peptic ulcer disease epigastric pain, sometimes at night, sometimes nausea black stool, vomiting blood, anemia
Gastroesophageal reflux disease heartburn, sour taste, regurgitation dysphagia, bleeding, weight loss
Gastroparesis early satiety, heaviness, nausea, vomiting, bloating dehydration, weight loss, repeated vomiting
Biliary pain pain on the right side or in the epigastrium after fatty foods fever, jaundice, prolonged pain
Acute pancreatitis severe constant pain in the epigastrium radiating to the back severe condition, repeated vomiting, organ failure

When an urgent in-person assessment is needed

The most important component in assessing stomach pain is warning signs. These include dysphagia, gastrointestinal bleeding, unexplained weight loss, anemia, repeated vomiting, persistent night pain, severe weakness, and the onset of symptoms at an older age. With this presentation, the physician's role changes: symptomatic therapy alone is no longer sufficient, as the likelihood of ulcerative bleeding, tumor, obstruction, or other organic pathology increases. [12]

It's important to understand a modern caveat: in patients under 60, the presence of warning signs does not automatically mean the same approach is recommended for everyone. Joint guidelines from the American College of Gastroenterology and the Canadian Gastroenterology Association emphasize that in younger patients, the decision to perform endoscopy is made individually, not mechanically. However, this does not change the fact that pronounced warning signs require a more rapid, in-person decision rather than self-treatment at home. [13]

Acute pancreatitis deserves special mention. Severe, persistent epigastric pain radiating to the back, vomiting, and a severe general condition are no longer a matter of "trying stomach pills." Current guidelines emphasize that acute pancreatitis is heterogeneous and can quickly progress to necrosis and organ failure, so early recognition and initial management are critical. [14]

It is equally important to recognize biliary pain and acute cholecystitis. Pain after fatty foods, especially on the right side under the ribs or in the right epigastrium, should not be automatically attributed to "gastritis." The World Society for Emergency Surgery recommends abdominal ultrasound as the preferred initial imaging test for suspected acute calculous cholecystitis due to its availability, good accuracy, and noninvasiveness. [15]

Finally, any scenario in which pain is accompanied by dehydration, inability to eat or drink, repeated vomiting, severe weakness, black stools, or bloody vomit requires urgent evaluation. With such symptoms, the cost of delay is significantly higher than the cost of an unnecessary examination. In gastroenterology, most serious errors arise not from excessive caution, but from late recognition of complications. [16]

Below is a table of practical "red flags" and the most likely explanations.[17]

Sign Why is this dangerous? What is usually required
Black stool or bloody vomit possible ulcerative bleeding urgent in-person assessment, tests, endoscopy as indicated
Progressive dysphagia organic pathology of the esophagus is possible accelerated endoscopy
Repeated vomiting and dehydration risk of obstruction, gastroparesis, severe inflammation In-person examination, fluid correction, search for the cause
Severe back pain acute pancreatitis is possible lipase, severity assessment, hospitalization according to indications
Pain on the right side after fatty foods possible biliary colic or cholecystitis ultrasound examination
Weight loss, anemia, night pain higher risk of organic pathology accelerated diagnostic routing

Diagnostics

Diagnosis begins with a good medical history, not a one-size-fits-all set of tests. It's important to clarify the pain's location, duration, relationship with food, nighttime symptoms, heartburn, early satiety, vomiting, use of nonsteroidal anti-inflammatory drugs, smoking, alcohol, family history of upper gastrointestinal cancer, and weight loss. It's the combination of these details that determines whether the first step is a Helicobacter pylori test, a trial course of a proton pump inhibitor, endoscopy, or a search for a non-gastric cause.

In patients under 60 years of age without alarming symptoms, modern management typically begins not with endoscopy, but with noninvasive testing for Helicobacter pylori and treatment if positive. This is one of the most consistent principles of current guidelines. In patients 60 years and older, upper endoscopy is recommended to exclude organic pathology, and in people with a higher risk of cancer, the threshold for endoscopy may be lowered to younger ages. [18]

When gastroesophageal reflux disease is suspected, the initial treatment strategy also depends on the clinical presentation. If classic symptoms—heartburn and regurgitation—are present and there are no alarming signs, an 8-week trial course of a proton pump inhibitor once daily before meals is recommended. If there is no response or symptoms return after discontinuation, endoscopy and further functional testing are considered. [19]

Suspected gastroparesis requires a different approach. Diagnosis requires delayed gastric emptying in the absence of mechanical obstruction, and the 4-hour gastric emptying study remains the preferred method. The American Gastroenterological Association specifically recommends against using the 2-hour shortened test instead of the 4-hour one because it produces too many false positives. [20]

Post-treatment testing is especially important for Helicobacter pylori. The American College of Gastroenterology emphasizes that confirmation of eradication is necessary for all treated patients. This can be accomplished using a urea breath test, a stool antigen test, or, if indicated, a biopsy. Testing should be performed no earlier than 4 weeks after antibiotics and after discontinuing proton pump inhibitors for at least 2 weeks. Serology should not be used to confirm cure. [21]

Below is a table of the diagnostic pathway that best aligns with current evidence-based practice. [22]

Clinical situation The first reasonable step What might be needed next?
Under 60 years of age, without warning signs noninvasive test for Helicobacter pylori treatment for infection or a trial course of a proton pump inhibitor
60 years and older with new dyspepsia upper endoscopy biopsies and further tactics based on findings
Typical heartburn and regurgitation without alarming signs 8 weeks of proton pump inhibitor before meals endoscopy in case of ineffectiveness or relapse
Early satiety, nausea, vomiting exclusion of mechanical obstruction 4-hour gastric emptying study
Suspected biliary pathology ultrasound examination of the abdomen surgical tactics based on results
Suspicion of pancreatitis clinic and lipase severity assessment and hospital routing

Another table shows which methods are suitable for confirming Helicobacter pylori infection after treatment. This is an important practical point that is often performed incorrectly. [23]

Method Is it suitable for confirmation of cure? Comment
Urea breath test Yes one of the standard methods
Stool antigen test Yes suitable for both primary diagnostics and control
Biopsy test during endoscopy yes, according to the indications appropriate if endoscopy is still needed
Serological blood test No antibodies may remain after recovery
Checking too early No a break is needed after antibiotics and proton pump inhibitors

Treatment

Treatment for stomach pain should be causal, not just symptomatic. This means the goal is not simply to temporarily relieve the burning sensation or heaviness, but to understand the underlying cause. For functional dyspepsia, Helicobacter pylori infection, gastroesophageal reflux disease, gastroparesis, and biliary pain, the basic treatment logic varies so greatly that there is no universal "best stomach medicine."[24]

If Helicobacter pylori infection is detected, it is treated not with any "triple regimens from memory," but according to current guidelines. In 2024, the American College of Gastroenterology recommended optimized bismuth-containing quadruple therapy for 14 days as the preferred empirical option in previously untreated patients, and clarithromycin-containing regimens should not be used empirically without confirmed susceptibility. Eradication is always verified after treatment. [25]

For functional dyspepsia, treatment is more multifaceted. British guidelines emphasize the need for Helicobacter pylori testing in all symptomatic patients, regular aerobic physical activity, and acid-suppressive therapy for those with unconfirmed infection or persistent symptoms after eradication. In refractory patients, gut-mediated neuromodulators, primarily low-dose tricyclic antidepressants, as well as behavioral interventions are considered. [26]

For gastroesophageal reflux disease, treatment depends on the symptom phenotype. For classic heartburn and regurgitation without warning signs, the standard treatment remains an 8-week course of a proton pump inhibitor once daily before meals. Additionally, weight loss is recommended if you are overweight, avoiding late dinners 2-3 hours before bedtime, and elevating the head of the bed if you experience nocturnal symptoms. These measures do not replace medication, but they improve symptom control in some patients. [27]

For gastroparesis, the approach is fundamentally different. Here, smaller portion sizes, reduced fat and fiber in the diet, avoiding dehydration, and medications that affect motility are paramount. The 2025 American Gastroenterological Association guidelines allow metoclopramide and erythromycin as initial drug options, but emphasize that most decisions require collaborative discussion with the patient because the evidence base is limited and some interventions are not routinely recommended. [28]

If the pain is caused not by the stomach, but by the gallbladder or pancreas, treatment goes beyond the usual treatment for dyspepsia. In acute calculous cholecystitis, early laparoscopic cholecystectomy is preferred, while in acute biliary pancreatitis, surgery is usually necessary to prevent recurrence. In acute pancreatitis, early recognition, assessment of severity, nutrition, and monitoring of complications are important, rather than empirical "stomach" medications. [29]

Below is a treatment table based on the main causes. It specifically shows why the same complaint can lead to different tactics. [30]

Cause First-line treatment What is important to remember
Helicobacter pylori bismuth-containing quadruple therapy for 14 days After treatment, eradication must be confirmed.
Functional dyspepsia Helicobacter pylori test and treatment, then acid suppression, physical activity In case of refractoriness, neuromodulators and behavioral methods are possible
Gastroesophageal reflux disease proton pump inhibitor 8 weeks before meals if there is a response, they try to stop the drug
Gastroparesis small-portion diet, fluid replacement, prokinetics as indicated the diagnosis requires a 4-hour test
Peptic ulcer disease treatment of the cause, acid suppression, withdrawal of damaging drugs In case of bleeding, emergency tactics are used.
Acute cholecystitis surgical evaluation and early surgery when indicated Ultrasound examination is the first method
Acute pancreatitis assessment of severity, supportive treatment, nutrition according to modern schemes requires urgent clinical assessment

And one more table - about medications and the most common mistakes. [31]

Situation What is really appropriate A common mistake
Suspected Helicobacter pylori first testing, then treatment according to the plan take antibiotics at random
Typical heartburn trial course of proton pump inhibitor endlessly changing antacids without assessing the effect
Functional dyspepsia a step-by-step approach rather than endless examinations consider a normal endoscopy as proof that there is no problem
Pain associated with nonsteroidal anti-inflammatory drugs review the drug and mucosal protection continue pain medication without correction
Early satiety and vomiting think about gastroparesis and check motor skills treat as normal gastritis
Pain with bleeding or severe vomiting emergency in-person care self-medication at home

Prevention and prognosis

Preventing stomach pain begins not with a "cure-all diet," but with a targeted understanding of risk factors. For functional dyspepsia, smoking cessation, regular physical activity, and a reduction in overly restrictive or chaotic eating habits are beneficial. British guidelines emphasize that specific, proven diets for functional dyspepsia are few, but there are reasons to recommend aerobic physical activity and avoid excessive dietary restrictions without a clear reason. [32]

For gastroesophageal reflux disease, weight management, avoiding late dinners, and elevating the head of the bed during nighttime symptoms are important. These measures do not always completely replace drug therapy, but they help reduce the frequency and severity of symptoms. Weight loss is particularly effective in overweight individuals. [33]

For peptic ulcer disease and drug-induced mucosal injury, caution with nonsteroidal anti-inflammatory drugs and detection of Helicobacter pylori are critical. If such drugs are necessary, the physician should assess the risk of gastrointestinal complications in advance and, if necessary, use gastroprotective measures. If an ulcer has already developed while taking nonsteroidal anti-inflammatory drugs, it is preferable to discontinue them, and if this is not possible, treat the ulcer with a proton pump inhibitor. [34]

The prognosis depends on the cause of the pain. In functional dyspepsia and gastroesophageal reflux disease, the condition is often well controlled, although symptoms recur in some patients. In Helicobacter pylori, the prognosis is usually favorable if the infection is promptly identified, treated, and eradication is confirmed. In gastroparesis, the course is more variable and requires individualized management. In pancreatitis and acute cholecystitis, the outcome is largely determined by the speed of correct recognition. [35]

The most practical conclusion is this: if epigastric pain subsides with a properly chosen stepwise approach and is not accompanied by alarming signs, the prognosis is usually favorable. However, if symptoms rapidly worsen, with bleeding, vomiting, weight loss, dysphagia, severe weakness, or pain radiating to the back, the approach should be changed immediately. In gastroenterology, a good prognosis often begins with properly triaging symptoms at the very beginning. [36]

Below is a table of preventative measures that make the most practical sense. [37]

What helps? For which scenarios is this especially important?
Quitting smoking functional dyspepsia, gastroesophageal reflux disease, peptic ulcer
Regular aerobic activity functional dyspepsia
Weight control gastroesophageal reflux disease
Avoiding late dinners gastroesophageal reflux disease
Caution with nonsteroidal anti-inflammatory drugs ulcers and erosions
Detection and treatment of Helicobacter pylori dyspepsia, peptic ulcer, prevention of complications
Don't delay an in-person assessment if there are any red flags. bleeding, tumor risk, pancreatitis, cholecystitis

Frequently asked questions

Can "stomach pain" be unrelated to the stomach itself?
Yes. Epigastric pain is often mimicked by gastroesophageal reflux disease, biliary pain, acute pancreatitis, and some other conditions. Therefore, localization alone does not confirm a gastric origin of the symptom.

Should everyone have an endoscopy?
No. In patients under 60 years of age without warning signs, standard care typically begins with noninvasive testing for Helicobacter pylori and/or a trial course of a proton pump inhibitor. For those 60 years and older, endoscopy is recommended more frequently, and in younger patients, the decision is individualized based on risk. [38]

If a Helicobacter pylori test is positive and symptoms resolve after treatment, is testing still necessary?
Yes. Current guidelines require confirmation of eradication in all treated patients, as subjective improvement does not guarantee the disappearance of the infection. [39]

Does a proton pump inhibitor help with all stomach pain?
No. It can be very useful for acid-related conditions, but it does not treat biliary pain or acute pancreatitis, and it is not a substitute for Helicobacter pylori eradication. In gastroparesis, the primary problem is not acid at all, but gastric motility. [40]

What's more important when suspecting gastroparesis—symptoms or testing?
Both. Symptoms suggest the direction of investigation, but diagnosis requires confirmed delayed gastric emptying in the absence of mechanical obstruction, and a 4-hour test remains preferred. [41]

When is pain no longer considered "regular gastritis"?
When black stools, hematemesis, progressive dysphagia, weight loss, anemia, repeated vomiting, severe back pain, or a marked deterioration in general condition occur. These symptoms require an in-person assessment without delay. [42]

Key points from experts

William D. Chey, MD, H. Marvin Pollard Professor of Gastroenterology, Professor of Internal Medicine and Nutrition, Chief of the Division of Gastroenterology at the University of Michigan, and President of the American College of Gastroenterology. His practical thesis for stomach pain is that Helicobacter pylori infection should not only be treated with modern regimens that take antibiotic resistance into account but also with mandatory confirmation of cure after therapy. This changes the old practice of often stopping treatment without checking the outcome. [43]

Paul Moayyedi, MD, PhD, MPH, professor of medicine at McMaster University, director of the Farncombe Family Digestive Health Research Institute, and co-chair of the joint dyspepsia guideline, recommends a stepwise approach to managing dyspepsia: in patients under 60 years of age without warning signs, first implement a strategy of testing for Helicobacter pylori and treating if positive, rather than sending everyone for endoscopy. [44]

Philip O. Katz, MD, professor of medicine at Weill Cornell Medicine, specializes in esophageal diseases and motility disorders, and is one of the authors of the American College of Gastroenterology's guidelines for gastroesophageal reflux disease. His practical advice for patients with "stomach burning" and heartburn is this: for typical heartburn and regurgitation without warning signs, it's reasonable to start with an 8-week course of a proton pump inhibitor before meals rather than a chaotic series of drugs and tests. [45]

Kyle Staller, MD, MPH, associate professor of medicine at Harvard Medical School, a gastroenterologist at Massachusetts General Hospital, and the first author of the American Gastroenterological Association guidelines on gastroparesis. His key thesis is that the diagnosis of gastroparesis should be based on a 4-hour gastric emptying study, because shortened 2-hour tests are too inaccurate and can lead the clinician astray. [46]

Henry P. Parkman, MD, professor of medicine, vice chair for research, and director of the Gastrointestinal Motility Laboratory at the Lewis Katz School of Medicine at Temple University, is one of the leading authors of the current gastroparesis guidelines. His clinical thesis is particularly important for patients with early satiety, nausea, and vomiting: gastroparesis is not "severe gastritis" but a motor disorder requiring documented delayed gastric emptying and a distinct treatment strategy. [47]

Scott Tenner, MD, MPH, author of the American College of Gastroenterology's guideline on acute pancreatitis, is a practical one: severe epigastric pain radiating to the back and vomiting should shift the physician's thinking from dyspepsia to acute pancreatitis, because early management in such cases determines the risk of complications. [48]