Coughing up blood can be caused by a variety of lung conditions. Coughing up blood can take different forms: The blood may be bright red or pink and frothy, or it may be mixed with mucus. Also known as hemoptysis (he-MOP-tih-sis).