Most lung infections clear up within one to four weeks, depending on the cause and your overall health. The right treatment depends entirely on whether bacteria, a virus, or a fungus is behind the infection. Bacterial lung infections typically require antibiotics, while viral infections usually resolve on their own with supportive care. Knowing what type of infection you’re dealing with is the single most important step toward getting better.
Bacterial vs. Viral: Why the Cause Matters
Bacterial pneumonia and bronchitis are treated with antibiotics prescribed by a healthcare provider. These infections tend to produce thicker, colored mucus (yellow, green, or rust-colored), higher fevers, and more severe symptoms overall. Antibiotics can shorten the illness significantly, but only if the infection is actually bacterial.
Viral lung infections, which account for a large share of pneumonia and most cases of acute bronchitis, don’t respond to antibiotics at all. Viral pneumonia causes flu-like symptoms and is more likely to resolve on its own. Providers may prescribe antivirals in certain cases to reduce how long you’re sick and lower the severity, but many people recover without specific medication. Taking antibiotics for a viral infection won’t help and can contribute to antibiotic resistance, so getting the right diagnosis matters more than getting a prescription quickly.
Managing Symptoms While You Heal
Whether your lung infection is bacterial or viral, symptom management makes a real difference in how you feel day to day. The key is matching the right approach to the right symptom.
Productive Cough (Bringing Up Mucus)
If your cough is wet and producing mucus, an expectorant can help. Expectorants don’t stop the cough. Instead, they make each cough more productive, helping mucus leave your airways more efficiently. Avoid using a cough suppressant for a productive cough, since you actually want that mucus out of your lungs.
Dry, Irritating Cough
A cough suppressant is more appropriate when the cough is dry and unproductive, especially if it’s keeping you from sleeping. Over-the-counter options containing dextromethorphan are the most common choice.
Honey for Cough Relief
Honey is a surprisingly effective option for easing cough symptoms. A systematic review published in BMJ Evidence-Based Medicine found that honey significantly reduced cough frequency and severity compared to usual care. It performed better than diphenhydramine (a common antihistamine used in many cough products) and was roughly comparable to dextromethorphan, the active ingredient in most over-the-counter cough suppressants. A spoonful of honey in warm water or tea can provide meaningful relief, though it should never be given to children under one year old due to the risk of botulism.
Staying Hydrated and Resting
Fluids thin out mucus, making it easier to cough up. Water, broth, and warm teas all count. Rest is not optional with a lung infection. Your body is directing significant energy toward fighting the infection, and pushing through normal activities can delay recovery or lead to setbacks.
Breathing Exercises That Speed Recovery
Once the worst of the infection passes, residual congestion and reduced lung capacity can linger for weeks. Specific breathing techniques help clear remaining mucus and rebuild lung strength. These aren’t just for severe cases. Anyone recovering from pneumonia, a chest cold, or COVID-related lung infection can benefit.
Diaphragmatic breathing strengthens the large dome-shaped muscle below your lungs. Lie on your back, place one hand on your belly, and breathe deeply. Your hand and belly should rise as you breathe in. Take 10 slow, even breaths, rest for a minute, and repeat.
Pursed-lip breathing helps if you’re struggling to exhale fully. Purse your lips as if slowly blowing out a candle, inhale as much as you can, then exhale fully through pursed lips. Practice at rest first, then try it while walking or climbing stairs as your stamina improves.
Huffing is exhaling like you’re trying to fog up a mirror, a bit more forcefully than normal. Take a deep breath in, hold it for a few seconds, then huff slowly for as long as you can. This keeps airways open and helps dislodge secretions without the strain of hard coughing.
Active cycle of breathing combines several techniques into one sequence: take four relaxed breaths, then four deep breaths (holding each for three seconds before exhaling), followed by four more relaxed breaths, three huffing exhalations, and then a cough. This cycle systematically loosens and moves mucus upward.
You can also purchase a flutter valve or acapella valve online for around $20 to $40. You breathe into the device, and small balls inside create vibrations that travel into your airways and loosen secretions. Set the resistance at a moderate difficulty level and do 10 breaths, two to three times daily, followed by a cough to expel what the vibrations loosened.
What Recovery Actually Looks Like
Recovery timelines vary more than most people expect. Some people feel better and return to normal routines in one to two weeks, while others need a month or longer. According to the National Heart, Lung, and Blood Institute, most people continue to feel tired for about a month after a lung infection, even after other symptoms have faded. This lingering fatigue is normal and doesn’t mean the infection is still active.
Cough is often the last symptom to leave. A residual dry cough can persist for two to three weeks after the infection itself has cleared. If your cough is gradually improving week over week, that’s typically a good sign even if it’s annoying. A cough that worsens after initially improving, or one that produces new blood-tinged mucus, warrants a call to your provider.
Warning Signs That Need Immediate Attention
Most lung infections resolve at home, but some progress to dangerous territory. Shortness of breath that worsens rather than improves, a rapid respiratory rate, chest pain when breathing, or a fever above 102°F (39°C) that doesn’t respond to fever reducers are all reasons to seek urgent care. In older adults, the first sign of a worsening lung infection may be mental confusion or sudden changes in alertness rather than the typical respiratory symptoms.
Oxygen levels matter. If you have a pulse oximeter at home, readings consistently below 94% suggest your lungs aren’t exchanging oxygen well enough, and you should get medical evaluation. If you don’t have one, pay attention to whether your lips or fingertips look bluish, or whether you feel winded doing things as simple as walking across a room.
Reducing Your Risk of Future Infections
Pneumococcal vaccines are the most direct way to prevent the bacterial lung infections that tend to be the most severe. The CDC recommends pneumococcal vaccination for all children under 5, given as a four-dose series starting at 2 months of age. For adults 50 and older who have never received a pneumococcal conjugate vaccine, one of the newer vaccines (PCV15, PCV20, or PCV21) is recommended. If PCV20 or PCV21 is used, no additional pneumococcal vaccines are needed. If PCV15 is used, a follow-up dose of PPSV23 is given one year later.
Adults younger than 50 with certain risk factors, including chronic lung disease, heart disease, diabetes, or a weakened immune system, may also qualify for pneumococcal vaccination. Annual flu shots and staying current on COVID vaccines further reduce the risk of viral lung infections that can lead to secondary bacterial pneumonia. Basic habits matter too: frequent handwashing, not smoking (or quitting if you do), and avoiding close contact with people who are actively sick all lower your chances of picking up your next lung infection.

