Black vomit is vomit that appears dark brown or black, often with a lumpy, grainy texture that resembles coffee grounds. In most cases, it means there is blood in your upper digestive tract that has been partially digested by stomach acid, turning it dark before you throw it up. The medical term for this is hematemesis, and it typically signals bleeding somewhere in your esophagus, stomach, or the first part of your small intestine. The overall mortality rate for acute upper gastrointestinal bleeding is 5 to 10%, so black vomit is something to take seriously.
Why the Vomit Looks Black
Fresh blood is red, but blood that sits in your stomach gets broken down by hydrochloric acid and digestive enzymes. This chemical reaction changes the hemoglobin in red blood cells into a darker compound, causing the blood to turn brown or black and clump into small, granular pieces. By the time your body triggers vomiting, the blood has dried and congealed enough to look like wet coffee grounds rather than bright red liquid.
Bright red blood in vomit, by contrast, usually means the bleeding is happening faster or closer to the esophagus, so it hasn’t had time to be altered by stomach acid. The darker the vomit, the longer the blood has been sitting in your digestive system.
Common Causes
The most frequent cause of black vomit is a peptic ulcer, which is an open sore on the lining of the stomach or the upper small intestine. These ulcers are often caused by a bacterial infection (H. pylori) or long-term use of anti-inflammatory painkillers like ibuprofen or aspirin. When an ulcer erodes into a blood vessel, blood pools in the stomach and eventually comes up as dark, coffee-ground vomit.
Other causes include:
- Gastritis: Inflammation of the stomach lining, which can be triggered by alcohol, medications, or infection.
- Esophagitis: Inflammation or erosion of the esophagus, often from chronic acid reflux.
- Mallory-Weiss tears: Small tears in the lining where the esophagus meets the stomach, usually caused by forceful or prolonged vomiting.
- Esophageal varices: Swollen veins in the esophagus, most common in people with liver disease. These can bleed heavily and are particularly dangerous.
- Cancer: Tumors in the stomach or esophagus can erode into blood vessels and cause bleeding.
When It’s Not Actually Blood
Not every instance of dark vomit means bleeding. Certain substances can mimic the appearance of black vomit. Bismuth subsalicylate (the active ingredient in Pepto-Bismol) can turn your vomit and stools dark. Activated charcoal, iron supplements, and very dark foods like chocolate or dark berries can also create a similar look. If you’ve recently taken any of these, that may explain the color. However, if you can’t identify an obvious cause and the vomit has that distinctive grainy, coffee-ground texture, treat it as potentially serious.
The Yellow Fever Connection
Historically, black vomit was so closely associated with yellow fever that the Spanish term “vomito negro” became a clinical hallmark of the disease. Yellow fever causes severe liver damage, which disrupts the blood’s ability to clot. This leads to bleeding throughout the digestive tract, producing the characteristic black vomit that gave the symptom its lasting place in medical history. Yellow fever is now rare in developed countries thanks to vaccination, but it still occurs in parts of Africa and South America.
Warning Signs of Severe Blood Loss
Black vomit on its own warrants medical evaluation, but certain additional symptoms suggest you’re losing a dangerous amount of blood. Feeling lightheaded, dizzy, or faint when standing up signals that your blood pressure is dropping. A racing heartbeat is another sign your body is compensating for blood loss. Together, low blood pressure and a rapid heart rate can mean you’re going into shock.
Black, tarry stools (called melena) appearing alongside black vomit confirm that bleeding is happening in the upper digestive tract. The blood travels all the way through your intestines, producing stools that are sticky, tar-like, and have a distinctive foul smell. Pale skin, confusion, and extreme weakness are late signs that blood loss has become critical.
How It’s Diagnosed
The primary diagnostic tool is an upper endoscopy, where a thin, flexible camera is passed through the mouth into the esophagus and stomach. This allows doctors to see exactly where the bleeding is coming from and, in many cases, treat it during the same procedure. Guidelines recommend performing endoscopy within 24 hours of presentation for most patients with acute upper gastrointestinal bleeding, because early diagnosis reduces the risk of rebleeding, shortens hospital stays, and lowers the chance of needing surgery.
Blood tests help determine how much blood you’ve lost and how well your body is handling it. Doctors also use scoring systems that factor in your heart rate, blood pressure, blood counts, and other markers to assess severity. In one study, patients who scored in the highest risk category had a death rate of nearly 14%, while the lowest-risk group had a 0% mortality rate.
What Treatment Looks Like
If the bleeding is confirmed, the first priority is stabilizing your blood volume with fluids and, if necessary, transfusions. During endoscopy, doctors can often stop the bleeding directly by applying heat, clips, or injections to the bleeding site. Medications that reduce stomach acid are given to help the injured tissue heal and prevent rebleeding.
In one large study of 234 patients admitted for acute upper GI bleeding, about 79% were discharged after the bleeding stopped and their condition improved. Around 8% needed intensive care or surgery, and about 3% experienced rebleeding during their hospital stay. Recovery depends heavily on what caused the bleeding, how much blood was lost before treatment, and whether the underlying condition (like an ulcer or liver disease) can be managed long-term.
For people whose black vomit turns out to be from a peptic ulcer, treating the underlying cause with acid-reducing medication and, if applicable, antibiotics for H. pylori often prevents recurrence. For those with liver-related bleeding, managing the liver disease itself is the key to preventing future episodes.

