Most viral pneumonia gets better on its own, but treatment focuses on managing symptoms while your immune system clears the infection

Viral pneumonia does not respond to antibiotics because antibiotics kill bacteria, not viruses. Instead, treatment aims to keep you comfortable and help your body fight the infection. For most people, this means rest, fluids, and over-the-counter fever or pain relief while the illness runs its course—typically one to three weeks. For severe cases or people at high risk of complications, doctors may prescribe antiviral medications or recommend hospital care.

The specific treatment depends on which virus caused the pneumonia, how sick you are, and whether you have other health conditions. A chest X-ray or CT scan can show how much of your lungs are affected, and this helps your doctor decide whether you can recover at home or need closer monitoring.

Key Takeaways

  • Viral pneumonia does not respond to antibiotics and usually improves with rest, fluids, and symptom management at home.
  • Antiviral medications such as oseltamivir (for influenza) or remdesivir (for severe COVID-19) may be prescribed within the first few days of illness, depending on the virus and how sick you are.
  • Hospitalization is recommended if you have difficulty breathing, low oxygen levels, confusion, or severe underlying health conditions.
  • Supportive care—oxygen therapy, IV fluids, and mechanical ventilation in critical cases—addresses complications rather than the virus itself.

Home care for mild to moderate viral pneumonia

If your doctor determines you can recover at home, the main goal is to prevent dehydration and give your body time to heal. Drink water, broth, or other fluids regularly throughout the day. Rest as much as possible—your immune system works harder when you are active, so sleep and quiet time matter. You do not need bed rest for the entire illness, but avoid strenuous activity until you feel noticeably better.

For fever and body aches, acetaminophen or ibuprofen can help, following the dosage on the package. A humidifier or steam from a hot shower may ease cough and congestion, though evidence for this is mixed. Do not use cough suppressants if you are coughing up mucus—coughing helps clear your airways. If you smoke, stop during your illness; smoking damages the lungs' ability to clear infection.

Monitor your symptoms closely. Seek medical care if you develop shortness of breath at rest, chest pain, confusion, or if your fever returns after improving. These can signal that the infection is worsening or that a secondary bacterial infection has developed.

Antiviral medications and when they are used

Antivirals are prescription drugs that slow viral replication and may shorten illness duration or reduce severity. They work best when started early—usually within the first 48 hours of symptom onset—and are most effective for specific viruses. Oseltamivir (Tamiflu) targets influenza and is most helpful for people at high risk of severe illness: those over 65, pregnant people, people with chronic lung or heart disease, or those with weakened immune systems. Even in these groups, oseltamivir reduces symptom duration by roughly one day if started promptly.

For COVID-19, remdesivir (Veklury) is an IV antiviral reserved for hospitalized patients with moderate to severe disease. Paxlovid, an oral antiviral combination, is used for outpatient treatment of COVID-19 in high-risk people within five days of symptom onset. For other viral causes of pneumonia—such as respiratory syncytial virus (RSV) or parainfluenza—specific antivirals are limited, and treatment remains supportive.

Your doctor will weigh the benefits and risks of antivirals based on the virus identified, your age, your health history, and how sick you are. A rapid test or PCR test can identify influenza or COVID-19 within hours, allowing faster decisions about antiviral use.

Oxygen therapy and hospital-level care

If your blood oxygen level drops below a certain threshold—usually below 90 to 92 percent on a pulse oximeter—supplemental oxygen is needed. This can be delivered through a nasal cannula (small tubes in the nose), a face mask, or a high-flow system that delivers oxygen at higher concentrations. Oxygen does not treat the virus, but it prevents organ damage from low oxygen and reduces the work your heart must do.

Hospital admission is recommended if you have persistent low oxygen despite supplemental oxygen, severe shortness of breath, altered mental status, signs of sepsis, or unstable vital signs. In the hospital, doctors can provide IV fluids to prevent dehydration, monitor your heart rhythm and oxygen levels continuously, and escalate care if needed. For the most critically ill patients, mechanical ventilation—a breathing machine—takes over the work of breathing while the lungs heal.

The length of hospitalization varies widely. Some people improve within days; others with severe pneumonia may spend weeks in the hospital, particularly if they require a ventilator.

Managing secondary bacterial infection

Viral pneumonia sometimes opens the door to bacterial superinfection, in which bacteria colonize the damaged lungs. Signs include a return of fever after initial improvement, a change in cough character (such as coughing up thick, colored mucus), or worsening shortness of breath. If your doctor suspects bacterial superinfection based on symptoms or imaging, they may prescribe antibiotics such as amoxicillin-clavulanate or azithromycin.

This is different from giving antibiotics routinely for viral pneumonia. Routine antibiotics for uncomplicated viral pneumonia do not improve outcomes and contribute to antibiotic resistance. Antibiotics are used only when there is evidence of bacterial infection alongside the viral illness.

Recovery and when to seek follow-up care

Most people recover fully from viral pneumonia within two to four weeks, though fatigue and a lingering cough can persist for six weeks or longer. Gradual return to normal activity—starting with short walks and light tasks—helps rebuild strength without triggering relapse. Avoid intense exercise until you have been symptom-free for at least a week.

Follow-up with your doctor is recommended if symptoms do not improve after two weeks, if you develop new symptoms, or if you are in a high-risk group (older adults, people with chronic illness, immunocompromised individuals). A follow-up chest X-ray may be ordered to confirm the lungs have cleared, particularly if you were hospitalized or had severe pneumonia.

Vaccination against influenza and COVID-19 reduces your risk of these viral pneumonias in the future. If you had severe pneumonia, ask your doctor about pneumococcal vaccination as well, which protects against some bacterial pneumonias that can follow viral illness.

Frequently Asked Questions

Can antibiotics help viral pneumonia at all?

No. Antibiotics only kill bacteria, not viruses. If your pneumonia is purely viral, antibiotics will not speed recovery and may increase antibiotic resistance. Antibiotics are prescribed only if a bacterial infection develops alongside or after the viral infection.

How long does it take to feel better?

Fever and acute symptoms usually improve within one to two weeks for mild cases. However, cough and fatigue can linger for four to six weeks. Severe cases requiring hospitalization take longer—recovery may take several weeks to months, especially if mechanical ventilation was needed.

Is it safe to go back to work or school while recovering?

Most people are no longer contagious after three to five days of illness, though this varies by virus. Check with your employer or school about their policies. You should feel substantially better and have no fever before returning to normal activities, as exertion during active illness can slow recovery.

What is the difference between viral and bacterial pneumonia treatment?

Bacterial pneumonia is treated with antibiotics, which directly kill the bacteria. Viral pneumonia has no direct antiviral for most viruses, so treatment is supportive—oxygen, fluids, and symptom management—while your immune system clears the infection. A few viruses like influenza and COVID-19 have specific antivirals, but these work best early in illness.

When should I go to the hospital instead of staying home?

Seek hospital care if you have shortness of breath at rest, chest pain, confusion, persistent high fever, or if you are coughing up blood. Also go if you are over 65, pregnant, have chronic heart or lung disease, or a weakened immune system and your symptoms are worsening. Your doctor can assess whether home care is safe for your situation.