Vomit that looks like coffee grounds is almost always old blood that has spent time in the stomach. That means something in the stomach, or the tube leading to it, is bleeding, even if it isn’t bleeding fast. The dark color is mildly reassuring, because it tends to point to slower bleeding than fresh red blood does.1PubMed. Coffee ground vomiting It is still never something to sleep off, and a doctor needs to see you the same day.
Why Blood Turns Brown in Your Stomach
When blood meets strong stomach acid, its red pigment changes into a dark brown substance called hematin. This happens only in very strong acid, so the brown color is a sign the blood stayed in the stomach long enough for acid to work on it.2PubMed Central. Endoscopic finding of hematin represents strong gastric acidity2PubMed Central. Endoscopic finding of hematin represents strong gastric acidity
The result looks like dark brown or black specks, like used coffee grounds in liquid. The grit comes from clotting: blood that meets acid doesn’t stay liquid, and the clots break into small flecks as the stomach churns them with its fluid. The flecks float in watery or yellowish fluid, so you may see dark specks in a thinner liquid rather than one uniform brown mass.
Some things can mimic it. Actual coffee, cola, chocolate, red wine or iron tablets can darken vomit without any blood. If you haven’t had any dark food or drink, assume it is blood. Black, tarry, sticky stools alongside it strongly suggest bleeding too.
The amount you see can mislead you in both directions. A little blood mixed with stomach fluid can look like a lot, and blood can keep pooling in the stomach without being vomited at all. How much you saw doesn’t tell you how much you lost.
Before you flush it, look at it carefully in good light and take a photo, because the color and texture are useful to a clinician. Note whether it also contains food or looks bright red in places.
Coffee Grounds Versus Bright Red Blood
Vomiting bright red blood suggests bleeding that is more sudden or severe than with coffee grounds.1PubMed. Coffee ground vomiting Fresh blood simply hasn’t had time to be darkened by acid. The causes differ too. In a large hospital bleeding database, people with coffee-ground vomit were less likely to have ulcers, swollen veins in the food pipe, cancers or tears than people with other bleeding signs.3PubMed. Is coffee ground vomiting important? Findings from a large bleeding unit database and outcomes at 30 days Coffee-ground vomit was also linked to a much lower chance that the bleeding came from liver-related vein swelling.4Journal of the Medical Association of Thailand. Role of Clinical Parameters for Predicting the Cause of Upper Gastrointestinal Bleeding A lower chance is not zero, though, so the color can’t rule out a serious cause.
Color is one clue among several. Doctors also weigh your pulse, blood pressure, blood tests, medicines and medical history, and those can matter more than the shade of the vomit. A person with coffee-ground vomit can still be unwell enough to need admission, so a reassuring color should never override how you actually feel. Brown doesn’t mean the bleeding has stopped. A slow bleed keeps adding fresh blood, and it can cause weakness over hours or days.
Pictures can also be mixed. Some people vomit coffee grounds and then red blood, which means bleeding has sped up. Red streaks after heavy retching are different from blood mixed throughout the vomit. Any change from brown to red is a reason to call emergency services.
If you vomit again, compare it with the first time. Redder vomit, more of it, or new dizziness is a sign to call emergency services rather than wait for your appointment.
Ulcers and Irritated Stomach Lining Are the Usual Cause
An ulcer is an open sore in the stomach lining or the first part of the small intestine. When an ulcer wears into a blood vessel, the blood mixes with acid and darkens.5SiPhox Health. Why am I vomiting coffee-ground material? Ulcers account for roughly half of all bleeding from the food pipe, stomach and start of the small intestine.
Some ulcers bleed suddenly even if the person felt fine the day before. Others bleed slowly over days, which can leave a person pale, tired and short of breath before any vomiting happens.
Two things drive most ulcers. H. pylori, a common stomach bacterium, causes about 70% of them.6Journal of Gastroenterol Res Pract. The management of peptic ulcer disease using conventional methods, bioactive compounds and dietotherapy: A review Anti-inflammatory painkillers such as ibuprofen, naproxen and aspirin, called NSAIDs, are the second biggest cause.6Journal of Gastroenterol Res Pract. The management of peptic ulcer disease using conventional methods, bioactive compounds and dietotherapy: A review They block chemicals that protect the stomach lining, so they can raise the chance of ulcer complications such as bleeding about fourfold, and aspirin about twofold.6Journal of Gastroenterol Res Pract. The management of peptic ulcer disease using conventional methods, bioactive compounds and dietotherapy: A review In long-term painkiller users, ulcers formed more often in people with H. pylori: 40% versus 15%.7PubMed Central. Mucosal erosions in longterm non-steroidal anti-inflammatory drug users: predisposition to ulceration and relation to Helicobacter pylori
Many people carry H. pylori without ever knowing it, so finding an ulcer is a reason to test for it even if you have no digestive symptoms. The infection can be cleared, which offers a chance to remove the underlying cause rather than only treating the sore.
Painkillers people forget still count. Low-dose aspirin for the heart counts. Many cold and flu remedies contain ibuprofen or aspirin, and prescription arthritis drugs and some migraine tablets are NSAIDs. Tell the doctor every one you’ve taken in recent weeks.
An ulcer brewing often announces itself as burning or gnawing pain in the upper belly, frequently between meals, that eases or worsens with food. Some ulcers bleed with no pain at all, especially in older people on painkillers.
Heavy drinking irritates the stomach lining and can make it bleed. Long-term heavy drinking can also damage the liver, which raises the risk of dangerous vein bleeding. Mention your drinking honestly so doctors can judge the cause.
Other Causes Doctors Look For
Sudden severe damage to the lining of the lower food pipe can cause coffee-ground vomit, red blood, or black stools.8Digestive Endoscopy. TWELVE CASES OF ACUTE ESOPHAGEAL MUCOSAL LESION In reported cases this often happened in people with a hiatal hernia, where part of the stomach slides up through the diaphragm.8Digestive Endoscopy. TWELVE CASES OF ACUTE ESOPHAGEAL MUCOSAL LESION Forceful retching can tear the lining where the food pipe meets the stomach, though this more often brings up red blood.1PubMed. Coffee ground vomiting
Repeated vomiting from any cause, such as a stomach bug or heavy drinking, strains that junction. A tear there often bleeds after several rounds of retching, with the first vomit mostly food and later vomit streaked with blood.
In people with liver scarring, veins in the food pipe can swell and bleed, which is life-threatening.9PubMed Central. Portal hypertension and gastrointestinal bleeding: Diagnosis, prevention and management Scarring makes blood back up in nearby veins, which swell like fragile balloons. They can bleed heavily and fast, so the speed of the bleed matters more than the color of what comes up. Anyone with known liver disease or cirrhosis who vomits blood of any color needs emergency care at once.
Ulcers or growths from stomach or food pipe cancer can also bleed slowly and produce coffee grounds. Clues that point this way include unplanned weight loss over weeks or months, trouble swallowing or food sticking, and feeling full after small meals. These usually come on slowly, before any bleeding.
Blood-thinning medicines such as warfarin and the newer blood thinners don’t cause ulcers, but they make any bleed heavier. Never stop them on your own; tell the doctor immediately.
Symptoms alone can’t settle the cause, because ulcers, inflammation and cancers can all produce the same vomit. A camera test passed through the mouth lets the doctor see the bleeding spot directly and take small tissue samples where something looks abnormal.
When to Go to the Emergency Department
Call emergency services if you have any of these:
- Dizziness, fainting, or feeling faint on standing
- A fast heartbeat, pale clammy skin or confusion
- Vomiting bright red blood or large amounts of coffee grounds
- Black tarry stools or severe belly pain
- Known liver disease, or taking blood thinners
If you feel faint, are confused, or have vomited a large amount, call rather than drive. Fainting at the wheel or on the way to the car is a real risk. If you feel steady and the amount was small, you still need same-day assessment, and someone else should take you if possible. While you wait, sit or lie down, and if you feel faint lie flat so blood can reach your head. Stand up slowly if you must move. Keep a bowl nearby and turn on your side if you feel sick again, so you don’t breathe in vomit.
Before you leave, note the time, how much, and how many times you vomited. A photo of the vomit is easier than bringing a sample. List all your medicines, including over-the-counter painkillers. Don’t eat or drink in case you need the camera test.
Hospitals often use a bleeding risk score, such as the Glasgow-Blatchford score, for anyone vomiting coffee grounds. It is based on blood tests, pulse, blood pressure and other conditions. A score of 0 means you may go home and have the camera test as an outpatient, while 1 or more usually means hospital assessment.10iatroX. Glasgow-Blatchford Score (GBS): clinical calculator For coffee-ground vomit specifically, though, the score did poorly at spotting who would need treatment during the camera test.11Gastrointestinal Endoscopy. Utility of clinical risk scoring tools like Glasgow-Blatchford in assessing coffee ground emesis severity So doctors combine it with their own judgment rather than relying on it alone.
The first hours usually include a blood test that checks your blood count and kidney tests. You may get a drip and acid-reducing medicine through a vein, and low-risk patients may be sent home with a booked test.
An endoscopy, the camera test, passes a thin camera through the mouth to find and often treat the bleeding spot. In one hospital group, nearly all coffee-ground patients had a real drop in blood count, yet only about 1 in 30 needed treatment during the test.12Endoscopy. PTH-035 Coffee ground vomit:does it justify an urgent endoscopy? Doing it very early didn’t change outcomes such as rebleeding or survival for coffee-ground vomit.13GastroenterologÃa y HepatologÃa. Coffee ground emesis and early endoscopy: Is timing actually relevant? Acid-reducing drugs given before the test likely reduce the need for treatment during it.14PubMed Central. Proton pump inhibitor treatment initiated prior to endoscopic diagnosis in upper gastrointestinal bleeding
Preventing Another Bleed
If H. pylori is found, a course of antibiotics and acid medicine clears it. Treatment usually combines two or more antibiotics with an acid-reducing medicine, taken for about one to two weeks. The acid medicine lets the antibiotics work better and lets the sore start healing. Finish every antibiotic dose even if you feel better, and expect a breath or stool test some weeks later to check it worked.
The right plan depends on which painkiller you need. For people who had a bleed and need low-dose aspirin, clearing H. pylori worked about as well as acid medicine at preventing another bleed, with fewer than 2 in 100 rebleeding in six months.15PubMed. Preventing recurrent upper gastrointestinal bleeding in patients with Helicobacter pylori infection who are taking low-dose aspirin or naproxen For people on other anti-inflammatory painkillers, clearing H. pylori alone left nearly 1 in 5 bleeding again, versus about 1 in 23 on acid medicine.15PubMed. Preventing recurrent upper gastrointestinal bleeding in patients with Helicobacter pylori infection who are taking low-dose aspirin or naproxen
If you must keep taking such painkillers, ask about an acid-reducing medicine as protection. It lowers the acid that irritates a damaged lining and gives an ulcer time to heal, and it is usually taken for as long as you take the painkiller.
Paracetamol (acetaminophen) is a common alternative because it relieves pain and fever without blocking the chemicals that protect the stomach lining. It isn’t suited to everyone, and it has dose limits and liver risks, so follow the label and ask your doctor if you take it often. Don’t stop prescribed heart aspirin without talking to your doctor, and avoid taking two anti-inflammatory products together. Cutting down alcohol and stopping smoking also helps ulcers heal.
Coffee-Ground Vomit in Newborns
Newborns can swallow a lot of the mother’s blood during birth and vomit it in the first few days.16PubMed Central. Design of a prospective multicenter randomized controlled trial evaluating the effects of gastric lavage on coffee-ground emesis in neonates: study protocol Cracked or bleeding nipples during breastfeeding can do the same. This often settles within days, but doctors still can’t assume that is the cause, since the same vomit can come from something that needs treatment. A simple lab test on the vomit can show whether the blood belongs to the baby or came from the mother, which can reassure parents and avoid unneeded tests.
Doctors also check for infection, clotting problems, stomach irritation, injury and low vitamin K.17Contemporary Pediatrics. Neonate experiences coffee ground emesis Newborns are born with low vitamin K, which the body needs to make clotting factors. Without it, bleeding can happen in the gut or elsewhere, which is why babies are usually offered a vitamin K shot after birth.
Call your baby’s doctor the same day, and go in urgently if the baby is feeding poorly, sleepy or pale. Tell the pediatrician whether the baby got the vitamin K shot, whether your nipples are cracked or bleeding, how many times it happened and how feeding is going.

