Treatment of stomachache depends on its cause.
If it's caused by overeating or indigestion, taking antacids can help neutralize excess stomach acid and relieve pain. For example, calcium - carbonate - based antacids are quite effective.
When the pain is due to gastritis, in addition to antacids, medications that protect the gastric mucosa, such as sucralfate, can be used. It forms a protective layer over the damaged mucosa.
If Helicobacter pylori infection is the culprit, a combination of antibiotics and proton - pump inhibitors is needed. The antibiotics kill the bacteria, and the proton - pump inhibitors reduce stomach acid production.
Stress - related stomachaches can be alleviated by relaxation techniques. Also, maintaining a healthy diet with regular meals and avoiding spicy, fatty, and overly acidic foods is beneficial for overall stomach health and pain relief.