Why do I wake up with acid reflux or stomach pain?
Stop eating 3 or 4 hours before bed. The NHS gives that tip for reflux and for stomach ulcers. But tummy pain lasting over 30 minutes needs an urgent GP appointment or 111.
On this page

Why do I wake up with acid reflux?
Lying down is part of it. The NHS says reflux is often worse after eating, when lying down and when bending over.
Reflux is stomach acid travelling up towards your throat. It brings a burning feeling in the middle of your chest, called heartburn, and a sour taste in your mouth.
So a late meal, then straight to bed, stacks the odds against you. One Japanese study asked 147 people with reflux disease and 294 people without it how soon they went to bed after dinner.
| Time from finishing dinner to bed | Odds of reflux disease |
|---|---|
| 4 hours or more | The comparison group |
| Less than 3 hours | 7.45 times higher |
Source: Fujiwara 2005
That was one study, and it shows a link, not proof. But it matches the NHS advice: don’t eat within 3 or 4 hours before bed. Tonight, finish your last meal by then.
Why does stomach pain wake me up at night?
Reflux is one cause, but not the only one. The NHS says the pain of a stomach ulcer, a sore in your stomach, is often worse at night.
Ulcers are mainly caused by a germ called H pylori, or by regular use of painkillers like ibuprofen. Gallstones, small stones in your gallbladder (a small pouch under your right ribs), can also cause bad tummy pain.
| Possible cause | What the NHS says the pain is like | Next step |
|---|---|---|
| Acid reflux | Burning in the middle of your chest, with a sour taste. Often worse lying down. | Try the bedtime changes below. Ask a pharmacist if it keeps happening. |
| Stomach ulcer | Usually in the upper tummy. May burn. Often worse at night. | See a GP if the pain keeps coming back. |
| Gallstones | May be severe and constant, in the middle of your tummy or under your right ribs. | Lasts over 30 minutes? Get an urgent GP appointment or call 111. |
Sources: NHS: reflux; NHS: stomach ulcer; NHS: gallstones
That 30-minute line is the one to watch. On its gallstones page, the NHS says tummy pain lasting longer than 30 minutes needs an urgent GP appointment or 111.
The NHS also says don’t self-diagnose. If the pain keeps coming back, book a GP.
How do I stop acid reflux at night?
Start with the habits the NHS lists. NICE, which guides doctors, says raising the head of the bed and eating your main meal well before bed may help some people.
Six changes for night-time reflux
- Don’t eat within 3 or 4 hours before bed.
- Raise the head of your bed by around 10 to 20cm with wood, bricks or books.
- Eat smaller, more frequent meals.
- Skip food or drink that triggers you. The NHS names coffee, tomatoes, alcohol, chocolate, and fatty or spicy food.
- Don’t wear clothes that are tight around your waist.
- Stop smoking, and try to lose weight if you’re overweight.
Source: NHS: heartburn and acid reflux
Don’t pile up extra pillows instead of raising the bed. The NHS says pillows can increase pressure on your belly and make it worse.
Think coffee is your trigger? Read coffee and acid reflux. For small bedtime bites, see healthy late night snacks.
Which side should I sleep on with acid reflux?
Your left, going by one small study. It tracked how 57 people sent for reflux tests lay during the night.
Source: Schuitenmaker 2022
The left side also had the least time with acid in the food pipe. These were people already having reflux checked, so it may not hold for everyone.
It costs nothing to try tonight. For back and neck comfort too, see the best side to sleep on.
What can I take for acid reflux at night?
Keep getting heartburn? The NHS says to speak to a pharmacist first.
From pharmacy to GP: the usual steps for reflux
- 1
Pharmacist
May suggest antacids or alginates, medicines that ease the burning for a short time. Best taken with food or soon after eating.
- 2
GP
May prescribe a PPI, like omeprazole, to cut stomach acid. Usually for 4 or 8 weeks.
- 3
If that fails
Your GP may suggest famotidine, a different type of acid medicine.
- 4
Specialist
If medicines don’t help or symptoms are severe, tests may include a camera down the throat (gastroscopy).
Source: NHS: heartburn and acid reflux
Antacids and alginates ease symptoms but won’t cure the problem. Don’t take them regularly for long periods. If symptoms return after you stop a PPI, go back to your GP.
Painkillers like ibuprofen can make heartburn worse, and regular use can cause ulcers. Never stop or change a prescribed medicine without your prescriber.
Thinking of a herbal remedy? See what the evidence says on slippery elm for reflux.
When to speak to a GP
Lots of people get heartburn from time to time. The NHS says to see a GP if:
- You have heartburn most days, or lifestyle changes and pharmacy medicines aren’t helping.
- Food gets stuck in your throat, you’re often sick, or you’re losing weight for no reason.
- Your tummy pain keeps coming back, or indigestion doesn’t go away with treatment.
- Get an urgent GP appointment or call 111 if tummy pain lasts over 30 minutes or your symptoms get worse. Do the same if the pain comes with no appetite, feeling full after very little food, losing weight without trying, pain or trouble swallowing, being sick a lot, a lump in your tummy or feeling tired all the time.
- Call 999 or go to A&E if you vomit blood or something like ground coffee, or your poo is black and sticky or bloody. Also for sudden severe tummy pain, a tummy that hurts to touch, sudden chest pain, pain spreading to your back while being sick, a very high temperature or feeling hot, cold or shivery, or yellow skin or eyes.
Call 999 if chest pain feels tight or squeezing, or spreads to your arms, neck or jaw. A heart attack can feel like indigestion, with a burning feeling in your chest.