Quick answer
Coughing up blood, or hemoptysis, is the release of blood from the respiratory tract when coughing. It has many possible causes, including infections such as TB, bronchitis, and pneumonia; lung diseases such as lung cancer and pulmonary embolism; heart conditions such as heart failure and mitral stenosis; chest injuries; and blood thinners. Treatment depends on the cause, so coughing up blood should be checked by a doctor.
Have you ever had a cough that brought up blood? Coughing up blood, or hemoptysis, can be a sign of many different health conditions, from a mild infection to serious problems such as lung or heart disease.
According to data from the Indonesian Ministry of Health (Kemenkes), coughing up blood is often linked to tuberculosis (TB), which is still one of the major health problems in Indonesia, with more than 500,000 cases reported each year. However, coughing up blood does not always mean TB. It can also be caused by a respiratory tract infection, lung cancer, or even a heart problem.
This article discusses in full what coughing up blood is, its causes, the symptoms that accompany it, and the steps to treat and prevent it.
What Is Coughing Up Blood?
Coughing up blood, known by the medical term hemoptysis, is a condition in which a person brings up blood when coughing. The blood usually comes from the respiratory tract, such as the lungs or the bronchi (the branches of the windpipe). The amount of blood can vary, from a few streaks of blood in the phlegm to larger amounts of blood. Although it may look alarming, it is important to remember that not every case of coughing up blood means a serious condition. However, because it can be a symptom of many diseases, from infections to chronic problems, coughing up blood should not be ignored and needs to be checked by a doctor.
The Difference Between Coughing Up Blood and Vomiting Blood
Coughing up blood is often mistaken for vomiting blood, or hematemesis. In fact, the two conditions are very different, both in the source of the blood and in their causes. Coughed-up blood comes from the respiratory tract, such as the lungs or throat, and usually comes with phlegm or mucus. The blood tends to be bright red and frothy because it is mixed with air.
Vomited blood, on the other hand, comes from the digestive tract, such as the stomach or esophagus. It is usually darker, like coffee grounds, because it has mixed with stomach acid. Vomiting blood often comes with other symptoms such as abdominal pain, nausea, or repeated vomiting.
Common Causes of Coughing Up Blood
Coughing up blood can be caused by many medical conditions, from infections to chronic diseases. Here are some common causes to watch out for:
1. Respiratory Tract Infections
Infections of the respiratory tract are among the most common causes of coughing up blood. Some infections often associated with this condition include:
- Tuberculosis (TB): According to data from the Indonesian Ministry of Health, TB is still the main cause of coughing up blood in Indonesia. This bacterial infection attacks the lungs and can damage the tissue, causing blood to come up when coughing.
- Acute or Chronic Bronchitis: Inflammation of the bronchi (the branches of the windpipe) can cause irritation and mild bleeding, especially in chronic bronchitis, which smokers often have.
- Pneumonia: A lung infection that causes inflammation and fluid buildup in the air sacs (alveoli) can also trigger coughing up blood, especially if the infection is severe.
2. Lung Diseases
Besides infections, several lung diseases can also trigger coughing up blood:
- Lung Cancer: According to the World Health Organization (WHO), lung cancer is one of the main causes of cancer deaths worldwide. A tumor growing in the lung can damage blood vessels and cause bleeding.
- Pulmonary Embolism: This condition occurs when a blood clot blocks a blood vessel in the lungs, which can cause coughing up blood along with chest pain and shortness of breath.
- Pulmonary Fibrosis: This disease causes the lung tissue to become stiff and damaged, which can trigger bleeding when coughing.
3. Heart and Blood Vessel Disorders
Some cardiovascular problems can also cause coughing up blood, such as:
- Heart Failure: This condition causes fluid to build up in the lungs (pulmonary edema), which can trigger coughing up blood, especially at night.
- Mitral Stenosis: A narrowing of the heart’s mitral valve can raise the pressure in the blood vessels of the lungs, causing bleeding.
- Other Cardiovascular Disorders: Conditions such as pulmonary hypertension or an aortic aneurysm can also cause coughing up blood.
4. Other Factors
In addition to infections and chronic diseases, several other factors can also trigger coughing up blood:
- Chest Injury: Trauma or injury to the chest can damage the lung tissue or airways, causing bleeding.
- Use of Blood Thinners: Medications such as warfarin or aspirin can increase the risk of bleeding, including in the respiratory tract.
- Other Causes: Exposure to harmful chemicals, air pollution, or a smoking habit can also damage the respiratory tract and cause coughing up blood.
Symptoms That Accompany Coughing Up Blood
Coughing up blood often does not appear as a single symptom. It usually comes with other symptoms that can give clues about the underlying cause. Here are some symptoms that commonly accompany coughing up blood:
- Coughing Up Fresh Blood or Blood-Streaked Phlegm: The main symptom of hemoptysis is bringing up blood when coughing. This can be fresh, bright red blood or phlegm mixed with streaks of blood. The amount of blood can vary from a little to quite a lot. Although a small amount of blood does not always mean a serious condition, it should still be taken seriously and checked by a doctor.
- Shortness of Breath or Chest Pain: Shortness of breath and chest pain often accompany coughing up blood, especially if the cause is related to a lung or heart problem. Shortness of breath can occur because of fluid buildup in the lungs (pulmonary edema) or a blocked airway. Meanwhile, chest pain can be a sign of an infection, a pulmonary embolism, or even a heart attack.
- Fever, Fatigue, or Weight Loss: If coughing up blood comes with fever, fatigue, or unexplained weight loss, it may point to a serious infection such as tuberculosis (TB) or pneumonia. According to data from the Indonesian Ministry of Health, TB is still one of the main causes of coughing up blood in Indonesia, with typical symptoms such as a prolonged fever and weight loss.
Diagnosing Coughing Up Blood
To determine the cause of coughing up blood, the doctor will usually carry out a series of examinations, from a physical examination to supporting tests. Here are the steps commonly taken in diagnosing coughing up blood:
1. Physical Examination and Medical History
The doctor’s first step is to ask about the patient’s medical history, including:
- How often the coughing up blood happens and how much blood comes up.
- Other accompanying symptoms, such as shortness of breath, chest pain, fever, or weight loss.
- A history of previous illnesses, such as respiratory tract infections, lung disease, or heart problems.
- Smoking habits or exposure to pollutants and harmful chemicals.
2. Supporting Tests
If needed, the doctor will recommend supporting tests to get more detailed information about the cause of coughing up blood. Some commonly performed tests include:
- Chest X-Ray: This test is used to look at the condition of the lungs and detect any infection, tumor, or other abnormality that may be causing the bleeding.
- CT Scan: A CT scan gives a more detailed picture than a chest X-ray. This test can help the doctor see the structure of the lungs and blood vessels more clearly, making it easier to diagnose conditions such as a pulmonary embolism or lung cancer.
- Bronchoscopy: This procedure is done by inserting a small tube with a camera (bronchoscope) into the airways. Bronchoscopy allows the doctor to see the condition of the airways directly and take tissue samples if needed.
- Laboratory Tests (Blood and Sputum): Blood tests can help detect infections, blood clotting disorders, or autoimmune diseases. Meanwhile, a sputum test is done to identify bacteria or abnormal cells, especially if an infection such as TB or pneumonia is suspected.
By combining a physical examination, medical history, and supporting tests, the doctor can determine the cause of coughing up blood accurately. This is very important to make sure the patient receives proper and effective treatment.
How to Treat Coughing Up Blood
The treatment for coughing up blood depends heavily on the underlying cause. The doctor will plan treatment based on the diagnosis, which may include medical treatment and home care. Here are some commonly taken steps:
1. Medical Treatment
Medical treatment aims to address the cause of coughing up blood and prevent further complications. Some medical treatment options include:
Medications
- Antibiotics: If coughing up blood is caused by a bacterial infection such as tuberculosis (TB) or pneumonia, the doctor will prescribe antibiotics to kill the bacteria causing the infection.
- Anticoagulants: For cases of coughing up blood caused by a pulmonary embolism (a blood clot in the lungs), blood thinners such as anticoagulants may be given to prevent new clots from forming.
- Chemotherapy or Targeted Therapy: If coughing up blood is caused by lung cancer, chemotherapy or targeted therapy may be needed to control the growth of cancer cells.
Medical Procedures
- Bronchial Artery Embolization: This procedure is done to stop bleeding by blocking the problem blood vessel using a catheter. Embolization is often used for severe bleeding that cannot be controlled with medication.
- Surgery: In more serious cases, such as a lung tumor or extensive lung tissue damage, surgery may be needed to remove the damaged tissue or stop the source of bleeding.
2. Home Care
Besides medical treatment, home care also plays an important role in recovery. Here are some steps you can take:
- Get Enough Rest: Enough rest helps the body recover and strengthens the immune system. Avoid strenuous activities that can make the condition worse, especially if coughing up blood comes with shortness of breath or fatigue.
- Avoid Smoking and Exposure to Pollutants: Smoking and exposure to pollutants can worsen irritation of the respiratory tract. Quitting smoking and avoiding cigarette smoke, dust, or harmful chemicals are important steps to keep coughing up blood from coming back.
- Eat Nutritious Food to Boost Immunity: Nutritious foods such as fruits, vegetables, protein, and whole grains can help strengthen the immune system. Also make sure to drink enough water to stay hydrated so that mucus in the airways is easier to clear.
Preventing Coughing Up Blood
Preventing coughing up blood is better than treating it. By taking the right preventive steps, you can reduce your risk of this condition. Here are some ways to prevent coughing up blood:
- Avoid Smoking and Secondhand Smoke: Smoking is one of the main risk factors that can damage the airways and lungs, increasing the likelihood of coughing up blood. According to data from the Indonesian Ministry of Health, more than 30% of deaths from lung disease in Indonesia are linked to smoking. Quitting smoking and avoiding exposure to cigarette smoke (passive smoking) are important steps to keep your lungs healthy and prevent coughing up blood.
- Have Regular Health Checkups: Regular health checkups, such as a medical checkup, can help detect health problems early before they develop into more serious conditions. For example, routine checkups can identify respiratory tract infections, lung disorders, or heart problems that may cause coughing up blood. Early detection allows faster and more effective treatment.
- Get Vaccinated to Prevent Infections Such as TB and Pneumonia: Vaccination can help prevent infections that can cause coughing up blood. Some recommended vaccines include:
- TB Vaccine / Bacillus Calmette-Guerin (BCG) Vaccine: This vaccine is given to prevent tuberculosis, one of the main causes of coughing up blood in Indonesia.
- Pneumonia Vaccine: The pneumococcal vaccine can protect you from the bacterial infection that causes pneumonia, which can also trigger coughing up blood.
- Influenza Vaccine: Influenza virus infection can worsen the condition of the respiratory tract, so this vaccine is also important to prevent complications.
Conclusion
Coughing up blood, or hemoptysis, is a condition that should not be ignored because it can be a sign of many health problems, from respiratory tract infections such as TB and pneumonia to serious diseases such as lung cancer or heart problems.
The symptoms that accompany coughing up blood, such as shortness of breath, chest pain, fever, or weight loss, need to be taken seriously. An accurate diagnosis through a physical examination, medical history, and supporting tests such as a chest X-ray, CT scan, or bronchoscopy is very important to determine the cause and the appropriate treatment. Treatment may include medication, medical procedures, and home care such as getting enough rest and living a healthy lifestyle.
Health is a valuable asset that needs to be protected from an early age. By understanding the causes, symptoms, and treatment of coughing up blood, we hope you can be more alert to signs of health problems that may appear. Do not hesitate to consult a doctor promptly if you have suspicious symptoms, because early detection can prevent more serious complications.
Remember that the information in this article is educational and is not a substitute for professional medical advice. If you are coughing up blood, consult a specialist promptly or visit Heartology Cardiovascular Hospital for proper evaluation and care.
At Heartology Cardiovascular Hospital, cardiologists can explain your condition and the procedures, risks, and benefits of testing, as well as answer your questions about heart and blood vessel health.
Keep as a reminder
Checklist before Your Consultation
Tick what you have prepared.
0 of 6 items checked
Checks are kept only while this page is open.
After reading
Discuss Your Questions with a Doctor.
Bring your notes and any test results you want to discuss. A consultation helps decide which tests and treatment are right for you.
Our team confirms the schedule and what you need for your visit. The information on this page is for educational purposes and does not replace medical consultation, diagnosis, or treatment. For any health concerns, please consult a doctor directly.
Frequently Asked Questions.
Here are some frequently asked questions about coughing up blood.
Is Coughing Up Blood Always Dangerous?
Not always. Coughing up blood can be caused by mild conditions such as airway irritation or a mild infection. However, if there is a lot of blood or it comes with serious symptoms such as shortness of breath or chest pain, consult a doctor right away.
Is Coughing Up Blood Contagious?
Coughing up blood itself is not contagious, but if it is caused by an infection such as TB or pneumonia, that disease can spread through droplets (tiny drops of saliva) when a person coughs or sneezes.
Sources and Transparency.
The information on this page is for educational purposes and does not replace medical consultation, diagnosis, or treatment. For any health concerns, please consult a doctor directly.
If you find information that needs clarifying, let us know through our Contact Us page.



