context: Coughing up blood (hemoptysis) can be a sign of a serious medical condition. Infections, cancer, and problems in blood vessels or in the lungs themselves can be responsible. Coughing up blood generally requires medical evaluation unless the hemoptysis is due to bronchitis. var s_context; s_context= s_context || {}; s_context['wb.modimp'] = 'vidfloat'; if(webmd.useragent && webmd.useragent.ua.type === 'desktop'){ webmd.ads2.disable Initial Load(); webmd.ads2.disable Ads Init = true; $(function() { webmd.p.pim.increment(); $('.responsive-video-container').insert After('.module-social-share-container'); require(['video2/1/responsive-player/video-loader'], function(video Loader) { video Loader.init({ autoplay: webmd.useragent.ua.type === 'desktop' && ! !s_sensitive, chron ID: $('article embeded_module[type=video][align=top]:eq(0)').attr('chronic_id'), continuous Play: true, cp Options: { flyout: true }, display Ads: true, mode: 'in-article', sticky: true }) }); }); } else { $(function(){ $('.responsive-video-container').remove(); }); } There are many potential reasons for coughing up blood. Causes for coughing blood include: Bronchitis (acute or chronic), the most common cause of coughing up blood. Hemoptysis due to bronchitis is rarely life-threatening. Bronchiectasis Lung cancer or non-malignant lung tumors Use of blood thinners (anticoagulation) Pneumonia Pulmonary embolism Congestive heart failure, especially due to mitral stenosis Tuberculosis Inflammatory or autoimmune conditions (lupus, Wegener's granulomatosis, microscopic polyangiitis, Churg- Strauss syndrome, and many others) Pulmonary arteriovenous malformations ( AVMs) Crack cocaine Trauma, such as a gunshot wound or motor vehicle accident Hemoptysis can also come from bleeding outside the lungs and airways. Severe nosebleeds or vomiting of blood from the stomach can result in blood draining into the windpipe (trachea). The blood is then coughed up, appearing as hemoptysis. In many people with hemoptysis, no cause is ever identified. Most people with unexplained hemoptysis are no longer coughing up blood six months later. In people who are coughing up blood, testing focuses on determining the rate of bleeding and any risk to breathing. The cause for hemoptysis must then be identified. Tests for coughing up blood include: History and physical examination. By talking to and examining someone who is coughing up blood, a doctor gathers clues that help identify the cause. Chest X-ray. This test may show a mass in the chest, areas of fluid or congestion in the lungs, or be completely normal. Computed tomography ( CT scan). By producing detailed images of structures in the chest, a CT scan can reveal some causes for coughing up blood. Bronchoscopy . A doctor advances an endoscope (flexible tube with a camera on its end) through the nose or mouth into the windpipe and airways. Using bronchoscopy, a doctor may be able to identify the cause of hemoptysis. Complete blood count ( CBC). A test of the number of white and red blood cells in the blood, along with platelets (cells that help blood clot). Urinalysis . Certain causes of hemoptysis also result in abnormalities on this simple urine test. Blood chemistry profile. This test measures electrolytes and kidney function, which may be abnormal in some causes of hemoptysis. Coagulation tests. Alterations in blood's ability to clot can contribute to bleeding and coughing up blood. Arterial blood gas. A test of the levels of oxygen and carbon dioxide in the blood. Oxygen levels can be low in people coughing up blood. Pulse oximetry. A probe (usually on a finger) tests the level of oxygen in the blood. For people who are coughing up blood, treatments aim to stop the bleeding, as well as treat the underlying cause of hemoptysis. Treatments for coughing up blood include: Bronchial artery embolization. A doctor advances a catheter through the leg into an artery supplying blood to the lungs. By injecting dye and viewing the arteries on a video screen, the doctor identifies the source of bleeding. That artery is then blocked, using metal coils or another substance. Bleeding usually stops, and other arteries compensate for the newly blocked artery. Bronchoscopy. Tools on the end of the endoscope can be used to treat some causes of coughing up blood. For example, a balloon inflated inside the airway may help stop bleeding. Surgery. Coughing up blood, if severe and life-threatening, may require surgery to remove a lung (pneumonectomy). Treatments for hemoptysis should also address the underlying reason for coughing up blood. Other treatments for people coughing blood may include: Antibiotics for pneumonia or tuberculosis Chemotherapy and/or radiation for lung cancer Steroids for inflammatory conditions People with excessively thin blood because of medication use may require transfusion of blood products or other medications to curb blood loss. The most common reason for coughing up blood is acute bronchitis, which typically gets better on its own without treatment. People with bronchitis with small amounts of blood in the mucus for less than a week can watch carefully and wait for their condition to improve. Coughing up blood can also be a sign of a serious medical condition. Call your doctor if you have any of these symptoms: Blood in mucus that lasts longer than a week, is severe or getting worse, or comes and goes over time Chest pain Weight loss Soaking sweats at night Fever higher than 101 degrees Shortness of breath with your usual activity level People requiring treatment for coughing blood are nearly always treated in a hospital, until the cause is identified, and the threat of serious bleeding passes.