Stomach pain when hungry belongs to a relatively common phenomenon, which is caused by the secretion of gastric acid, but it is not excluded that there is an underlying stomach disease. There is no food in the stomach when people are hungry, and the lack of food barrier will make the stomach acid directly stimulate the gastric mucosa, resulting in patients with gastroparesis. Gastric acid is an acid that directly irritates the gastric mucosa and causes burning sensation in the upper gastrointestinal tract, heartburn, nausea and vomiting. In addition, duodenal ulcer is a typical manifestation of hunger pain, in hunger stomach acid can directly stimulate the duodenal ulcer, resulting in abdominal pain. Therefore, stomach pain during hunger should be alert to the possibility of duodenal ulcers and other peptic ulcers. This symptom can be relieved by timely eating at this time, such as bread, baking soda crackers and so on. If the situation is more serious, you can also use omeprazole capsules, lansoprazole capsules, rabeprazole sodium capsules or esomeprazole and other drugs under the guidance of the doctor for treatment. In addition, regular meals should be taken in daily life to avoid irregular secretion of gastric acid in the stomach for a long time. In addition, if the patient has weak gastrointestinal function, gastroenteritis or gastric ulcer, stomach pain and nausea may also occur when the patient is hungry. In this case, it is recommended that the patient undergoes gastroscopy in the hospital as soon as possible to clarify the cause of the disease and then under the guidance of the doctor to carry out systematic treatment.