Stomach pain when you wake up can happen for several reasons, especially if the pain is in the upper abdomen. Common causes include indigestion, acid reflux, peptic ulcers, constipation, trapped gas, or irritable bowel syndrome. Pain from ulcers may feel burning or gnawing and can happen when the stomach is empty or during the night.
Reflux can be worse after lying down, because stomach acid can move upward more easily. This may lead to burning discomfort, nausea, bloating, or upper abdominal pain when waking. Some people with functional dyspepsia may also feel upper belly pain, fullness, or burning without a clear structural problem.
Morning pain can also be related to bowel patterns, diet, stress, or IBS, especially if it comes with bloating, gas, diarrhea, or constipation. Keeping track of when the pain happens, what you ate the night before, and whether bowel movements improve it may help clarify the pattern.
Seek medical care if the pain is severe, persistent, sudden, or comes with vomiting blood, black stools, weight loss, trouble swallowing, repeated vomiting, fever, dizziness, or chest pain. Avoid self-medicating with pain relievers, especially NSAIDs, and consider seeing a gastroenterologist if symptoms keep returning.