What If Your Poop Looks Like Coffee Grounds?

Stool that looks like coffee grounds, with dark, grainy particles mixed in, is a sign of bleeding in your upper digestive tract. Blood that starts in the stomach or upper intestine gets partially digested as it moves through, which turns it dark and granular rather than bright red. This is not something to wait on or monitor at home. It warrants prompt medical attention.

Why Blood Looks Like Coffee Grounds

When blood pools in the stomach, acid and digestive enzymes begin breaking it down. The iron in your blood cells oxidizes and coagulates, changing from red to a dark brown or black color with a gritty texture. By the time it reaches your stool (or shows up in vomit), it no longer looks like fresh blood. Instead it resembles wet coffee grounds, both in color and consistency.

This appearance specifically signals that the bleeding source is above the lower intestine, typically in the stomach, the first part of the small intestine (the duodenum), or the esophagus. Bright red blood in stool, by contrast, usually means the bleeding is happening lower down, closer to the rectum. The coffee-ground look tells you the blood has had time to sit in acid before passing through.

Most Common Causes

Peptic ulcers are the leading cause of upper GI bleeding. These are open sores on the stomach lining or duodenum, most often caused by a bacterial infection called H. pylori or by regular use of common painkillers like ibuprofen, aspirin, and naproxen. Blood thinners also increase the risk. The ulcer erodes into a blood vessel, and the bleeding may be slow enough that you don’t feel sharp pain but steady enough to darken your stool over hours or days.

Gastritis, an inflammation of the stomach lining, is another frequent culprit. The same triggers apply: H. pylori, painkillers, blood thinners, and heavy alcohol use can all inflame the lining enough to create shallow breaks that bleed. Esophagitis, inflammation of the esophagus often driven by chronic acid reflux, can also produce bleeding that ends up looking like coffee grounds in stool or vomit.

Less common but more dangerous causes include esophageal or stomach varices, which are swollen veins that can burst. These are most often related to liver cirrhosis. Mallory-Weiss tears, which are rips in the lower esophagus caused by severe or prolonged vomiting, can also bleed significantly. In rarer cases, benign growths or cancers in the esophagus or stomach weaken the digestive lining enough to expose blood vessels.

Things That Can Mimic the Appearance

Before assuming the worst, consider what you’ve recently eaten or taken. Iron supplements are one of the most common causes of dark, grainy-looking stool that has nothing to do with bleeding. Bismuth-based medications like Pepto-Bismol also turn stool black. Activated charcoal does the same. Certain foods, including black licorice, blueberries, and blood sausage, can produce stool dark enough to be alarming.

The key difference is texture and context. Medication or food-related darkening tends to produce uniformly dark stool without the distinct granular, wet-coffee-grounds look. If you haven’t taken any of these substances and you’re also feeling lightheaded, unusually tired, or nauseated, the likelihood of actual bleeding goes up considerably.

Warning Signs That Need Immediate Attention

Upper GI bleeding can escalate quickly. If you’re seeing coffee-ground material in your stool and also experiencing dizziness or lightheadedness when standing, a rapid heartbeat, unusual fatigue or weakness, pale skin, or nausea and vomiting (especially vomit that also looks like coffee grounds), you may be losing enough blood to affect your circulation. These signs together point to active bleeding that needs emergency evaluation.

Upper gastrointestinal bleeding accounts for 50 to 150 cases per 100,000 people annually in the United States, with mortality rates between 5% and 15% even with modern treatment. That wide range reflects how much outcomes depend on how quickly someone gets care and what’s causing the bleed. The sooner bleeding is identified and treated, the better the outcome.

How Doctors Find the Source

The primary tool for diagnosing upper GI bleeding is an upper endoscopy, where a thin, flexible camera is passed through the mouth into the esophagus, stomach, and duodenum. This lets the doctor see the bleeding site directly. The procedure is typically done under sedation, so you won’t feel it, and it usually takes 15 to 30 minutes.

If the endoscopy doesn’t locate the source, additional imaging may be used. CT scans with contrast can detect active bleeding if it’s happening fast enough (at least about half a milliliter per minute). In some cases, a capsule endoscopy, where you swallow a tiny camera that photographs the entire digestive tract as it passes through, helps locate bleeding in areas a standard scope can’t reach.

Your doctor may also run a stool test to confirm whether blood is actually present. Newer versions of these tests, called fecal immunochemical tests, specifically detect human blood and aren’t thrown off by foods like red meat or blueberries the way older tests can be. This distinction matters if there’s any question about whether the dark appearance is from bleeding or from something you ate.

What Treatment Looks Like

In many cases, the same endoscopy used for diagnosis doubles as treatment. If the doctor finds a bleeding ulcer or other source, they can act on it immediately using one of several techniques: applying heat to seal the vessel, placing small metal clips to close it off, or injecting medication directly into the tissue to stop the bleeding. These methods are often combined for the best result. You’re already sedated for the procedure, so there’s no additional discomfort.

After the bleeding is controlled, treatment shifts to addressing the underlying cause. For peptic ulcers driven by H. pylori, that means a course of antibiotics. If painkillers caused the problem, you’ll need to stop or switch medications. Acid-reducing medications are commonly prescribed to let the damaged tissue heal. For varices related to liver disease, ongoing management of the liver condition becomes critical to prevent rebleeding.

Recovery time depends on the severity of the bleed. Mild cases caught early may only require a day or two of observation. More significant bleeding, especially if it caused anemia or required blood transfusion, can mean a longer hospital stay and weeks of recovery. Your doctor will typically schedule a follow-up endoscopy to confirm the area has healed.