Pulmonary edema is a condition where fluid accumulates in the lungs, filling the tiny air sacs that normally handle oxygen exchange. This fluid buildup makes it progressively harder to breathe and, in severe cases, can lead to respiratory failure. It develops either because the heart isn’t pumping effectively (the most common cause) or because the lung tissue itself is damaged by infection, toxins, or other triggers.
How Fluid Ends Up in Your Lungs
Your lungs contain millions of small air sacs called alveoli, surrounded by a network of extremely thin blood vessels. Normally, a precise balance of pressures keeps fluid inside those blood vessels and out of the air sacs. When that balance breaks down, fluid seeps first into the tissue surrounding the air sacs (interstitial edema) and then into the air sacs themselves (alveolar edema).
Once fluid fills the alveoli, oxygen can no longer pass efficiently from inhaled air into the bloodstream. Carbon dioxide also has trouble moving in the opposite direction. The result is a drop in blood oxygen levels that worsens as more air sacs flood. In normal conditions, the pressure inside the pulmonary capillaries sits around 10 mmHg. Anything that pushes that pressure higher, or anything that damages the walls of those capillaries, can set the process in motion.
Heart-Related (Cardiogenic) Causes
Most cases of pulmonary edema trace back to a problem with the heart. When the left side of the heart weakens or fails, it can no longer pump blood forward efficiently. Blood pools behind it, backing up into the veins of the lungs and raising pressure in the pulmonary capillaries. That increased pressure forces fluid through the vessel walls and into the surrounding lung tissue.
The chain of events is straightforward: pooling on the left side of the heart leads to increased pulmonary venous pressure, which raises capillary pressure, which pushes fluid into the interstitial spaces, and eventually into the alveoli. Common heart conditions that trigger this include heart attacks, congestive heart failure, cardiomyopathy (a weakened or stiffened heart muscle), malfunctioning heart valves on the left side, and abnormal heart rhythms that reduce pumping efficiency.
Non-Heart-Related Causes
When the heart is functioning normally but the lungs still fill with fluid, the cause is usually direct damage to the lung’s capillary walls. Instead of pressure forcing fluid out, the walls themselves become leaky. This category includes a wide range of triggers:
- Acute respiratory distress syndrome (ARDS): a severe inflammatory reaction in the lungs, often triggered by sepsis, pneumonia, or major trauma
- High altitude pulmonary edema (HAPE): occurs when unacclimatized people ascend rapidly above 2,500 to 3,000 meters (roughly 8,000 to 10,000 feet)
- Drug reactions and toxins: opioid overdose, salicylate toxicity, and inhaled chemical irritants can all damage lung tissue
- Severe infections: viral pneumonias and other lung infections that cause widespread inflammation
- Neurogenic pulmonary edema: a sudden surge of pressure triggered by a brain injury, seizure, or stroke
- Near-drowning, blood transfusion reactions, and pulmonary embolism
Kidney failure and severe malnutrition can also contribute by lowering protein levels in the blood. Those proteins normally help hold fluid inside blood vessels, so when they drop, fluid leaks more easily into the lungs.
What Pulmonary Edema Feels Like
The hallmark symptom is shortness of breath, which can come on suddenly (in acute cases) or build gradually over days or weeks (in chronic heart failure). Many people notice that breathing worsens when lying flat, a sensation called orthopnea, and they may need to prop themselves up on extra pillows to sleep. Waking up in the middle of the night gasping for air is another classic sign.
As fluid accumulates, you may hear a gurgling or rattling sound in the chest. A cough develops, sometimes producing frothy sputum that can be tinged pink from small amounts of blood. The skin may take on a bluish tint, particularly around the lips and fingertips, as oxygen levels fall. Heart rate and breathing rate both climb as the body tries to compensate. In advanced cases of high altitude pulmonary edema, body temperature can rise to around 38.5°C (101.3°F), which can be mistaken for an infection.
How It’s Diagnosed
A chest X-ray is typically the first and most informative test. Several telltale signs show up on the image. In early stages, interstitial edema creates a hazy, fluffy appearance across both lungs, with diffuse opacities reaching toward the lung bases. Short horizontal lines near the edges of the lungs, known as Kerley B lines, indicate fluid in the tissue between the air sacs.
As the condition worsens, denser, patchy white areas appear where alveoli have flooded completely. Fluid may also collect in the space between the lungs and chest wall, showing up as a cloudy region at the base of the lung (pleural effusion). When the underlying cause is heart failure, the X-ray often reveals an enlarged heart shadow, with a wider-than-normal ratio between the heart and the chest cavity. Blood tests measuring oxygen levels and markers of heart stress, along with an echocardiogram to assess heart function, help pin down the cause.
Acute Treatment
Acute pulmonary edema is a medical emergency. The immediate priority is restoring oxygen levels while reducing the fluid overload. Supplemental oxygen is given right away, and many patients benefit from a breathing mask that delivers continuous positive airway pressure (CPAP). This approach pushes a steady stream of pressurized air into the lungs, keeping the flooded air sacs open so they can still exchange some oxygen. Research shows CPAP reduces the need for a breathing tube and lowers hospital mortality, making it a first-line strategy. It’s also relatively simple to set up, even outside an intensive care unit. A bilevel version that also assists with each inhalation can relieve the sensation of breathlessness more quickly, though outcomes between the two are similar.
For patients with fluid overload, intravenous loop diuretics help the kidneys clear excess fluid rapidly. Vasodilators, which relax blood vessels and reduce the pressure the heart pumps against, are another cornerstone of treatment for cardiogenic cases. They work by widening veins (reducing the volume of blood returning to the heart) and arteries (making it easier for the heart to pump), collectively lightening the heart’s workload. These medications require close blood pressure monitoring and are not used if systolic pressure drops below 90 mmHg.
High Altitude Pulmonary Edema
HAPE deserves special attention because it affects otherwise healthy people and is entirely preventable. It typically strikes within the first few days after a rapid ascent above 2,500 to 3,000 meters and is rarely seen once someone has spent a week acclimatizing at a given altitude. The underlying problem is an exaggerated constriction of blood vessels in the lungs in response to low oxygen, which drives pulmonary artery pressure up and causes capillary walls to fail under the stress.
Early symptoms are easy to dismiss: a dry cough, mild breathlessness during exertion, and reduced stamina. As HAPE progresses, breathlessness becomes debilitating even at rest, the cough worsens, and gurgling sounds develop in the chest. Pink frothy sputum signals an advanced case. The single most effective treatment is descent. Dropping even 500 to 1,000 meters can produce rapid improvement. Supplemental oxygen and specific medications that lower pulmonary artery pressure also help when descent is delayed.
Long-Term Management and Prevention
For people whose pulmonary edema stems from heart failure, preventing recurrence depends on managing the underlying heart condition. This means consistent use of prescribed heart failure medications, regular monitoring, and lifestyle adjustments that reduce the burden on the heart.
Sodium intake is a key piece of the puzzle. Excess sodium causes the body to retain water, increasing blood volume and the pressure the heart must work against. Dietary sodium restriction is a standard recommendation in heart failure management, with studies suggesting that moderate sodium limits combined with controlled fluid intake can reduce congestion more effectively than either strategy alone.
Fluid restriction is more nuanced than many people assume. Current European guidelines advise all heart failure patients to avoid excessive fluid intake, but strict limits (under 1 to 1.5 liters per day) are generally reserved for people with severe heart failure or those whose blood sodium has dropped below 130 mEq/L, a sign the body is retaining too much water relative to salt. For most people with heart failure, staying within 1.5 to 2.5 liters per day is reasonable. Routine daily weigh-ins help catch fluid retention early: a sudden gain of more than 1 to 2 kilograms over a day or two is a red flag that fluid is building up again.
In-hospital mortality for acute cardiogenic pulmonary edema sits around 10 to 11 percent, according to a large retrospective study of over 200 patients. That figure underscores both the seriousness of the condition and the importance of early recognition. Rapid treatment dramatically improves outcomes, which is why understanding the warning signs, especially worsening breathlessness, inability to lie flat, and frothy cough, matters so much for anyone living with heart disease.

