Mild stomach pain after an upper endoscopy is common and, in most cases, completely normal. A prospective study tracking outcomes after outpatient upper endoscopy found that abdominal discomfort was the second most frequently reported symptom, affecting roughly one in twenty patients, behind only sore throat.1PubMed. Prospective analysis of complications 30 days after outpatient upper endoscopy The discomfort usually stems from air pumped into the digestive tract during the procedure, and it tends to fade within hours. But pain that worsens, persists for more than a day, or comes with fever or bleeding can point to something that needs medical attention.
How Common Is Post-Endoscopy Abdominal Pain
Most people who undergo a standard diagnostic upper endoscopy (often called an EGD or gastroscopy) walk away with no complications at all. When symptoms do appear, the most frequent ones are a sore throat and mild abdominal discomfort. In the same prospective analysis that tracked patients for 30 days after the procedure, sore throat was reported by about one in ten patients, while abdominal discomfort came in at just over five percent.1PubMed. Prospective analysis of complications 30 days after outpatient upper endoscopy A review in BMJ Open Gastroenterology confirmed the same cluster of minor symptoms, noting that sore throat, abdominal pain, and nausea are the typical post-procedure complaints. Although these are considered minor and managed conservatively, up to about two and a half percent of patients do seek medical advice afterward because of them.2PubMed Central. Complications of diagnostic upper Gastrointestinal endoscopy: common and rare – recognition, assessment and management
So if you are lying on the couch after your endoscopy feeling bloated, gassy, or experiencing a dull ache in your upper abdomen, you are in good company. This is not a sign that something went wrong. It is one of the most predictable side effects of the procedure itself.
Why the Pain Happens
During an upper endoscopy, the doctor threads a thin, flexible scope through your mouth and into your stomach and upper small intestine. To get a clear view of the lining, they inflate your digestive tract with gas. Traditionally that gas has been room air. Pumping air into a space that normally contains very little of it stretches the stomach and intestinal walls, and that distension is the main reason your abdomen feels sore or bloated afterward.
One randomized controlled trial measured the volume of gas left in the digestive tract after gastric endoscopic submucosal dissection (ESD, a more involved endoscopic procedure). In patients who received standard air insufflation, the average residual gas volume was over one liter, compared with about 640 milliliters in those who received carbon dioxide instead.3PubMed. A prospective, randomized, double-blind, controlled trial on the efficacy of carbon dioxide insufflation in gastric endoscopic submucosal dissection That leftover air sits in the stomach and intestines, causing the crampy, bloated feeling many patients describe. You gradually pass the gas or absorb it, and the discomfort subsides. The process is faster for some people than others depending on gut motility and how much air was introduced.
Beyond insufflation, mild irritation from the scope itself can contribute. The endoscope passes through the esophagus and into the stomach, and the mechanical contact can leave the lining slightly irritated. If a biopsy was taken, the tiny pinch at the tissue site adds a potential source of soreness. These tissue samples are small, and the stomach lining heals quickly, but it is another reason you might feel tenderness for a few hours.
Carbon Dioxide Insufflation Makes a Difference
Over the past couple of decades, many endoscopy centers have switched from pumping room air to using carbon dioxide (CO₂). The reason is straightforward: your body absorbs CO₂ from the gut much faster than it absorbs nitrogen, the dominant component of room air. That means the gas clears out of your digestive tract more quickly, and the bloating and pain resolve sooner.
A systematic review and meta-analysis of randomized controlled trials comparing CO₂ with air insufflation during gastric ESD found that patients in the CO₂ group had significantly lower post-procedural pain scores. The overall rate of adverse events was also lower in the CO₂ group.4PubMed Central. Carbon Dioxide versus Air Insufflation in Gastric Endoscopic Submucosal Dissection: A Systematic Review and Meta-Analysis of Randomized Controlled Trials The individual trial mentioned earlier, however, showed that pain scores between the two groups were similar in the hours immediately after the procedure, with the CO₂ advantage becoming clear by the next morning, when patients who received air still had higher pain scores while those in the CO₂ group had largely recovered.3PubMed. A prospective, randomized, double-blind, controlled trial on the efficacy of carbon dioxide insufflation in gastric endoscopic submucosal dissection
If your endoscopy center uses CO₂ insufflation, you can expect any gas-related discomfort to be milder and shorter-lived. Not every facility has made the switch, though, so it is worth asking ahead of time. Even with traditional air, the discomfort is still self-limiting for the vast majority of people.
What the Pain Typically Feels Like and How Long It Lasts
Post-endoscopy stomach pain usually shows up as a feeling of fullness, bloating, or a dull ache in the upper abdomen. Some people describe it as the kind of discomfort you get after eating too much, which makes sense given that the stomach has been inflated with gas. Others notice cramping as the gas moves through the intestines. Belching and passing gas are normal and helpful; they are your body’s way of clearing the residual air.
For a straightforward diagnostic endoscopy, most of this discomfort fades within a few hours. By the time you eat your first meal afterward, you may already feel close to normal. If a biopsy or polyp removal was performed, mild soreness can linger a bit longer, sometimes into the next day. The 30-day complication study mentioned earlier captured abdominal discomfort as one of its tracked outcomes, and the fact that it was reported at just over five percent at the 30-day mark suggests that for a small fraction of patients, low-grade discomfort can persist for a surprisingly long time, though it is unclear whether those patients had ongoing mild symptoms or a single episode they recalled at the follow-up survey.1PubMed. Prospective analysis of complications 30 days after outpatient upper endoscopy
What you should not feel is severe, sharp pain that gets progressively worse. A dull ache that gradually improves is the normal trajectory. Pain that escalates hours after the procedure, or returns after an initial symptom-free window, needs to be taken seriously.
Red Flags That Warrant a Call to Your Doctor
While mild abdominal pain is expected, certain symptoms after an endoscopy are not normal and could indicate a rare but serious complication like perforation or significant bleeding. Perforation of the upper gastrointestinal tract during diagnostic endoscopy is uncommon, but when it does occur, it typically presents with acute severe abdominal pain, and in the case of esophageal perforation, chest pain, pain on swallowing, and vomiting.5PubMed Central. Gastrointestinal perforation: clinical and MDCT clues for identification of aetiology
The distinction is usually clear. Post-procedure bloating is diffuse, mild, and gets better with time. Perforation pain is sharp, localized, and gets worse. Other warning signs that should prompt you to contact your endoscopist or go to the emergency room include:
- Fever: A temperature above 100.4°F (38°C) in the hours or days following an endoscopy can suggest infection or perforation.
- Vomiting blood: Small streaks of blood in saliva from throat irritation are one thing; vomiting frank blood or material that looks like coffee grounds is different and needs immediate evaluation.
- Black or bloody stools: This can indicate bleeding from a biopsy site or elsewhere in the upper GI tract.
- Rigid abdomen: If your belly becomes hard and exquisitely tender to touch, that is a sign of peritonitis, where the abdominal lining is inflamed, often from a leak.
- Pain that worsens steadily: Normal post-endoscopy discomfort gradually improves. Pain that climbs over hours, especially if it moves from mild to severe, is not following the expected pattern.
These complications are rare during diagnostic procedures. The review in BMJ Open Gastroenterology characterizes them as uncommon and notes that appropriate counseling before the procedure about what to expect afterward can help patients distinguish normal discomfort from symptoms that require a trip back to the clinic.2PubMed Central. Complications of diagnostic upper Gastrointestinal endoscopy: common and rare – recognition, assessment and management
How Gastroscopy Compares to Colonoscopy
If you have had a colonoscopy before and are expecting a similar level of discomfort from an upper endoscopy, you are likely overestimating what is ahead. Research comparing patient-reported discomfort across different endoscopic procedures found that discomfort scores were significantly higher during colonoscopy than during gastroscopy. Flexible sigmoidoscopy also scored higher on discomfort than gastroscopy.6Gut. OC-145 Endoscopic procedure related tolerability: discomfort is worse at colonoscopy by comparison to distress at gastroscopy That makes anatomical sense: the colon has more loops and turns, and the scope has further to travel.
There is an interesting wrinkle, though. While physical discomfort was lower in the gastroscopy group, overall distress was actually higher for those patients than for those undergoing colonoscopy. The qualitative data pointed to oesophageal intubation as the main culprit: having a scope go through your throat is psychologically unpleasant in a way that differs from the physical cramping of a colonoscopy.6Gut. OC-145 Endoscopic procedure related tolerability: discomfort is worse at colonoscopy by comparison to distress at gastroscopy So your stomach may hurt less afterward, but you might feel more emotionally rattled. Both feelings are normal and tend to pass within the day.
Factors That Influence How Much Pain You Feel
Not everyone walks away from the same procedure feeling the same way. Several factors can tip the scale toward more or less post-endoscopy discomfort.
Anxiety and pain expectations play a measurable role. A study looking at gastrointestinal endoscopy outcomes in children found that higher pain scores before the procedure were a strong predictor of higher pain scores afterward. Older age among the pediatric patients was also associated with more post-procedural pain.7PubMed Central. Age and pain score before gastrointestinal endoscopies in children are predictors for post procedure pain While this was a pediatric study, the relationship between pre-procedure anxiety and post-procedure pain perception has been observed across age groups in other clinical contexts. If you go in bracing for the worst, your nervous system is primed to interpret ambiguous signals as painful.
The type and length of the procedure matter, too. A quick diagnostic look with no biopsies tends to produce the least discomfort. Procedures involving tissue removal, dilation, stent placement, or submucosal dissection involve more manipulation, more time with the scope inside, and more gas insufflation. Therapeutic endoscopies carry higher rates of post-procedural pain and complications compared to purely diagnostic ones.
Sedation level is another variable. Patients who receive moderate sedation (sometimes called conscious sedation) often have little memory of the procedure and may experience less post-procedural discomfort than those who undergo unsedated endoscopy. However, sedation can also slow gut motility temporarily, which paradoxically may contribute to more prolonged bloating in some people as gas takes longer to move through a sluggish intestine.
Eating After the Procedure
One of the first questions most patients have after waking up from sedation is when they can eat. Traditionally, doctors have advised a cautious approach, sometimes recommending hours of fasting after more involved endoscopic procedures. But recent evidence suggests that shorter fasting periods work just as well, at least after certain procedures.
A prospective study examining fasting duration after gastric endoscopic submucosal dissection found no significant differences in epigastric pain, heartburn, regurgitation, nausea, or vomiting between patients who started eating earlier versus those on a longer fast. The shorter fasting protocol also led to shorter hospital stays and higher patient satisfaction without increasing the risk of post-procedure bleeding.8PubMed. Optimal duration of fasting period after endoscopic submucosal dissection for gastric epithelial neoplasia: A prospective evaluation
For a standard diagnostic endoscopy without complications, most gastroenterologists will let you eat within an hour or two, once the sedation has worn off enough that you can swallow safely. Starting with small, bland meals is a sensible approach. Heavy, greasy, or spicy foods can aggravate a stomach that is already mildly irritated. Carbonated drinks may add to bloating when your gut is already trying to clear residual gas. Water, broth, crackers, and plain toast are safe starting points. If you tolerate those, you can usually resume your normal diet by the next meal.
Practical Ways to Ease the Discomfort
There is no magic remedy, but a few simple things can speed your recovery. Walking around gently helps move gas through the intestines faster than lying still. The same logic applies to avoiding tight clothing around the waist, which can trap gas and make bloating feel worse. Warm (not hot) liquids can be soothing for both the throat and the stomach. Over-the-counter simethicone, the active ingredient in many anti-gas products, can help break up gas bubbles, though its benefit is modest.
Avoid alcohol for the rest of the day, partly because your stomach lining may be mildly irritated and partly because sedation medications can interact unpredictably with alcohol even hours later. Nonsteroidal anti-inflammatory drugs like ibuprofen are generally fine for most people, but if a biopsy was taken, your doctor may prefer you stick to acetaminophen for the first day to minimize any theoretical bleeding risk. Follow whatever specific instructions your endoscopist gives you, since those are tailored to what was actually done during the procedure.
If bloating and mild pain linger into the next day but are clearly improving, there is no reason to worry. The body clears residual gas at its own pace. If you received CO₂ insufflation, you are likely past the worst of it within hours. If you received air, it may take a bit longer, but the trajectory is the same: gradual improvement that does not reverse course.
When Biopsies Add an Extra Layer of Soreness
During many diagnostic endoscopies, the gastroenterologist will take small tissue samples from the stomach or duodenal lining. This is routine and often done even when the lining looks visually normal, particularly when investigating conditions like celiac disease, H. pylori infection, or unexplained inflammation. The biopsy forceps remove a tiny fragment, usually no more than a few millimeters across.
You typically cannot feel the biopsy being taken because the stomach lining lacks the same concentration of pain-sensing nerves as your skin. Afterward, the site may ooze a trace amount of blood, which the stomach acid helps to clot. In rare cases, a biopsy site bleeds more than expected, particularly in patients on blood-thinning medications. But for the average person, a biopsy adds little to the post-procedure discomfort. If you are told biopsies were taken, any additional soreness is usually indistinguishable from the general bloating and tenderness caused by insufflation. The biopsy sites heal within a few days without any intervention.
Patients who had more extensive tissue work, such as the removal of a larger polyp or endoscopic mucosal resection, can expect a more noticeable and longer-lasting soreness. These procedures involve removing larger areas of tissue and sometimes cauterizing the wound, which creates a temporary ulcer that takes days to weeks to heal. Your doctor will usually give specific dietary and activity restrictions in those situations, and they may prescribe acid-suppressing medication to help the site heal.