There are five reasons your stomach may hurt. The first is irritable bowel syndrome (IBS). IBS is triggered by eating or by stress and causes constipation and bloating. Constipation may cause your stomach to hurt. This is a feeling of bloatedness. Ulcers may cause stomach pain. They are sores on the stomach. Pancreatitis and diverticulitis may also cause stomach pain.