Your stomach may hurt when you wake up in the morning due to indigestion, IBS, IBD, constipation, acid reflux, GERD, a food allergy, pancreatitis, a peptic ulcer, period pain, gastritis, diverticulitis, or gallstones. Speak to a doctor if the pain doesn't go away or if it was severe enough to wake you up from sleep.