Skip to main content
General practice·General practice

Inpatient Treatment For Esophagitis And Gastritis

Overview

Esophagitis means inflammation (irritation and swelling) of the esophagus — the food pipe that carries food from your mouth to your stomach. Gastritis means inflammation of the stomach lining. Both can make eating and drinking painful or uncomfortable. Most people are treated at home with medicines and diet changes. 'Inpatient treatment' means you are cared for in hospital for a while. This usually happens when the inflammation is severe, when you cannot keep food or fluids down, when there is bleeding, or when you need fluids, strong medicine, or tests that can only be done safely in hospital.

Key facts

  • Esophagitis affects the food pipe; gastritis affects the stomach lining. They often happen together and can have similar symptoms.
  • Most cases get better at home. A hospital stay is needed only when symptoms are severe or there is a complication such as bleeding or dehydration.
  • In hospital, the main goals are to replace lost fluids, calm the inflammation, treat any infection, check for bleeding, and make sure you get enough nutrition.
  • Tests usually include blood tests and a camera test called an endoscopy, where a thin flexible tube looks inside your food pipe and stomach.
  • With treatment, most people recover well and can go home within a few days.

Yes. Inflammation of the stomach and food pipe is very common — millions of people have it each year, often because of acid reflux or irritation from medicines or infection. Needing to stay in hospital for it is much less common, but it does happen, especially in older adults and people who are already unwell.

Anyone can get esophagitis or gastritis, at any age. It is more often seen in adults, and some groups are more at risk: older adults, people who take certain pain medicines regularly, people who drink a lot of alcohol, people who have severe vomiting or a long illness, people with a weakened immune system, and people with poorly controlled acid reflux.

Symptoms

Call emergency services immediately if you notice:
  • Vomiting blood, or vomiting something that looks like coffee grounds
  • Black, tarry, or very dark stools, especially with dizziness or fainting
  • Sudden severe chest or upper belly pain, or a hard, rigid belly
  • Trouble breathing, or chest pain that spreads to the arm, jaw, or back
  • Signs of shock: cold, clammy, pale skin, fast heartbeat, confusion, or passing out
  • Swelling of the lips, tongue, or throat, or a severe allergic reaction
See a doctor urgently (same day) if you notice:
  • ⚠Not being able to keep any fluids down for more than a day
  • ⚠Signs of dehydration: very little urine, dry mouth, dark urine, feeling faint
  • ⚠Pain that is getting worse despite treatment, or a fever with belly pain
  • ⚠Yellowing of the skin or whites of the eyes
  • ⚠Vomiting that keeps coming back, or new trouble swallowing all food and drinks
  • ⚠Feeling very weak, dizzy, or short of breath

Common symptoms

  • Burning or gnawing pain in the upper belly or behind the breastbone
  • Heartburn or a sour taste in the mouth, worse after eating or lying down
  • Feeling sick, or vomiting
  • Feeling full very quickly, or bloating after small meals
  • Trouble swallowing, or food feeling like it sticks on the way down
  • Loss of appetite and weight loss
  • Pain when swallowing, or a sore, raw feeling in the chest
  • A dry cough, hoarse voice, or bad breath

Symptoms in children

  • Refusing feeds or eating less than usual
  • Frequent spitting up or vomiting
  • Crying or being fussy during or after feeds
  • Tummy aches or drawing the knees up to the chest
  • Poor weight gain or slower growth
  • Irritability and poor sleep

Symptoms in older adults

  • Vague tummy discomfort rather than sharp pain
  • Feeling weak, tired, or generally 'not themselves'
  • Confusion or drowsiness, which can be a sign of dehydration
  • Poor appetite and weight loss
  • Symptoms appearing only when the illness is already quite advanced
  • A higher chance of dehydration and dizziness on standing

Causes

Main causes

  • Stomach acid flowing back up into the food pipe (acid reflux) — the most common cause of esophagitis
  • Infection with a common stomach germ called Helicobacter pylori (a bacteria that can live in the stomach lining)
  • Irritation from regular use of certain anti-inflammatory pain medicines, such as those used for arthritis
  • Drinking a lot of alcohol
  • Long or severe vomiting, or a long period of not eating or drinking
  • Bile flowing back into the stomach after stomach surgery
  • An allergic reaction in the food pipe, which is more common in people with allergies or asthma
  • Severe illness, major surgery, or a weakened immune system
  • Swallowing a harmful substance, or damage from radiation treatment

Risk factors

  • Smoking
  • Heavy or regular alcohol use
  • Being overweight, which increases pressure on the stomach
  • A hiatus hernia (part of the stomach pushing up into the chest)
  • Eating large meals late at night, then lying down
  • Long-term use of certain pain medicines without stomach protection
  • Pregnancy, which can slow digestion and cause reflux
  • Being older, or already being in hospital with another serious illness
  • A weakened immune system

When to see a doctor

See a doctor urgently if:

  • You are vomiting blood, or your stools are black and sticky
  • You cannot keep fluids down for more than 24 hours
  • You have severe or worsening pain in the upper belly or chest
  • You feel faint, very dizzy, or your heart is racing
  • You have a fever with belly pain
  • You cannot swallow your own saliva or liquids

Book a routine appointment if:

  • Heartburn or tummy pain that keeps coming back over weeks
  • Trouble swallowing, or food sticking in your chest
  • Feeling full very quickly, bloating, or losing weight without trying
  • You need to take pain medicines often and get stomach symptoms
  • Symptoms that do not settle after a few weeks of home treatment
Most people with esophagitis or gastritis improve quickly once the cause is found and treated. Having symptoms does not automatically mean something serious. Still, it is worth getting checked if symptoms last more than a few weeks, come back often, or interfere with eating and drinking.

Diagnosis

Your doctor will start by asking about your symptoms, what you eat and drink, your medicines, and your health history. They will examine your tummy. In hospital, because your symptoms are severe enough to need a stay, they will also run blood tests to check for anaemia (low iron), infection, and dehydration, and they may arrange a camera test of your food pipe and stomach. The aim is to find the cause and check for any damage or bleeding.

Tests that may be done

  • Blood tests to check blood counts, iron levels, salt balance, kidney and liver function
  • A stool test to check for hidden blood or infection
  • Breath or stool tests for the Helicobacter pylori stomach germ
  • Endoscopy: a thin, flexible tube with a small camera passed gently through the mouth to look at the food pipe and stomach, often with a tiny tissue sample (biopsy)
  • Fluid balance checks, such as watching how much you drink and pass urine
  • Sometimes a scan, such as an ultrasound or CT scan, if the cause is unclear

What to expect at your appointment

The endoscopy is usually quick, and you will be offered medicine to help you relax or a throat-numbing spray. It is not painful, though you may gag or feel pressure. You will be asked not to eat beforehand. You will stay on a ward for monitoring, with a drip in your arm if you need fluids. Most people are in hospital for a few days while results come back and treatment starts to work.

Treatment

While you are in hospital, the team focuses on four things: replacing fluids and salts you may have lost, calming the inflammation, treating any infection or cause that is found, and watching closely for complications such as bleeding. Treatment is adjusted day by day based on how you feel, what your tests show, and whether you can eat and drink normally again.

Self-care at home

  • Follow the ward team's advice about when to start eating and drinking again — going slowly is safer
  • Eat small meals more often rather than large ones
  • Sit upright for at least an hour after eating and avoid lying down straight away
  • Raise the head of your bed a little if heartburn is worse at night
  • Avoid alcohol and stop smoking — both slow healing
  • Tell staff straight away if pain gets worse, you feel sick, or you notice blood
  • Ask about your regular medicines before taking anything, including medicines you buy yourself
  • Keep taking any medicines prescribed for you exactly as the team advises, even if you feel better

Medical treatments

In hospital, treatment is given in a way that works quickly. This usually means fluids and salts through a drip if you are dehydrated, plus medicines to lower the amount of acid the stomach makes and to protect the stomach lining. If the stomach germ Helicobacter pylori is found, a course of germ-killing medicines is given. Anti-sickness medicines help with vomiting, and pain relief is given if needed. If there is bleeding, it can often be stopped during the camera test, and a blood transfusion may be given if you have lost a lot of blood. Rarely, food is given through a tube if eating is not possible for a while. You will be watched closely, and your treatment will be eased back to tablets you take at home before you leave.

When is surgery considered?

Surgery is rarely needed. It may be considered if bleeding cannot be stopped during the camera test, if there is a hole (perforation) in the food pipe or stomach, or if repeated scarring has made the food pipe very narrow — in that case a procedure to gently stretch it may help. Some people with severe, long-standing reflux may discuss an operation to strengthen the valve at the top of the stomach with their specialist.

Living with this condition

After you go home, recovery usually means taking your medicines as prescribed, eating gently for a while, and giving your stomach and food pipe time to heal. Symptoms often settle within a few weeks, but some people need longer. Keep a simple note of what seems to trigger your symptoms so you can spot patterns.

Lifestyle tips

  • Eat smaller meals and leave a few hours between your last meal and bedtime
  • Cut back on very spicy, very fatty, or very acidic foods if they bother you
  • Limit alcohol, and stop smoking — ask for support if you need it
  • Lose some weight if you are above a healthy weight; even a small loss can help reflux
  • Avoid tight belts and clothing around the waist
  • Manage stress where you can — it does not cause this, but it can make symptoms feel worse
  • Keep a symptom diary to share with your doctor at follow-up

Diet and exercise

There is no single diet that suits everyone. Gentle, regular meals and eating slowly work well for most people. Try not to skip meals, and avoid going to bed hungry or very full. Gentle activity such as walking helps digestion and mood. Wait about an hour after eating before lying down or doing vigorous exercise. If certain foods reliably cause pain, note them down and discuss them with your doctor or a dietitian rather than cutting out lots of foods on your own.

Mental health and emotional wellbeing

Being in hospital, being in pain, and worrying about eating can be stressful, and stress in turn can make stomach symptoms feel worse. This is very common and not a sign of weakness. Tell your team how you are feeling. If you ever have thoughts of harming yourself, contact your local emergency number or a crisis line in your country straight away — you deserve immediate support.

Prevention

Often, yes — at least partly. You cannot control every cause, but keeping a healthy weight, limiting alcohol, not smoking, eating smaller meals, and not lying down soon after eating all reduce the chance of reflux and stomach irritation. If you need anti-inflammatory pain medicines regularly, ask your doctor whether you also need protection for your stomach. If you get heartburn or indigestion often, get it checked and treated early rather than living with it.

Screening programmes

There is no routine screening programme for esophagitis or gastritis. Testing for the Helicobacter pylori stomach germ may be offered if you have ongoing symptoms or a strong family history of stomach problems. If you have long-standing reflux, swallowing difficulty, or weight loss, your doctor may arrange a camera test — this is a check, not a routine screening test.

Complications

If left untreated

  • An ulcer (an open sore) in the stomach or food pipe
  • Bleeding from the stomach or food pipe, which can lead to anaemia (low iron in the blood)
  • Scarring and narrowing of the food pipe, making swallowing difficult
  • Long-term changes in the lining of the food pipe, which slightly raises the risk of cancer over many years — this is uncommon and can be monitored
  • Dehydration and salt imbalance from not keeping fluids down
  • Poor nutrition and weight loss
  • Rarely, a hole in the stomach or food pipe, which is a medical emergency

Long-term outlook

The outlook is good for most people. Once the cause is found and treated, symptoms usually settle within days to a few weeks, and many people stay well with a few changes to diet and lifestyle. Some people need longer-term medicines or follow-up checks, and a small number need further procedures. Being in hospital for this does not mean something terrible is happening — it means you are getting the fluids, tests, and treatment you need to recover safely.

Find support

External links open third-party websites. Ruqelo Health is not responsible for external content. Listing an organisation does not imply endorsement.

Always verify with your doctor

Health guidance differs by country and region. This page is general education and may not match the guidelines, medicines, or practice where you live. Discuss your concerns with your own doctor or healthcare provider, and follow local guidance where it exists.

Important notice This information is for educational purposes only. It does not replace professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider about your specific situation. If you are experiencing a medical emergency, call your local emergency services immediately.

Related conditions

Sources and guidance

No guideline names this topic

No health guideline or clinical chapter that names this exact topic is cited here. This page is for general education and information only. It is not a diagnosis, a treatment plan, or personal medical advice. Check with your own doctor and follow their advice. If symptoms are severe, sudden, or worrying, get medical care promptly, and call your local emergency number in an emergency. Ruqelo LLC is not responsible for medical or legal outcomes from decisions based on this information.

Last updated: November 3, 2026

Educational note: This information is for education only and is not a diagnosis.

Use it to support, not replace, advice from a licensed clinician.

If symptoms are severe, worsening, or urgent, call your local emergency number or seek emergency care.

Guidance may differ by country or region. Confirm local recommendations with a qualified healthcare provider.

Questions about this article