Coughing up blood with mucus is a sign of a medical problem in the lungs or airways. According to MedlinePlus, coughing up blood with mucus can indicate bronchitis, blood clot in the lung, vasculitis, pneumonia, pulmonary edema, tuberculosis or systemic lupus erythematosus, among other medical conditions and diseases.
The medical term for coughing up blood in mucus is hemoptysis, states MedlinePlus. Sometimes it is caused by breathing materials such as food into the lungs. Taking cough suppressants can treat the condition if it results from heavy coughing. You should visit your doctor for a medical checkup if it persists beyond two days.