Skip to main content

Symptom guide

Black tarry stool (melaena): causes, red flags and what to do

Melaena is the medical word for black, tarry, sticky and very smelly stool, and it usually means blood has been digested on its way through the gut. The bleeding most often starts in the stomach or the first part of the small intestine. Stool that is simply dark, or darkened by iron tablets, is different, so this guide explains how to tell the two apart and why the NHS treats true black tarry stool as urgent.

Last checked: 2026-10-03

Key facts

At a glance.

  • Urgent by default

    The NHS stomach ulcer page lists poo that is black, sticky and very smelly among the reasons to call 999 or go to A&E.

  • Not every dark stool

    Iron tablets can make poo darker than usual, as the NHS notes, but they do not usually turn it tarry, sticky and foul-smelling.

  • Upper gut origin

    Black stool usually points to bleeding in the stomach or duodenum, and stomach ulcers are one of the main causes the NHS describes.

  • Hidden effects

    Slow bleeding can cause iron deficiency anaemia, with tiredness, breathlessness, palpitations and paler skin.

  • Tests

    Typical steps are blood tests, checking for H pylori, and gastroscopy, a camera test of the gullet, stomach and first part of the small bowel.

What melaena looks and smells like

Melaena is distinct from ordinary dark stool. It is typically black like tar, glossy or sticky, difficult to flush away and has a strikingly unpleasant smell. The colour and smell arise because blood that has been exposed to stomach acid and gut bacteria for hours changes chemically before it reaches the toilet. By contrast, fresh red blood on the paper or in the bowl usually comes from the lower bowel or anus.

The NHS wording is worth knowing precisely. On its stomach ulcer page it tells people to call 999 or go to A&E if their poo has blood in it, or is black, sticky and very smelly. On its bowel cancer symptoms page it asks for an urgent GP appointment or NHS 111 contact if the poo is black or dark red or there is bloody diarrhoea. Both pages treat the symptom as a reason to be seen promptly rather than monitored for weeks.

Dark stool that is not melaena

Not every dark stool means bleeding. The NHS iron deficiency anaemia page lists darker than usual poo as a side effect of iron tablets, along with constipation, diarrhoea, tummy pain, heartburn and feeling sick. Iron-related dark stool is generally dark green-black or dark brown and formed, without the glossy, sticky consistency or the intense smell.

Other things that can darken stool include some foods and supplements, and medicines taken for the stomach. If you have recently started iron, think back to whether the change began after the first tablets. If you have not taken anything that explains it, or you have any of the accompanying features described below, assume it could be blood and seek urgent advice instead of trying to work out the cause yourself.

What commonly causes black tarry stool

Sources of bleeding high in the digestive tract account for most true melaena. In the NHS description of stomach ulcers, the main causes of ulcers are infection with Helicobacter pylori bacteria and regular use of anti-inflammatory painkillers such as ibuprofen; ulcers are also more common in people who smoke and the risk increases with age. Bleeding from the stomach or intestine is listed among the complications of an untreated ulcer.

  • Stomach or duodenal ulcer: often upper tummy pain that may burn and be worse at night, with indigestion, bloating and nausea; sometimes painless bleeding is the first sign.

  • Anti-inflammatory painkillers and aspirin: can irritate the stomach lining; the NHS iron deficiency page names NSAIDs such as ibuprofen and aspirin among causes of bleeding in the stomach and intestines.

  • Inflammation of the gullet or stomach lining: reflux, gastritis and erosions, which may follow alcohol or certain medicines.

  • Cancers of the stomach or bowel: less common causes, but the NHS lists blood in the poo that may look red or black as a bowel cancer symptom, and an untreated H pylori infection raises the risk of stomach cancer.

  • Enlarged veins in the gullet in people with advanced liver disease, and blood-thinning medicines that make any bleed heavier, which doctors consider when taking the history.

Red flags: when to call 999, go to A&E or phone NHS 111

Black, tarry stool is itself a red flag. These are the NHS thresholds from its stomach ulcer and bowel cancer pages.

  • Call 999 or go to A&E if your poo is black, sticky and very smelly, or has blood in it.

  • Call 999 or go to A&E if you are vomiting bright red blood or your vomit looks like ground coffee.

  • Call 999 or go to A&E if you have severe tummy pain, a tummy that hurts to touch, or chest pain that started suddenly.

  • Call 999 or go to A&E if you are bleeding non-stop from your bottom, or there is a lot of blood or large clots when you poo.

  • Faintness, a racing heart, cold clammy skin or collapse alongside black stool suggests significant blood loss and is an emergency.

  • Ask for an urgent GP appointment or contact NHS 111 if your poo is black or dark red or you have bloody diarrhoea, and the NHS adds that stomach ulcer symptoms with loss of appetite, early fullness, unintentional weight loss, a lump in the tummy, difficulty swallowing, repeated vomiting or constant tiredness also need urgent advice.

  • Do not drive yourself to A&E; ask someone else to drive, or call 999, and take your medicines with you.

What the doctor asks and examines

The clinician will ask when the black stool began, how many times it has happened, whether you have vomited blood or coffee-ground material, and whether you have had tummy pain, heartburn, weight loss or trouble swallowing. They will ask about medicines (ibuprofen, aspirin, steroids, blood thinners), iron or other supplements, alcohol, smoking, previous ulcers, liver disease and family history of bowel or stomach cancer.

On examination they will check pulse, blood pressure and temperature, look for pallor and feel the tummy. A rectal examination can confirm black stool and exclude other sources. The NHS bowel cancer page notes that a doctor may feel your tummy and perform a rectal examination, and that you can ask for a male or female clinician or for someone else to be in the room.

Tests and treatment

Initial blood tests usually include a full blood count to look for anaemia, and tests of kidney and liver function. The NHS iron deficiency page notes the full blood count is the standard test for anaemia and that a faecal immunochemical test, which looks for blood in a poo sample, may be used when the cause is unclear.

The key test for suspected upper gut bleeding is gastroscopy, in which a thin flexible tube with a camera is passed through the mouth into the stomach. The NHS stomach ulcer page also lists a breath test for H pylori, a stool test and blood tests. Treatment depends on the cause: for ulcers the NHS describes antibiotics to treat H pylori and medicines such as proton pump inhibitors that reduce stomach acid, usually for between 1 week and 2 months. If bleeding is heavy, hospital care with fluids, sometimes blood transfusion, and an endoscopic procedure to stop the bleeding may be needed.

Protecting yourself afterwards

After an ulcer or bleed, the NHS suggests eating smaller meals, leaving 3 to 4 hours between your evening meal and bed, keeping to a healthy weight and managing stress. It advises not taking anti-inflammatory painkillers such as ibuprofen without speaking to a doctor first, avoiding smoking and keeping alcohol modest.

If you were found to be anaemic, iron treatment is usually continued for around 6 months according to the NHS, with repeat blood tests to confirm the level has recovered. Tell every clinician you see about the bleed, since it affects future decisions on painkillers and blood-thinning medicines.

Frequently asked

Questions people ask.

Quick, plain-English answers to the questions we hear most.

  • Is black stool always an emergency?

    Black, sticky, very smelly stool should be treated as urgent: the NHS lists it among the reasons to call 999 or go to A&E in its stomach ulcer advice. Stool that is simply darker after starting iron tablets is a known side effect and is less worrying, but if you are unsure, get advice rather than assuming.

  • Can iron tablets make my poo black?

    The NHS lists darker than usual poo among the side effects of iron tablets. Iron-related darkening tends not to be tarry, sticky or foul-smelling, but if there is any doubt or you feel unwell, seek medical advice.

  • What is the difference between black stool and bright red blood?

    Black tarry stool usually reflects bleeding higher in the gut, where blood has been digested. Bright red blood usually comes from lower down, such as piles or the bowel. Both need medical attention if they are heavy, recurrent or accompanied by other symptoms, and the NHS bowel cancer page lists blood in the poo that may look red or black as a symptom to get checked.

  • Could black stool be a sign of cancer?

    It can be, though it is less common than ulcers. The NHS lists blood in poo, which may look red or black, among bowel cancer symptoms and says finding cancer early can make it easier to treat. Most people with black stool turn out to have a benign cause, but it needs investigation.

  • Will I need a gastroscopy?

    Often yes. A gastroscopy lets the doctor see an ulcer or inflamed lining directly, take samples, and in some cases treat a bleeding point. The NHS also notes that gastroscopy may be arranged when stomach ulcer is suspected.

  • Can ibuprofen cause black stool?

    Anti-inflammatory painkillers such as ibuprofen can irritate the stomach lining and cause ulcers and bleeding; the NHS names them as a main cause of stomach ulcers. Stop and seek urgent advice if black stool appears, and ask a doctor before restarting them.

  • Why am I tired and breathless as well?

    Ongoing blood loss can cause iron deficiency anaemia. The NHS lists tiredness, shortness of breath, noticeable heartbeats and paler skin among its symptoms. A full blood count will check for it.

  • What should I bring to the emergency department?

    Take a list of your medicines, particularly painkillers and blood thinners, and let staff know how often you have passed black stool and whether you have vomited blood. The NHS advises asking someone else to drive you or calling 999 rather than driving yourself.

  • How is a stomach ulcer treated once found?

    The NHS says treatment depends on the cause and may include antibiotics for H pylori and medicines to reduce stomach acid, usually lasting between 1 week and 2 months, sometimes with a repeat test afterwards to confirm it has worked.

Where this comes from

Sources and checking.

This guide is for information, not medical advice.

Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.

Published 2026-10-03, next review 2027-10-03.