Ulcer. A likely cause of stomach pain after eating is an ulcer. An ulcer is a deep, open sore in the stomach or intestines. The reason for stomach pain may be food or stomach acid that irritates the ulcer.