When you have gas in your stomach pain and can’t poop, it may be caused by constipation, intestinal dysfunction, intestinal obstruction and other diseases, and it is recommended that you seek medical attention in time for active treatment. 1. Constipation: In daily diet, excessive consumption of spicy and stimulating food may lead to gastric mucous membrane damage, slowing down of gastrointestinal peristalsis, and accumulation of food in the intestinal tract, which can not be discharged in a timely manner, thus resulting in a stomach ache with gas in the inside, and the phenomenon of not being able to get out of the stool. You can use drugs such as domperidone and keserol to treat it. 2. Intestinal dysfunction: it is usually caused by many factors such as long time work pressure and improper diet. Its clinical symptoms are mostly manifested as abdominal distension, constipation and so on. It can be treated with drugs to promote gastrointestinal function, such as trimethoprim maleate and mosapride tablets. 3. Intestinal obstruction: usually due to parasitic infection, trauma, intestinal wall lesions and other factors, resulting in intestinal contents in the intestinal tract through the obstruction, the gas can not be eliminated out of the body, thus appearing in the stomach with gas, defecation difficulties. It can be treated with enema, gastrointestinal decompression, fasting, and surgery if necessary. Tummy pain gas inside, when the stool can not be pulled out, may also be associated with improper diet and other factors, it is recommended that the patient timely medical examination, clear cause of the disease, the cause of the treatment, the doctor under the guidance of the use of medication, avoid self-medication, and mislead the condition.