Overview
Black, sticky, tar-like stool that smells very bad usually means there's bleeding high up in the digestive tract, in the esophagus, stomach, or first part of the small intestine. As the blood is digested, it turns black. This is called melena.
Stool that is dark but not sticky or tarry may just be from iron pills, bismuth (Pepto-Bismol), activated charcoal, or foods like black licorice, blueberries, or blood sausage. A simple stool test can tell whether there's blood.
When to get medical care
Causes
Bleeding causes include stomach or duodenal ulcers (the most common cause), gastritis (stomach irritation, often from NSAIDs or alcohol), a tear in the esophagus from forceful vomiting, enlarged veins in the esophagus from liver disease (varices), abnormal blood vessels, injury, and cancer of the esophagus or stomach. Blood thinners, aspirin, and NSAIDs like ibuprofen raise the risk of bleeding. Harmless causes include iron pills, bismuth (Pepto-Bismol), activated charcoal, black licorice, blueberries, and blood sausage. Swallowed blood from a nosebleed can also cause black stool.
OwieClear has pages on 6 conditions that can cause black or tarry stool. Each shows how soon to get care.
Common causes
- Bleeding in the digestive tract (vomiting blood or black stools)May need emergency care
Bleeding anywhere from the esophagus to the rectum.
Less likely causes
- Ampullary cancerOften needs care today
A rare cancer where the bile duct and pancreatic duct empty into the small intestine.
- Hereditary hemorrhagic telangiectasia (HHT)See a doctor if it doesn't get better
An inherited condition with fragile, abnormal blood vessels.
- Small intestine cancerSee a doctor if it doesn't get better
A rare cancer of the small intestine.
- Stomach cancer (needs checking)See a doctor if it doesn't get better
Cancer of the stomach.
- Stomach MALT lymphomaSee a doctor if it doesn't get better
A slow-growing lymphoma of the stomach lining, usually caused by long-term H.
What you can do at home
- Think about what you've taken or eaten. Iron pills, Pepto-Bismol, and dark foods are common, harmless causes.
- Don't take aspirin or NSAIDs like ibuprofen or naproxen until you've been checked, since they can cause or worsen bleeding.
- Avoid alcohol until you know the cause.
- Don't stop prescribed blood thinners on your own; call your doctor.
- Get checked promptly if you can't explain it. Black stool from bleeding is not something to treat at home.
Medicines
Don't treat black stool at home. If bleeding is found, treatment may include acid-reducing medicine for ulcers, antibiotics for H. pylori infection, IV fluids or a blood transfusion, or a procedure to stop the bleeding.
At the doctor
The doctor will find out whether there's bleeding and where it's coming from.
Questions you may be asked
- When the black stools started and what they look like
- Whether you take iron, Pepto-Bismol, aspirin, NSAIDs, or blood thinners
- Whether you've vomited blood or coffee-ground material
- Any belly pain, dizziness, or weakness
- Your alcohol use and any liver disease or ulcers
The exam
A physical exam of the belly, and sometimes a rectal exam with a stool test for blood.
Tests
- Blood tests, including blood count and clotting tests
- A stool test for blood
- An upper endoscopy (EGD) to look at the esophagus, stomach, and small intestine
- A test for H. pylori
- A colonoscopy, capsule endoscopy, or imaging if the source isn't found
Prevention
You can lower your risk of stomach bleeding.
- Use NSAIDs only as directed and for short periods
- Limit alcohol
- Get treated for H. pylori and ulcers
- Ask your doctor about stomach protection if you need long-term aspirin or blood thinners
Check your symptoms
Most symptoms have more than one possible cause. The symptom checker looks at all of your symptoms together, plus your age, and shows how soon to get care.
Sources
Last updated 2026-11-13.