Why Does My Poop Look Like Coffee Grounds?

Stool that looks like coffee grounds usually means there is bleeding somewhere in the upper digestive tract, and the blood has been partially digested by stomach acid before passing through your system. This gives it a dark brown or black, granular texture rather than the bright red you might expect from fresh blood. It is a symptom that should be taken seriously, though a few harmless causes can mimic the same appearance.

What Creates the Coffee Ground Appearance

When blood enters the stomach or upper small intestine, it doesn’t stay red for long. Stomach acid and digestive enzymes break down the hemoglobin in blood, turning it dark brown or black and giving it a gritty, granular look. The same process happens with vomit: if someone vomits material that looks like wet coffee grounds, it signals the same kind of upper digestive bleeding.

This is different from bright red blood in your stool, which typically comes from lower in the digestive tract (the colon or rectum). The farther up the bleeding starts, the more time acid has to transform the blood’s color and texture before it exits the body.

How It Differs From Tarry Black Stool

There’s an important visual distinction between coffee ground stool and what doctors call melena, which is a uniformly black, tarry stool with a sticky consistency. Melena tends to look like thick tar and often has a strong, distinctive smell. Coffee ground material, by contrast, has visible dark granules or flecks, more like the sediment at the bottom of a French press. Both indicate upper GI bleeding, but melena typically signals a larger or more sustained bleed where blood has traveled the full length of the digestive tract.

Most Common Causes

Peptic ulcers are the single most common cause of upper GI bleeding. These are open sores on the lining of the stomach or the first section of the small intestine. They develop when the protective mucus layer thins out, often because of a bacterial infection or long-term use of anti-inflammatory painkillers like ibuprofen or aspirin. Even a small ulcer can ooze enough blood to change the appearance of your stool.

Gastritis, which is widespread inflammation of the stomach lining, can also cause slow bleeding that shows up as dark, granular material. Heavy alcohol use, chronic stress on the stomach, and the same painkillers that cause ulcers are frequent triggers.

Less commonly, the bleeding comes from varices, which are swollen, fragile veins in the esophagus or stomach. These develop when blood pressure in the liver’s portal vein gets dangerously high, usually due to liver cirrhosis from alcohol use, viral hepatitis, or fatty liver disease. Variceal bleeding tends to be heavier and more abrupt than ulcer bleeding. Other possible sources include tears at the junction of the esophagus and stomach (often from forceful vomiting), abnormal blood vessels in the stomach lining, and, rarely, tumors.

How Serious Is It

Upper GI bleeding is one of the most common gastrointestinal emergencies, affecting roughly 50 to 150 people per 100,000 each year. Mortality rates range from 5% to 15% even with modern treatment, which makes it a symptom worth acting on quickly. Many cases involve slow, minor bleeds that respond well to treatment, but there is no reliable way to tell at home whether your bleeding is minor or life-threatening.

Signs that bleeding has become severe include feeling lightheaded or faint, shortness of breath, unusual fatigue, a racing heartbeat, pale skin, cold hands and feet, or confusion. These suggest significant blood loss and possible shock, and they require emergency medical attention.

Foods and Medications That Mimic It

Not every dark, granular stool means internal bleeding. Several common substances can turn your stool black or very dark brown without any blood being present:

  • Iron supplements are one of the most frequent culprits, often producing dark, sometimes gritty-looking stool.
  • Bismuth subsalicylate (the active ingredient in Pepto-Bismol) temporarily turns stool black.
  • Black licorice, blueberries, and blood sausage can all darken stool enough to cause alarm.
  • Activated charcoal produces very dark or black stool.

If you’ve recently taken any of these and feel perfectly fine otherwise, the color change is likely harmless. The key difference is that bleeding-related dark stool often has a sticky quality, a particularly foul smell, and comes with other symptoms like stomach pain, nausea, or fatigue. When in doubt, stopping the suspect food or supplement for a day or two will usually clarify whether it was the cause.

What Happens During Diagnosis

When you report stool that looks like coffee grounds, the first step is usually blood work to check for anemia (low red blood cell count) and to see how well your blood is clotting. A stool sample can confirm whether hidden blood is actually present, which helps rule out the harmless mimics listed above.

The most definitive test is an upper endoscopy, where a thin, flexible tube with a camera is guided down the throat to visually inspect the esophagus, stomach, and upper small intestine. This procedure both identifies the source of bleeding and, in many cases, allows doctors to treat it on the spot by sealing a bleeding vessel or ulcer. The whole procedure is typically done under sedation and takes 15 to 30 minutes.

If the source isn’t found with standard endoscopy, other options include CT imaging of the abdomen, a procedure called angiography that uses contrast dye to locate bleeding vessels on X-ray, or capsule endoscopy, where you swallow a tiny pill-sized camera that photographs the entire digestive tract as it passes through. Surgery to find a bleeding source is possible but rare.

What You Should Do

If your stool looks like coffee grounds and you haven’t recently taken iron supplements, bismuth, or eaten foods known to darken stool, treat it as a potential sign of internal bleeding. A single episode with no other symptoms still warrants a call to your doctor within the day. If the dark stool comes with dizziness, weakness, vomiting (especially vomit that also looks like coffee grounds), or abdominal pain, seek emergency care. Early diagnosis and treatment of upper GI bleeding dramatically improve outcomes, and the most common causes, like peptic ulcers, are highly treatable once identified.