Stomach cramps to put gas out can be treated with general treatment, medication, and treatment for the original disease. 1. General treatment: The main thing is to eat less and more frequent meals, and introduce fluid, semi-liquid, easy-to-digest diets, such as rice porridge and rice paste. To reduce the intake of high-fat, high-protein food. At the same time, hot compresses can be applied to the abdomen to promote exhaustion. 2. Symptomatic treatment: gastric stimulant drugs, such as metoclopramide and pepsin, can be taken to promote gastric discharge and digestion, which can effectively relieve the symptoms. 3. Corresponding treatment: For example, if stomach cramps are caused by gastric ulcer, you can take treatment measures against gastric ulcer, use omeprazole to inhibit gastric acid secretion and protect gastrointestinal mucosa, and bismuth potassium citrate capsule to protect gastric mucosa. There are other causes of stomach cramps, it is recommended to consult a doctor in time to find out the cause and treat the cause in order to achieve good results.