A lung cavity is a gas-filled space that forms inside lung tissue where solid tissue or fluid used to be, and it is almost always a sign that something has gone wrong. Whether that something is dangerous depends entirely on the underlying cause, which ranges from treatable bacterial infections to advanced lung cancer. Some cavities heal with antibiotics and time; others signal a disease that has already done serious damage. The short version: the cavity itself is not what hurts you, but the disease creating it often can, and some of the complications cavities produce are emergencies in their own right.
How a Cavity Forms in the Lung
Healthy lung tissue is spongy and filled with tiny air sacs. A cavity is different: it is a distinct, often visible hole within a mass or area of damaged lung, usually spotted on a chest X-ray or CT scan.1PubMed Central. Cavitary pulmonary disease The process that creates it starts when the tissue inside a lung nodule, tumor, or area of infection dies and liquefies. That dead material then drains out through the airways, leaving behind a hollow space filled with air.2Annals of the American Thoracic Society. Imaging Approach to Cavitary Lung Disease Think of it like a rotten spot in a piece of fruit: the interior breaks down and empties, leaving a shell behind. The walls of that shell, and what else is happening in the surrounding lung, tell doctors a great deal about what caused the cavity in the first place.
Tuberculosis and Lung Abscesses
Infection is the single most common reason a lung cavity appears, and tuberculosis is the classic culprit. When TB bacteria multiply in the lung, the immune system walls them off and attacks. In some people, the center of that battle zone dies off and empties into the airways, forming a cavity. This is bad news for two reasons. First, cavitary TB is harder to treat. Patients with cavities are more likely to relapse, more likely to develop drug-resistant strains, and face worse outcomes overall.3PubMed Central. Cavitary tuberculosis: the gateway of disease transmission Second, cavitary TB is far more contagious. A systematic review and meta-analysis found that patients with cavities on their chest imaging were roughly twice as infectious as those without, because the cavity opens a direct channel between the infection and the airways, making it easier to cough up and spread bacteria.4Epidemiology & Infection. Risk factors for infectiousness of patients with tuberculosis: a systematic review and meta-analysis
Lung abscesses are the other major infectious cause. An abscess forms when bacteria create a walled-off pocket of pus inside the lung, and once the pocket drains, a cavity larger than about two centimeters remains. The most frequent trigger is aspiration, when food, saliva, or stomach contents are inhaled into the lungs during a period of reduced consciousness, whether from heavy sedation, seizures, or intoxication. Alcohol use disorder is the single most common predisposing condition for lung abscesses.5PubMed Central. Lung abscess-etiology, diagnostic and treatment options Most abscesses respond well to prolonged courses of antibiotics, though some need drainage or surgery if they do not shrink on their own.
When a Fungus Moves In
One of the more unsettling complications of a lung cavity is what happens after the original disease is treated. An empty cavity is essentially a warm, moist room inside your body, and certain fungi, especially species of Aspergillus, can colonize it. The fungus grows into a dense ball of fungal material, mucus, and debris that sits inside the cavity like a ball in a cup. This structure is called an aspergilloma, or sometimes a “fungus ball.”6Respiratory Medicine. Non-surgical treatment options for pulmonary aspergilloma
Aspergillomas tend to develop in people who already have an underlying lung condition such as COPD, sarcoidosis, or prior TB. They can sit quietly for years, but the main danger is hemoptysis, which is coughing up blood. The fungus irritates and erodes the blood vessels lining the cavity wall, and when those vessels break, the bleeding can range from a few streaks of blood in the sputum to a life-threatening hemorrhage.7PubMed. Behind the fungus ball: pulmonary aspergillosis! People with weakened immune systems are at particular risk for this kind of secondary infection.8PubMed Central. Aspergillosis: An Unwanted Tenant of Lung Cavity in an Immunocompromised Host
Cancer as a Cause
Not every lung cavity is an infection. When a lung tumor outgrows its blood supply, the center can die and hollow out, creating a cavity that looks deceptively like an abscess on imaging. Among malignant cavitary lung lesions, squamous cell carcinoma is the most common type. One study using PET/CT scans found that non-small-cell lung cancer accounted for about 87% of cavitary lung lesions that turned out to be malignant, with squamous cell carcinoma standing out as the dominant subtype.9PubMed Central. Are there radiographic, metabolic, and prognostic differences between cavitary and noncavitary nonsmall cell lung carcinoma? Small-cell lung cancer, by contrast, rarely forms cavities.10PubMed Central. Small-Cell Lung Cancer Cavities: Primary or Secondary?
Cavitary squamous cell carcinoma tends to show up at an advanced stage. Research has found that more than three-quarters of patients with this presentation already had locally advanced or metastatic disease at the time of diagnosis, often after months of symptoms like cough, fever, and weight loss that were initially mistaken for infection.11PubMed. Cavitating squamous cell lung carcinoma-distinct entity or not? The overlap in symptoms between a cancerous cavity and a lung abscess is one of the trickiest diagnostic problems in chest medicine, and it is the reason doctors push hard for a tissue sample whenever the picture is unclear.
How Doctors Tell the Difference
When a cavity shows up on a CT scan, the first question is always whether it is caused by infection, cancer, or something else. Wall thickness is one of the most reliable early clues. Thin-walled cavities tend to be benign: a maximum wall thickness of about 7 mm or less is strongly suggestive of a non-malignant cause. Thick walls point toward cancer: walls thicker than about 23 mm are highly specific for malignancy, correctly identifying a cancerous lesion about 97% of the time, though that threshold catches fewer than half of all malignant cavities because many cancerous walls fall between 7 and 23 mm.12PubMed Central. Solitary lung cavities on CT imaging: Differentiating malignant and nonmalignant diseases Other imaging details help too. The presence of surrounding patchy lung inflammation or scattered tiny nodules nearby tends to favor infection over cancer.13Clinical Radiology. Solitary lung cavities: CT findings in malignant and non-malignant disease
Imaging alone rarely settles the question, though. When doubt remains, doctors need a tissue sample. CT-guided needle biopsy is one option and works well even for thin-walled cavities, with one study reporting overall diagnostic accuracy above 93%.14PubMed. Diagnostic Accuracy of CT-Guided Core Needle Biopsy for Thin-Walled Cavitary Pulmonary Lesions But sticking a needle through the chest wall into a cavity carries risks, particularly a collapsed lung or, if the cavity is infected, spilling pus into the space around the lung. A newer alternative is navigation bronchoscopy, which lets a doctor guide a thin scope through the airways directly into the cavity without puncturing the chest wall. The cavity’s contents can be sampled for culture, and its walls can be biopsied to check for both infection and cancer simultaneously.15Medical Mycology. Navigation bronchoscopy: A new tool for pulmonary infections
Complications That Make Cavities Genuinely Dangerous
A cavity becomes an emergency when it causes massive bleeding or collapses the lung. The bleeding risk is highest in cavitary tuberculosis because the ongoing inflammation can weaken nearby pulmonary artery branches, creating fragile outpouchings called Rasmussen’s aneurysms. If one of these ruptures, the result is sudden, massive hemoptysis that can be fatal without rapid intervention.16PubMed Central. Rasmussen’s aneurysm: A forgotten scourge These aneurysms are uncommon, but when they bleed, the volume of blood can overwhelm the patient’s ability to keep their airway clear.17PubMed. Massive hemoptysis due to Rasmussen aneurysm: detection with helicoidal CT angiography and successful steel coil embolization
Cavities can also erode through the surface of the lung into the pleural space, the thin gap between the lung and the chest wall. When air leaks through this hole, the lung collapses, a condition called pneumothorax. If the communication between the airway and the pleural space stays open, it forms a bronchopleural fistula, an abnormal channel that keeps the lung from reinflating and often requires prolonged chest drainage or surgery. This complication has been documented across a range of cavity-forming diseases, including COVID-19 lung damage.18PubMed Central. Persistent pneumothorax with bronchopleural fistula in COVID lung – An emerging challenge
Treatment Approaches
How a cavity gets treated depends almost entirely on its cause. There is no single treatment for “a hole in the lung” because the cavity is a consequence, not a standalone disease.
For infectious cavities, the cornerstone is antimicrobial therapy. Bacterial lung abscesses typically require weeks of intravenous and then oral antibiotics, with surgery reserved for cases that do not respond. Cavitary tuberculosis demands the standard multi-drug TB regimen, though treatment courses may be extended when cavities are large or slow to close. Fungal cavities, particularly aspergillomas, are trickier because antifungal drugs often do not penetrate well into the cavity itself.
When a cavity causes life-threatening bleeding, the first-line emergency treatment is bronchial artery embolization. A catheter is threaded into the arteries feeding the bleeding area, and tiny particles or coils are injected to block the blood flow and stop the hemorrhage. Initial success rates are high, with one series reporting immediate bleeding control in 85% of patients and another achieving over 92% technical success.19JAMA Surgery. Role of Bronchial Artery Embolization in the Management of Hemoptysis20PubMed Central. Bronchial Artery Embolization in Life-Threatening Hemoptysis: Outcome and Predictive Factors The long-term picture is less rosy: bleeding recurs in a substantial portion of patients because embolization treats the symptom, not the underlying cavity. One study reported a long-term success rate of about 58%, with the diagnosis driving the outcome: patients with certain conditions were far more likely to bleed again than others.21PubMed Central. Long-term outcomes of the bronchial artery embolization are diagnosis dependent
In the case of Rasmussen’s aneurysms specifically, selective embolization with coils can be used to seal the weakened artery. In one reported case, a patient with active TB and massive hemoptysis was found to have three pseudoaneurysms on a single pulmonary artery branch, two of which were successfully embolized, with the bleeding resolving within 48 hours.22PubMed. Embolization of multiple Rasmussen aneurysms as a treatment of hemoptysis
When Surgery Becomes Necessary
Surgery enters the picture when medications and embolization are not enough, or when the diagnosis itself is uncertain. For aspergillomas causing repeated bleeding, removing the affected lobe of the lung is considered the definitive cure. This is not a casual procedure. The chronic inflammation around a fungal cavity produces dense scar tissue and adhesions that make the operation technically challenging. One surgical center reported a complication rate of about a third after lobectomy for aspergilloma, though there were no recurrences during follow-up and no long-term deaths, suggesting the up-front risk pays off with lasting benefit.23PubMed Central. Surgical treatment of pulmonary aspergillosis: A single center experience
For patients too frail to tolerate a full lobectomy, an alternative procedure called cavernostomy can be performed. Instead of removing the entire lobe, the surgeon opens the cavity, cleans out its contents, and packs the space with a muscle flap to prevent recurrence. This is gentler but comes with its own trade-offs, including a potentially rockier recovery compared to formal resection.24PubMed. Surgical management of pulmonary cavity associated with fungus ball When a cancerous cavity is involved, the surgical approach follows standard lung cancer protocols: removing the tumor along with sufficient surrounding tissue, assuming the disease has not already spread too far for surgery to help.
Autoimmune and Other Unusual Causes
Not every lung cavity stems from infection or cancer. A handful of autoimmune and inflammatory conditions can produce cavities that baffle clinicians, at least initially. Granulomatosis with polyangiitis, formerly called Wegener’s granulomatosis, is one of the most well-known examples. This condition inflames blood vessels and can produce lung nodules that sometimes cavitate, alongside other chest findings like patchy consolidation and ground-glass opacities.25ReumatologÃa ClÃnica (English Edition). Pulmonary Manifestations of Granulomatosis With Polyangiitis These cavities can look indistinguishable from TB or cancer on a scan, and they often require biopsy to sort out. Treatment is immunosuppressive therapy rather than antibiotics or surgery.
Rheumatoid arthritis can also, rarely, produce cavitating lung nodules. And certain congenital conditions produce cyst-like spaces in children’s lungs that can be mistaken for acquired cavities. Congenital pulmonary airway malformations, for instance, create developmental cysts that are present from birth and are among the most commonly seen cystic lung lesions in infants and children.26PubMed. Cystic lung disease in infants and children These are structurally different from the acquired cavities discussed above, they develop from abnormal lung growth rather than tissue destruction, but they can still cause problems like recurrent infections or, very rarely, malignant transformation.
Drug-Induced Cavitation During Cancer Treatment
Here is a scenario that surprises many patients: cancer treatments themselves can create new lung cavities. Anti-angiogenic drugs, which work by choking off the blood supply to tumors, sometimes cause the tumor to hollow out as its core dies. In one trial of lung cancer patients receiving these types of drugs, about 14% developed new tumor cavitation during treatment, with the change appearing at a median of roughly two months after starting therapy.27Journal of Thoracic Oncology. Tumor Cavitation During Therapy with Antiangiogenesis Agents in Patients with Lung Cancer The mechanism is not fully understood but likely involves the drugs damaging the tumor’s blood vessels and causing the interior to break down.28PubMed Central. Tumor cavitation in patients with non-small-cell lung cancer receiving anti-angiogenic therapy with apatinib
Whether drug-induced cavitation is a good sign or a bad sign remains debated. In some cases it means the drug is working, the tumor is dying from the inside. In other cases, the new cavity brings its own risks, including bleeding and the possibility of a pneumothorax if the cavity sits near the lung surface. Doctors managing these patients need to weigh the cavity’s appearance in context: is it shrinking overall while hollowing out, or is it growing and becoming structurally unstable? The distinction matters, and it is one of those areas where chest imaging every few weeks becomes part of the treatment routine rather than a one-time diagnostic event.