lung cavity lung cavity a lung cavity or pulmonary cavity is an abnormal, thick-walled, air-filled space within the lung. cavities in the lung can be caused by infections, cancer, autoimmune conditions, trauma, congenital defects, or pulmonary embolism. the most common cause of a single lung cavity is lung cancer. bacterial, mycobacterial, and fungal infections are common causes of lung cavities. globally, tuberculosis is likely the most common infectious cause of lung cavities. less commonly, parasitic infections can cause cavities. viral infections almost never cause cavities. the terms cavity and cyst are frequently used interchangeably; however, a cavity is thick walled (at least 5 mm), while a cyst is thin walled (4 mm or less). the distinction is important because cystic lesions are unlikely to be cancer, while cavitary lesions are often caused by cancer. this article is about abnormal lung cavities. for the normal lung cavity, see pleural cavity. lung cavityother namespulmonary cavity, lung cavitary lesion, lung cavitationchest x-ray of a person with advanced tuberculosis: infection in both lungs is marked by white arrow-heads, and the formation of a cavity is marked by black arrows.specialtypulmonologycomplicationsaspergillomacausestuberculosis, lung cancer diagnosis of a lung cavity is made with a chest x-ray or ct scan of the chest, which helps to exclude mimics like lung cysts, emphysema, bullae, and cystic bronchiectasis. once an imaging diagnosis has been made, a person’s symptoms can be used to further narrow the differential diagnosis. for example, recent onset of fever and productive cough suggest an infection, while a chronic cough, fatigue, and unintentional weight loss suggest cancer or tuberculosis. symptoms of a lung cavity due to infection can include fever, chills, and cough. knowing how long someone has had symptoms for or how long a cavity has been present on imaging can also help to narrow down the diagnosis. if symptoms or imaging findings have been present for less than three months, the cause is most likely an acute infection; if they have been present for more than three months, the cause is most likely a chronic infection, cancer, or an autoimmune disease. the presence of lung cavities is associated with worse outcomes in lung cancer and tuberculosis; however, if a lung cancer develops cavitation after chemotherapy and radiofrequency ablation, that indicates a good response to treatment. formal definition in the 2008 fleischner society "glossary of terms for thoracic imaging", a cavity is radiographically defined as “a gas-filled space, seen as a lucency or low-attenuation area, within pulmonary consolidation, a mass, or a nodule”. pathologically, a cavity is “usually produced by the expulsion or drainage of a necrotic part of the lesion via the bronchial tree.” lung cavity mimics the first step in evaluating a suspected lung cavity lesion is to exclude other kinds of abnormal air-filled spaces in the lung, including lung cysts, emphysema, bullae, and cystic bronchiectasis. lung cysts are the most common mimics of lung cavities. cavities and cysts are similar in that they are both abnormal, air-containing spaces with clearly defined walls. the difference between cavities and cysts is that cavities are thick walled, while cysts are thin walled. generally, cavities have walls that are at least 5 mm thick, while cysts have walls that are 4 mm or less, and often less than 2 mm. the distinction between cysts and cavities is important because the thicker the wall is, the more likely it is to be cancer. thus, cystic lesions are unlikely to be cancer, while cavitary lesions are often caused by cancer. in a study from 1980 that used chest x-rays to evaluate 65 cases of solitary lung cavities, 0% percent of cavities with walls 1 mm or less were malignant (that is, cancerous), versus 8% of cavities with walls 4 mm or less, 49% of cavities with walls 5 to 15 mm, and 95% of cavities with walls 15 mm or greater. however, a 2007 study that used ct to evaluate lung cavities showed no relationship between wall thickness and the likelihood of malignancy. it did show that malignant cavities are more likely than benign cavities to have an irregular internal wall (49% vs 26%) and have an indentation of the outer wall of the cavity (54% vs 29%). areas of emphysema are abnormal, air-filled spaces that usually do not have visible walls, and bullae are very thin walled (<1 mm). cystic bronchiectasis is irreversible bronchial dilation, which is permanent widening of the bronchioles (small airways) in the lung. it can be distinguished on imaging by a lack of bronchial tapering, meaning that the bronchioles do not get narrower as they travel further into the lung. cystic bronchiectasis is also associated with an increased bronchoarterial ratio, meaning that the bronchioles are larger than the blood vessels that run alongside them. infectious causes bacterial, mycobacterial, and fungal infections are common causes of lung cavities. globally, tuberculosis is likely the most common infectious cause of lung cavities. less commonly, parasitic infections can cause cavities. viral infections almost never cause lung cavities; in a small study of immunocompromised patients with a lung infection, the presence of a cavity on ct scan essentially ruled out viral infection. in the same study, about one-third of the cavities were caused by a bacterial infection, another third were caused by a mycobacterial infection, and another third were caused by a fungal infection. bacterial bacteria can cause lung cavities in one of two ways; they can either enter the lung through the trachea (windpipe), or they can enter through the bloodstream as septic pulmonary emboli (infected blood clots). community-acquired pneumonia is an uncommon cause of lung cavities, but cavitary pneumonia is occasionally seen with streptococcus pneumoniae or haemophilus influenzae infection. however, since these two species of bacteria are such common causes of pneumonia, they may cause a significant fraction of all cavitary pneumonias. the most common bacterial causes of lung cavities are streptococcus species and klebsiella pneumoniae. less commonly, the bacteria staphylococcus aureus, pseudomonas aeruginosa, acinetobacter, escherichia coli, and legionella can cause cavitation. nocardia is a bacterium that can cause pulmonary nocardiosis and lung cavities in people who are immunocompromised (have weak immune systems), including organ transplant recipients who are on immunosuppressants, and those with aids, lymphoma, or leukemia. melioidosis, caused by the bacteria burkholderia pseudomallei, is common in tropical areas, especially southeast asia, and is frequently associated with lung cavities. pneumonia can lead to the development of a lung abscess, which is a pus-containing necrotic lesion of the lung parenchyma (lung tissue). on ct scan of the chest, a lung abscess appears as an intermediate- or thick-walled cavity with or without an air-fluid level (a flat line separating the air in the cavity from the fluid). an abscess can occur anywhere in the lung. risk factors for polymicrobial lung abscesses (abscesses caused by multiple species of bacteria) include alcoholism, a history of aspiration (food or water accidentally going down the trachea), poor dentition (bad teeth), older age, diabetes mellitus, drug abuse, and artificial ventilation. polymicrobial lung abscesses are usually due to aspiration and are located in the posterior segments of the upper lobes or superior segments of the lower lobes. klebsiella pneumoniae is a common cause of lung abscesses and is usually monomicrobial (caused by a single species of bacteria). risk factors include diabetes and chronic lung disease. a lung abscess due to klebsiella can progress to massive pulmonary gangrene, a rare condition in which an entire section of the lung is completely destroyed. half of all cases of pulmonary gangrene are caused by klebsiella. imaging in pulmonary gangrene shows multiple small cavities joining together to form a large cavity. mycobacterial aspergilloma in a tuberculous cavity mycobacteria that can cause cavitations include mycobacterium tuberculosis and nontuberculous mycobacteria, most commonly mycobacterium avium complex. primary tuberculosis is caused by the initial infection with mycobacterium tuberculosis and rarely results in the formation of lung cavities. 90% of people with primary tuberculosis are able to contain the infection and enter a latent phase. reactivation tuberculosis, which is caused by the reactivation of latent tuberculosis, results in lung cavities visible on x-ray 30 to 50% of the time. there are frequently multiple cavities, and they most commonly occur in the apical and posterior segments of the upper lobes or the superior segment of the lower lobes. cavitary tuberculosis is associated with worse outcomes, a higher rate of treatment failure, more frequent relapse after treatment, and a higher risk of transmitting the disease to others. even after successful treatment with anti-tuberculosis drugs, 20-50% of patients with cavitary tuberculosis have persistent cavities, which results in decreased lung function and increased risk of opportunistic infections by aspergillus fumigatus and other fungal pathogens. nontuberculous mycobacteria (ntm) are all mycobacterial species other than mycobacteria tuberculosis (which causes tuberculosis) and mycobacterium leprae (which causes leprosy). ntm are found everywhere in the environment but are most commonly found in soil and water. lung disease is caused by inhaling or ingesting nontuberculous mycobacteria. unlike tuberculosis, ntm infection is not transmitted from person to person. although ntm lung infections can cause lung cavities, the most common finding on imaging is bronchiectasis, which may occur with or without cavities. mycobacterium avium complex (mac) is the most common cause of ntm lung disease in most countries, including the united states. classically, mac infection results in either upper lobe cavities in male smokers with copd or bronchiectasis in thin, older women; however, it is possible to have both cavities and bronchiectasis in the same patient. similar to tuberculosis, the presence of cavities in mac infection is associated with worse outcomes. mycobacterium kansasii, mycobacterium xenopi, and the rapidly-growing mycobacterium abscessus have also been associated with lung cavities. fungal fungal infections that can cause cavitations include histoplasmosis, coccidiomycosis, cryptococcosis, and aspergillosis. aspergillosis, most commonly caused by aspergillus fumigatus, can present in four different ways (listed in order of increasing severity): aspergilloma, allergic bronchopulmonary aspergillosis (abpa), chronic necrotizing aspergillosis, and invasive aspergillosis. all of these are associated with lung cavities except for abpa, which is a hypersensitivity response associated with bronchiectasis on imaging. an aspergilloma is an infection of a pre-existing lung cavity by aspergillus species without tissue invasion and results in the formation of a fungal ball. historically, tuberculosis was the most common cause of the lung cavity (and still is in areas where tuberculosis is endemic); however, the cavity can also be caused by sarcoidosis, bullae, bronchiectasis, or cystic lung disease. chronic necrotizing aspergillosis and invasive aspergillosis are usually seen in immunocompromised people. risk factors for chronic necrotizing aspergillosis include advanced age, alcoholism, diabetes, and mild immunosuppression. invasive pulmonary aspergillosis is mainly seen in severely immunocompromised people, especially those with hematological malignancies (cancers of the blood), bone marrow transplant recipients, and people on long-term corticosteroid therapy, such as prednisone. allogeneic bone marrow transplant recipients have the highest risk of getting invasive aspergillosis. lung transplant recipients are also at high risk. parasitic parasitic infections associated with cavitations include echinococcosis and paragonimiasis. echinococcus is a tapeworm that most commonly infects dogs; people become infected by ingesting food or water that contains echinococcus eggs. this results in cysts forming in the body, most commonly in the liver, but lung involvement is seen in 10-30% of cases. the cysts in the lung sometimes look like cavities on imaging. paragonimus westermani, also called the lung fluke, is a flatworm which is transmitted by eating freshwater crabs or crayfish containing metacercaria (the infective form of the tapeworm). they mature into adult lung flukes in the lung, where cavitations may be seen in 15-59% of cases. paragonimiasis is common in east asia and southeast asia. noninfectious causes lung cancer the most common cause of a single lung cavity is lung cancer. usually, the cavity forms because the cancer grows more rapidly then its blood supply, resulting in necrosis (cell death) in the central part of the cancer. 81% of lung cancers that develop cavities over-express epidermal growth factor receptor (egfr), which could be related to rapid growth, central necrosis, and cavity formation. 11% of primary lung cancers (cancers that start in the lung) have cavities that can be seen on chest x-ray; 22% of primary lung cancers will have cavities on ct, which is more sensitive. squamous-cell carcinoma of the lung is more likely to develop cavitations than lung adenocarcinoma or large-cell lung carcinoma. other primary cancers of the lung, such