Upper GI bleeding is a medical emergency that happens in the esophagus, stomach, or the first part of the small intestine. The two most common causes are peptic ulcers and esophageal varices, but several other conditions can also trigger bleeding. Peptic ulcers are the leading cause overall, while varices are the most dangerous because they bleed heavily and rapidly.
What Causes Upper GI Bleeding: Ulcers, Varices, and More
The cause of upper GI bleeding depends on where the bleeding starts and what damaged the tissue. Peptic ulcers account for the largest share of cases. Esophageal varices are less common but carry the highest risk of death. Other causes include tears in the esophagus, severe inflammation, and certain blood vessel abnormalities.
Peptic ulcers are open sores on the lining of the stomach or duodenum. They bleed when the sore erodes into a blood vessel underneath. Helicobacter pylori infection and regular use of nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen or naproxen are the two main reasons ulcers form. Both damage the protective mucus layer that normally shields the digestive tract from stomach acid.
Esophageal varices are swollen veins in the lower esophagus. They develop when scar tissue in the liver blocks normal blood flow, forcing blood to find alternate routes through smaller veins. These veins are fragile and prone to rupture. When they burst, bleeding is often severe and difficult to control.
How Do Peptic Ulcers Cause Bleeding?
An ulcer starts as a small erosion in the mucosal lining. Stomach acid and digestive enzymes continuously irritate the exposed tissue. Over time, the ulcer can extend deeper into the wall of the stomach or duodenum. The deeper it goes, the closer it gets to the network of blood vessels that supply the digestive tract.
When an ulcer reaches a vessel, the vessel wall weakens and eventually breaks open. The amount of bleeding depends on the size of the vessel. Capillary bleeding may cause slow blood loss that shows up as anemia. Arterial bleeding can be rapid and produce large volumes of blood that appear in vomit or stool.
NSAIDs cause ulcers by blocking enzymes that produce protective prostaglandins. These chemicals normally reduce acid secretion and increase mucus production. Without them, the stomach lining becomes vulnerable to acid damage. H. pylori causes ulcers by colonizing the stomach lining and triggering chronic inflammation that breaks down the protective barrier.
Smoking, heavy alcohol use, and stress can worsen existing ulcers but do not cause them on their own. The evidence for stress as a direct cause is weak. What matters most for bleeding risk is the size and depth of the ulcer, not how long it has been present.
Why Are Esophageal Varices So Dangerous?
Varices form because of portal hypertension, which is high blood pressure in the portal vein that carries blood from the digestive organs to the liver. Cirrhosis is the most common cause of portal hypertension. As scar tissue replaces healthy liver cells, blood cannot flow through the liver normally. Pressure builds up and blood backs into smaller veins in the esophagus and stomach.
These veins are not designed to handle high pressure. Their walls are thin and stretch easily. Over time they balloon outward. The larger they get, the more likely they are to rupture. Once a varix ruptures, bleeding can be massive because the pressure inside the vessel is so high.
Ruptured varices are a medical emergency that requires immediate treatment. Without intervention, the mortality rate is high. Endoscopic band ligation is the standard treatment to stop active bleeding and prevent rebleeding. Medications called beta-blockers can reduce portal pressure and lower the risk of a first bleed in people known to have varices.
Not everyone with cirrhosis develops varices. The risk increases with the severity of liver disease. Regular endoscopic screening is recommended for people with cirrhosis so that varices can be detected and treated before they bleed.
What Other Conditions Cause Upper GI Bleeding?
Ulcers and varices are the most common causes, but they are not the only ones. Several other conditions can produce bleeding in the upper digestive tract.
Mallory-Weiss Tears
A Mallory-Weiss tear is a laceration in the lining where the esophagus meets the stomach. It usually happens after forceful vomiting or retching. The sudden pressure tears the mucosal lining, causing bleeding. Most tears stop bleeding on their own, but some require endoscopic treatment.
Esophagitis
Severe inflammation of the esophagus can cause bleeding. Gastroesophageal reflux disease (GERD) is the most common cause of esophagitis. Chronic acid exposure damages the esophageal lining, leading to erosions and ulcers. Certain medications, especially antibiotics and bisphosphonates, can also cause pill-induced esophagitis if they get stuck in the esophagus.
Gastritis
Gastritis is inflammation of the stomach lining. It can be acute or chronic. When the inflammation is severe, the lining can erode and bleed. NSAIDs, alcohol, and H. pylori infection are common triggers. Stress-related gastritis can occur in critically ill patients, particularly those in intensive care.
Angiodysplasia
Angiodysplasia is a condition where abnormal, fragile blood vessels develop in the digestive tract. These vessels can bleed intermittently. The cause is not fully understood, but it becomes more common with age. Bleeding from angiodysplasia can be slow and chronic, leading to iron deficiency anemia, or it can be acute and severe.
Stomach Cancer
Stomach cancer can cause upper GI bleeding, though it is far less common than ulcers or varices. Tumors can erode into blood vessels as they grow. Bleeding from stomach cancer is often chronic and may be accompanied by weight loss, early satiety, and persistent abdominal pain.
How Can You Tell If the Bleeding Is Upper or Lower GI?
The appearance of the blood gives important clues. Upper GI bleeding often produces black, tarry stools called melena. This happens when blood is digested as it travels through the intestinal tract. The dark color comes from the breakdown of red blood cells by digestive enzymes.
Vomiting blood, called hematemesis, is a clear sign of upper GI bleeding. The blood may be bright red if bleeding is active and rapid. It may look like coffee grounds if the blood has been in the stomach long enough to be partially digested.
Lower GI bleeding typically produces bright red blood in the stool. However, this is not always reliable. Very rapid upper GI bleeding can produce bright red blood in the stool because the blood moves through the system too quickly to be digested. This is why anyone with signs of GI bleeding needs urgent medical evaluation rather than trying to diagnose themselves.
What Are the Warning Signs That Require Immediate Medical Care?
Some symptoms of upper GI bleeding are obvious. Others are subtle and easy to dismiss. Seek emergency care if you experience any of the following:
- Vomiting blood or material that looks like coffee grounds
- Black, tarry, or foul-smelling stools
- Bright red blood in vomit or stool
- Dizziness, lightheadedness, or fainting
- Rapid heartbeat or chest pain
- Pale skin or cold, clammy hands
- Shortness of breath
These symptoms indicate significant blood loss. Delaying treatment can lead to shock, organ failure, and death. Even if symptoms seem mild, any sign of GI bleeding warrants a prompt medical evaluation. Slow, chronic bleeding can cause severe anemia without any dramatic symptoms.
People at higher risk include those with cirrhosis, a history of ulcers, regular NSAID use, or a family history of GI conditions. If you fall into any of these groups and notice changes in your stool color or energy levels, do not wait for symptoms to become severe.
How Is Upper GI Bleeding Diagnosed and Treated?
Endoscopy is the primary tool for both diagnosis and treatment. A thin, flexible tube with a camera is passed through the mouth into the esophagus, stomach, and duodenum. The doctor can see the source of bleeding directly and treat it immediately.
Endoscopic treatments include injecting medication to constrict blood vessels, applying heat or electricity to seal bleeding vessels, placing clips on the bleeding site, or using bands to tie off varices. These techniques stop active bleeding in most cases.
For ulcers, the underlying cause must be addressed. If H. pylori is present, antibiotics are prescribed. If NSAIDs caused the ulcer, they should be stopped. Proton pump inhibitors reduce stomach acid and allow the ulcer to heal.
For varices, the goal is to control bleeding and prevent future episodes. Beta-blockers reduce portal pressure. Endoscopic band ligation is repeated until varices are eliminated. In severe cases, a procedure called TIPS (transjugular intrahepatic portosystemic shunt) may be used to create a new pathway for blood flow and reduce pressure in the varices.
People with severe bleeding may need blood transfusions, intravenous fluids, and medications to reduce acid production. In rare cases where bleeding cannot be controlled by endoscopy, surgery may be necessary.
Frequently Asked Questions
Can upper GI bleeding stop on its own?
Yes, some upper GI bleeding stops without medical intervention, especially bleeding from small ulcers or Mallory-Weiss tears. However, bleeding can restart at any time, and the underlying cause still needs treatment, so medical evaluation is always necessary.
Is black stool always a sign of upper GI bleeding?
Black, tarry stool is a strong indicator of upper GI bleeding, but iron supplements, bismuth subsalicylate (Pepto-Bismol), and certain foods like black licorice can also darken stool. If you have not consumed these items and your stool is black and tarry, seek medical attention.
Can NSAIDs cause upper GI bleeding without warning?
Yes, NSAIDs can cause bleeding without prior symptoms. Many people have no pain or discomfort before an ulcer bleeds. This is why long-term NSAID use should be discussed with a doctor, especially in people over 60 or those with a history of ulcers.

