Doctors Note Logo

Published on: 9/13/2026

What should I do right now if I have black tarry stool?

Black, tarry stool (melena) often signals bleeding in the upper digestive tract, such as an ulcer, gastritis, or esophageal varices, and it should be treated as urgent: seek same-day medical care, or call emergency services if you also have vomiting of blood, dizziness, fainting, rapid heartbeat, or severe abdominal pain. Until you are evaluated, avoid alcohol, NSAIDs like ibuprofen and aspirin unless prescribed, and note when the stools started, their color and consistency, and any medications or supplements you take. Not every case is an emergency, since iron pills, bismuth medications, black licorice, blueberries, and beets can darken stool without bleeding, so the distinction matters. There are several important factors that determine how quickly you need to act and what tests may follow, and these details are explained below.

Because black stool can range from harmless food coloring to life threatening internal bleeding, it helps to organize your symptoms before you talk to a clinician. A free, instant, online symptom check lets you enter your symptoms, medications, and risk factors in minutes and receive guidance on possible causes and how urgently to seek care, so you walk into your appointment or emergency visit prepared rather than guessing.

Last reviewed for medical accuracy: 09/12/2026

answer background

Explanation

Black and Tarry Stool (Melena): What to Do Right Now

Black, tarry stool—medically called melena—can be alarming. It often means there’s bleeding in the upper digestive tract. While not every case is an emergency, it’s important to act promptly and follow clear steps to protect your health.

What Is Melena?

Melena describes stool that is:

  • Very dark brown or black
  • Sticky or tar-like in consistency
  • Foul smelling, sometimes more pungent than usual

This happens because blood from your esophagus, stomach, or small intestine mixes with digestive juices and turns dark as it moves through your gut.

Possible Causes

Many conditions can cause black, tarry stool. Common causes include:

• Peptic ulcers
• Gastritis (stomach inflammation)
• Esophageal varices (swollen veins in the esophagus)
• Mallory-Weiss tear (small tear in the lining of the esophagus)
• Certain medications (NSAIDs like ibuprofen, aspirin)
• Swallowed blood (from nosebleeds or dental work)
• Less common causes (tumors, vascular malformations)

Immediate Steps You Can Take

  1. Stay Calm and Observe

    • Note the color, consistency, and amount of stool.
    • Check for other symptoms: dizziness, weakness, abdominal pain, vomiting blood.
  2. Review Recent History

    • Have you taken NSAIDs (ibuprofen, naproxen) or aspirin in the last few days?
    • Did you have a nosebleed or mouth bleeding?
    • Any recent dental procedures?
  3. Avoid Potential Irritants

    • Stop NSAIDs and aspirin unless prescribed for a critical condition.
    • Avoid alcohol, spicy foods, and caffeine until you see a provider.
  4. Stay Hydrated

    • Drink clear fluids (water, electrolyte solutions) to prevent dehydration.
    • Sip slowly if you feel nauseated.
  5. Track Your Vital Signs (if possible)

    • Measure your pulse and blood pressure.
    • Dizziness, rapid heartbeat, or low blood pressure suggest you need urgent care.

When to Seek Emergency Care

Go to the nearest emergency department or call emergency services (e.g., 911) if you experience any of these “red flags”:

• Passing large amounts of black stool or finding blood clots
• Feeling faint, dizzy, or experiencing a rapid heartbeat
• Severe abdominal pain or chest pain
• Vomiting red blood or material that looks like coffee grounds
• Signs of shock: confusion, cold clammy skin, shallow breathing

These symptoms may indicate significant bleeding that requires immediate medical attention.

Non-Urgent but Important Actions

If your symptoms are milder—dark stool without severe pain or other alarming signs—you still need prompt evaluation:

• Schedule a same-day or next-business-day appointment with your primary care provider or a gastroenterologist.
• Be ready to discuss:
– Onset and duration of melena
– Medications, supplements, and over-the-counter drugs you’re taking
– Alcohol use and any recent medical or dental procedures
– Other symptoms (weight loss, fatigue, changes in appetite)

Diagnostic Tests Your Doctor May Order

To pinpoint the cause of melena, your doctor may recommend:

• Blood tests (complete blood count, liver function tests)
• Stool tests (occult blood test)
• Upper endoscopy (EGD) to visualize the esophagus, stomach, and duodenum
• Imaging (CT scan, MRI) if ulcers or tumors are suspected
• Capsule endoscopy for small-bowel evaluation

While waiting for tests or results, continue to monitor your symptoms and follow any dietary or medication adjustments your provider suggests.

Free Online Symptom Check

If you’re unsure how urgent your situation is or want more guidance before seeing a doctor, consider a free, online symptom check, using the doctor approved Ubie Symptom Checker. It can help you sort through your symptoms and recommend next steps based on current medical guidelines.

When You See a Doctor

Be prepared to share:

  • A detailed description of your stool changes
  • Any medications or supplements you use
  • Recent medical history and procedures
  • Alcohol and tobacco use
  • Other symptoms (heartburn, nausea, weight changes)

Your doctor will tailor treatment based on the cause. This may include:

• Medication to reduce stomach acid (proton-pump inhibitors or H2 blockers)
• Antibiotics for H. pylori infection
• Endoscopic therapy to stop bleeding (clip placement, thermal coagulation)
• Lifestyle changes (dietary adjustments, avoiding NSAIDs)

Preventing Future Episodes

Once the immediate issue is addressed, take steps to reduce recurrence:

• Use pain relievers wisely—opt for acetaminophen instead of NSAIDs when possible.
• Limit alcohol and tobacco, both of which can irritate the gut lining.
• Follow up with your doctor, especially if you had ulcers or esophageal varices.
• Manage stress; high stress can worsen peptic ulcer disease.
• Maintain a balanced diet rich in fiber, lean proteins, and plenty of fluids.

Avoid self-diagnosis or ongoing self-treatment without professional guidance.

Key Takeaways

• Black, tarry stool (melena) suggests upper GI bleeding.
• Act quickly: monitor symptoms, stop NSAIDs, stay hydrated.
• Seek emergency care for red-flag signs (fainting, severe pain, vomiting blood).
• Schedule prompt medical evaluation even with milder symptoms.
• Use the Ubie Symptom Checker for free, online guidance.
• Always speak to a doctor about anything life threatening or serious.

Speak to Your Doctor

Melena can range from a minor ulcer to a serious bleed. If you experience black, tarry stool, don’t wait. Prompt evaluation and treatment can prevent complications. If you have any doubt—especially if you feel weak, dizzy, or are passing a lot of blood—go to the emergency department or call your local emergency number immediately. Always speak to a doctor about anything that could be life threatening or serious.

(References)

  • * Heikkinen E, Larmi TK, Huttunen R. Necrotizing colitis. Am J Surg. 1974 Sep;128(3):362-7. doi: 10.1016/0002-9610(74)90174-3. PMID: 4414782.

  • * Matsunaga F, Yoshida Y, Okawa M, Kawamura S, Sannohe T. [Melena]. Naika. 1968 Jul;22(1):143-8. PMID: 5304365.

  • * Prelipcean CC, Fierbinteanu-Braticevici C, Drug VL, Lăcătuşu C, Mihai B, Mihai C. [Liver cirrhosis--procoagulant stasis]. Rev Med Chir Soc Med Nat Iasi. 2011 Jul-Sep;115(3):678-85. PMID: 22046771.

  • * Yan J, Walker C, Chalasani P. Spontaneous Paraesophageal Hematoma. ACG Case Rep J. 2015 Oct;3(1):29-30. doi: 10.14309/crj.2015.91. Epub 2015 Oct 9. PMID: 26504872; PMCID: PMC4612752.

  • * Pai AK, Fox VL. Gastrointestinal Bleeding and Management. Pediatr Clin North Am. 2017 Jun;64(3):543-561. doi: 10.1016/j.pcl.2017.01.014. PMID: 28502437.

  • * Kamboj AK, Hoversten P, Leggett CL. Upper Gastrointestinal Bleeding: Etiologies and Management. Mayo Clin Proc. 2019 Apr;94(4):697-703. doi: 10.1016/j.mayocp.2019.01.022. PMID: 30947833.

  • * Costable NJ, Greenwald DA. Upper Gastrointestinal Bleeding. Clin Geriatr Med. 2021 Feb;37(1):155-172. doi: 10.1016/j.cger.2020.09.001. PMID: 33213769.

  • * Kargwal N, Panda V, Jha A, Singh CB. Gastric Neuroendocrine Tumor. Surg J (N Y). 2021 Jul;7(3):e142-e146. doi: 10.1055/s-0041-1731427. Epub 2021 Jul 19. PMID: 34295972; PMCID: PMC8289685.

  • * Hurtado-Pardo L, Bruna Esteban M, González López JC, Mingol-Navarro F, Vaqué Urbaneja J. Obscure digestive bleeding. Acta Gastroenterol Belg. 2023 Apr-Jun;86(2):382. doi: 10.51821/86.2.11669. PMID: 37428177.

  • * Wasserman RD, Abel W, Monkemuller K, Yeaton P, Kesar V, Kesar V. Non-variceal Upper Gastrointestinal Bleeding and Its Endoscopic Management. Turk J Gastroenterol. 2024 May 20;35(8):599-608. doi: 10.5152/tjg.2024.23507. PMID: 39150279; PMCID: PMC11363156.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.