Free patient helpline · +91 77400 33771 · Mon to Sun, 8 AM to 10 PMList your hospital or practiceHow listings are built
HealthFinder, complementing life

How to stop stomach pain at night

Why stomach pain worsens at night, the six common causes, what to do tonight, the signs that need a hospital now, and the changes that stop it returning.

SourcesFAQsFind a hospital
A dimly lit bedroom at night with a glass of water and a strip of antacid tablets on the bedside table
On this page
  1. Why does stomach pain get worse at night?
  2. What are the common causes of stomach pain at night?
  3. What can you do tonight to ease the pain?
  4. Which night-time stomach pains need a hospital now?
  5. What should you change so the pain stops coming back?
  6. Which tests and which doctor will find the cause?
  7. FAQs
  8. Sources

Stomach pain at night usually comes from acid reflux, gastritis, a peptic ulcer, gallstones, IBS or constipation, and lying down after a late meal makes most of them worse. Tonight, sit up, take an antacid, drink water and avoid ibuprofen; for the long term, finish dinner 3 to 4 hours before bed and raise the head of the bed. Sudden severe pain, chest pain, vomiting blood or pain moving to the lower right side needs a hospital now.

Why does stomach pain get worse at night?

Stomach pain gets worse at night because lying flat lets acid rise, a late or heavy dinner is still being digested, and an empty stomach after midnight exposes an ulcer. The NHS says heartburn and acid reflux symptoms often get worse after eating, lying down or bending over, so a meal followed by bed is the worst sequence for reflux. For a stomach ulcer, the NHS says the pain may feel like burning and "is often worse at night". Gallbladder attacks follow the same clock: the US National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) says they commonly follow large meals and happen in the evening or at night.

![Outline of the abdomen showing where each cause of night pain is felt: centre of the chest for reflux, upper middle for gastritis and ulcer, under the right ribs for gallstones, lower abdomen for IBS and constipation](/media/guides/how-to-stop-stomach-pain-at-night/fig1.webp "Where the pain sits is the first clue to its cause.")
The position of the pain is the first clue. The NHS stomach ache page matches patterns to causes: heartburn with fullness after eating points to indigestion; cramps with bloating, diarrhoea or constipation point to irritable bowel syndrome (IBS); severe pain lasting hours in the centre of the tummy or under the right ribs points to gallstones; sudden pain in the lower right side points to appendicitis. Most stomach aches, the NHS says, are not serious and settle in a few days. The rest of this guide covers the six common causes, what to do tonight, the signs that mean hospital now, and the changes that stop it returning.

What are the common causes of stomach pain at night?

Six conditions explain most night-time stomach pain: acid reflux, gastritis, a peptic ulcer, gallstones, IBS and constipation.

CauseWhat it feels likeClue that points to it (source)
Acid refluxBurning in the middle of the chest, sour taste, cough or hoarsenessWorse after eating, lying down or bending (NHS)
GastritisUpper abdominal pain, indigestion, bloating, nauseaLinked to H. pylori, ibuprofen or aspirin, heavy alcohol (NHS)
Peptic ulcerBurning pain in the upper tummyOften worse at night; NHS lists H. pylori and anti-inflammatory painkillers as main causes
GallstonesSevere constant pain in the centre of the tummy or under the right ribsLasts over 30 minutes, up to several hours, with nausea (NHS); evening or night after a large meal (NIDDK)
IBSCramps with bloating, diarrhoea or constipationWorse after eating, better after passing stool (NHS)
ConstipationStomach ache, bloating, feeling sickFewer than 3 stools in the last week, or hard, lumpy stool (NHS)

Reflux is common in India. A 2016 community study in BMC Gastroenterology, run in Trivandrum district, Kerala, found reflux disease in 22.2 percent of 1,072 adults, with higher odds in urban residents, people with a BMI of 30 or more, and pan masala chewers, who had twice the odds of the rest.

Gastritis and ulcers share causes. The NHS lists Helicobacter pylori infection, anti-inflammatory painkillers, heavy alcohol and severe stress for gastritis, says untreated gastritis can turn into an ulcer, and says an untreated ulcer can bleed, cause anaemia or perforate. Night pain that returns week after week needs a test, not another antacid.

What can you do tonight to ease the pain?

Sit up, take an antacid or alginate, drink water, and stop any ibuprofen or aspirin; those four steps cover the common causes safely until morning. The NHS says reflux symptoms get worse lying down, and that antacids and alginates ease symptoms in the short term when taken with food or soon after eating. Pharmacies in India sell both over the counter.

  • For reflux or gastritis pain: sit propped up, take an antacid or alginate, and do not lie flat again for 3 to 4 hours after eating, the NHS interval.
  • For cramps and wind: the NHS IBS page lists hyoscine butylbromide (Buscopan) and peppermint oil as pharmacy options for bloating, cramps and wind.
  • For constipation: the NHS says most laxatives from a pharmacist work within 3 days and are for short-term use; drink plenty of fluid and keep walking during the day.
  • For pain under the right ribs that has lasted more than 30 minutes: the NHS says to contact urgent care, because gallstone pain of that length needs an assessment, not home treatment.
  • Do not take ibuprofen or aspirin for the pain. The NHS lists both as causes of gastritis and names anti-inflammatory painkillers as a main cause of ulcers; paracetamol is the alternative the NHS gallstones page suggests.

Antacids are a stopgap. The NHS says they do not cure the problem and should not be used regularly for long periods. If the same pain wakes you several nights running, the next step is a doctor.

Which night-time stomach pains need a hospital now?

A few patterns of night pain are emergencies, and the two most dangerous are appendicitis and a heart attack that feels like indigestion. The NHS stomach ache page lists the signs that mean an ambulance.

Go to the nearest emergency department, or call 112 for an ambulance, if the pain came on very suddenly or is severe, if it hurts to touch your tummy, if you vomit blood or material like ground coffee, if your stool is bloody or black and sticky, if you cannot pass urine, stool or wind, if you have chest pain or cannot breathe, or if you have diabetes and are vomiting.

Appendicitis has a specific course. The NHS says it usually starts with pain around the navel that later moves to the lower right side and gets worse; moving, coughing or pressing makes it hurt more, and nausea, loss of appetite and a high temperature often come with it. Pain that settles in the lower right and keeps worsening needs an assessment the same night.

A heart attack can start as what feels like indigestion. The NHS says the chest pain may feel like crushing or squeezing, may spread to the arm, neck or jaw, and may come with a burning chest, bloating, sweating, breathlessness or nausea. Tight or spreading chest pain is a 112 call, not an antacid.

For gallstones, the NHS lists sudden severe pain, pain spreading to the back with vomiting, a very high temperature, and yellow skin or eyes as reasons to go to hospital at once.

What should you change so the pain stops coming back?

Finish dinner 3 to 4 hours before bed, raise the head of the bed, eat smaller meals, and cut your triggers; these changes work for reflux, gastritis and IBS, which cause most repeat night pain. The NHS says not to eat within 3 or 4 hours of bed and to raise the head of the bed by around 10 to 20 cm with blocks, not extra pillows, which press on the belly and make reflux worse.

![Side view of a bed with the head end raised on blocks, a person lying with the upper body on a gentle slope, and a crossed-out stack of pillows](/media/guides/how-to-stop-stomach-pain-at-night/fig2.webp "Raise the head end of the bed by 10 to 20 cm on blocks; extra pillows press on the belly and make reflux worse.")
The NHS lists the common triggers, and the Kerala study adds one Indian habit:

  • Coffee, tea, cola and energy drinks; the NHS IBS page caps caffeinated drinks at 3 cups a day.
  • Alcohol, smoking and, in the Kerala study, pan masala chewing.
  • Fatty, fried, spicy, acidic and fizzy foods, chocolate and tomatoes.
  • Large meals; the NHS advises smaller, more frequent ones.
  • Excess weight; the Kerala study found the odds of reflux rose with BMI.
  • Stress, which the NHS lists as a trigger for reflux and IBS flares.

For IBS and constipation the NHS adds regular meals, around 1.5 litres of fluid a day, oats and linseeds for soluble fibre, less cabbage, cauliflower, beans and onions if bloating is the problem, and a daily walk. A two-week food diary shows which of these matters for you, and a dietician can turn it into a plan that fits an Indian kitchen.

Which tests and which doctor will find the cause?

A general physician can treat most reflux and constipation, but pain that keeps returning, pain under the right ribs, or any red flag needs a gastroenterologist and one or two tests. The NHS says to see a doctor for heartburn most days, food sticking in the throat, frequent vomiting, unexplained weight loss, or IBS symptoms lasting more than 4 weeks.

The tests follow the suspected cause:

  • Gastritis and ulcers: the NHS says a doctor may order a breath, stool or blood test for H. pylori, and a gastroscopy, a thin camera passed through the mouth, if symptoms persist. In India this is billed as an upper GI endoscopy; see endoscopy cost for prices near you.
  • Gallstones: the NHS says the usual tests are an ultrasound scan and a blood test. An abdominal ultrasound is painless and available in most district hospitals.
  • Reflux that does not settle: the NHS says a doctor may prescribe a proton pump inhibitor such as omeprazole for 4 or 8 weeks, with a gastroscopy and bacteria test if that fails.

Treatment is short once the cause is found. The NHS says ulcer treatment, antibiotics for H. pylori plus an acid-reducing medicine, usually lasts 1 week to 2 months. Gallstones that cause attacks are treated by removing the gallbladder. A government hospital's medicine OPD orders these tests at little or no cost, and a listed Ayushman Bharat hospital covers the surgery for cardholders. This guide is general information from the sources listed below, not medical advice; a registered doctor makes decisions with you.

FAQs

Why does my stomach hurt only at night?

Lying flat lets stomach acid rise, a late dinner is still being digested, and an empty stomach after midnight exposes an ulcer. The NHS says reflux is worse after eating and lying down and that ulcer pain is often worse at night, and NIDDK says gallbladder attacks commonly happen in the evening or at night after a large meal.

What is the fastest way to stop stomach pain at night?

Sit propped up, take an antacid or alginate from the pharmacy, and avoid ibuprofen or aspirin. The NHS says reflux is worse lying down and that antacids and alginates ease symptoms in the short term. For cramps and wind, peppermint oil or Buscopan are the NHS pharmacy options.

Is stomach pain at night a sign of an ulcer?

It can be. The NHS says the main symptom of a stomach ulcer is tummy pain that may feel like burning and is often worse at night, with indigestion, heartburn and bloating. The main causes are H. pylori infection and regular anti-inflammatory painkillers, and a breath or stool test with a gastroscopy confirms it.

Can sleeping position stop acid reflux at night?

Yes. The NHS advises raising the head of the bed by around 10 to 20 cm using blocks under the legs and warns against extra pillows, which press on the belly and make symptoms worse. Finishing dinner 3 to 4 hours before bed matters as much as the position.

When is stomach pain at night an emergency?

When it came on suddenly or is severe, hurts to touch, comes with vomiting blood or black stools, chest pain or breathlessness, or you cannot pass urine, stool or wind. The NHS lists these as reasons to call an ambulance; in India call 112. Pain moving to the lower right side that keeps worsening suggests appendicitis.

Which doctor should I see for stomach pain at night?

A general physician first, for pain that is new or clearly linked to food. A gastroenterologist for pain that keeps returning, pain under the right ribs, heartburn most days, trouble swallowing or weight loss. The NHS says to see a doctor if IBS-type symptoms last more than 4 weeks.

Does gas cause stomach pain at night?

Trapped wind is the first cause on the NHS list for bloating and a lot of wind, and IBS causes cramps that are worse after eating and better after passing stool. The NHS suggests eating regular meals slowly, avoiding fizzy drinks, and limiting cabbage, cauliflower, beans and onions if bloating is the problem.

Sources

  1. NHS: Stomach ache, Pattern-to-cause list (indigestion, constipation, IBS, gallstones, appendicitis, kidney stones), when to see a GP, and the full list of signs for calling an ambulance or going to A&E. (accessed 21 October 2026)
  2. NHS: Heartburn and acid reflux, Symptoms worse after eating or lying down, triggers, not eating within 3 or 4 hours of bed, raising the head of the bed 10 to 20 cm and not using extra pillows, antacids and alginates, PPI for 4 or 8 weeks, gastroscopy and bacteria test if PPI fails. (accessed 21 October 2026)
  3. NHS: Gastritis, Symptoms, causes (H. pylori, anti-inflammatory painkillers, heavy alcohol, severe stress), breath/stool/blood tests, gastroscopy, caffeine and food advice, untreated gastritis can lead to an ulcer, emergency signs. (accessed 21 October 2026)
  4. NHS: Stomach ulcer, Burning tummy pain often worse at night, H. pylori and anti-inflammatory painkillers as main causes, gastroscopy, antibiotics plus proton pump inhibitors for 1 week to 2 months, bleeding, anaemia and perforation, emergency signs. (accessed 21 October 2026)
  5. NHS: Gallstones, Pain in the centre of the tummy or under the right ribs lasting over 30 minutes up to several hours, ultrasound and blood test, paracetamol and ibuprofen and low-fat diet while waiting, cholecystectomy, urgent signs including jaundice and fever. (accessed 21 October 2026)
  6. NIDDK: Symptoms and Causes of Gallstones, Gallbladder attacks usually cause upper right abdominal pain lasting several hours, commonly follow large meals and happen in the evening or at night, signs needing immediate care. (accessed 21 October 2026)
  7. NHS: Irritable bowel syndrome (IBS) - Symptoms, Cramps usually worse after eating and better after passing stool, bloating, flare triggers (alcohol, caffeine, spicy or fatty food, stress), see a GP after 4 weeks, urgent red flags. (accessed 21 October 2026)
  8. NHS: Irritable bowel syndrome (IBS) - Diet, lifestyle and medicines, Regular meals, oats and linseeds, 8 to 10 drinks (about 1.5 litres) a day, no more than 3 cups of caffeinated drinks, limit cabbage, cauliflower, beans and onions for bloating, Buscopan, peppermint oil, loperamide and laxatives. (accessed 21 October 2026)
  9. NHS: Constipation, Fewer than 3 stools in the last week or hard lumpy stool, stomach ache and bloating as symptoms, fibre, fluids, toilet routine and daily walk, laxatives work within 3 days for short-term use, when to see a GP. (accessed 21 October 2026)
  10. NHS: Appendicitis, Pain starts around the navel and moves to the lower right side, worse on moving, coughing or pressing, nausea, loss of appetite and high temperature, when to call an ambulance. (accessed 21 October 2026)
  11. NHS: Heart attack - Symptoms, Chest pain like crushing or squeezing, spreading to arm, neck or jaw, can feel like indigestion with a burning feeling, bloating, sweating, breathlessness and nausea; call an ambulance. (accessed 21 October 2026)
  12. Wang H-Y et al. Prevalence of gastro-esophageal reflux disease and its risk factors in a community-based population in southern India. BMC Gastroenterology 2016;16:36 (PMC4791779), GERD prevalence 22.2 percent (238/1072) in Trivandrum district, Kerala; higher odds with urban residence, BMI 30 or more, and pan masala chewing (OR 2.0). (accessed 21 October 2026)

Rules and prices change. Each figure above names the page it was read from and the date. Confirm with the hospital or the scheme authority before relying on it. Directory figures as of 23 October 2026. See how HealthFinder builds its pages. This guide is information, not medical advice.

Compare hospitals and doctors in your city, with scheme status and prices on every listing.

Browse the directory