A humidifier itself does not cause pneumonia, but a dirty or misused one can create conditions that make respiratory infection more likely

Pneumonia is a lung infection caused by bacteria, viruses, or fungi — not by moisture in the air. A humidifier adds water vapor to a room, which is not the same as introducing an infection. However, a humidifier that is not cleaned regularly can grow mold and bacteria inside its tank and mist, and breathing in those particles over time may increase your risk of respiratory problems, including infections.

The real danger is not humidity itself but contamination. When a humidifier sits unused for days, or when tap water sits in the tank, microorganisms colonize the water and the machine's interior surfaces. When you turn it on, you are not just releasing water vapor — you are releasing whatever is living in that water. For people with weakened immune systems, asthma, or chronic lung disease, this exposure can trigger or worsen infection.

Key Takeaways

  • Clean your humidifier tank and internal parts every one to three days, depending on how often you use it, to prevent mold and bacterial growth.
  • Use distilled water instead of tap water, because minerals and microorganisms in tap water feed mold and bacteria inside the machine.
  • Empty the tank completely and let it dry between uses if you are not running the humidifier continuously, because standing water is where contamination starts.
  • Keep indoor humidity between 30 and 50 percent — higher levels actually encourage mold growth in your home, which is a separate respiratory risk.
  • If you have asthma, COPD, or a weakened immune system, talk to your doctor before using a humidifier, because contaminated mist can trigger symptoms or infection.

How contamination builds up inside a humidifier

A humidifier tank is a warm, wet environment — exactly what mold and bacteria need to grow. Tap water contains minerals and sometimes bacteria that are harmless to drink but thrive when they sit in a still tank for hours or days. Within 24 to 48 hours, visible mold or slimy biofilm can form on the tank walls and the machine's internal parts.

When you run the humidifier, it releases this contaminated water as a fine mist that you breathe directly into your lungs. Unlike water you drink, which your stomach acid kills, mist goes straight to your respiratory tract. If the contamination is heavy enough, or if your immune system is already stressed, your lungs may not clear the particles fast enough, and infection can take hold.

The risk is highest in warm climates or during humid seasons, when the machine runs longer and the tank stays warm — conditions that speed up microbial growth. It is also higher if you refill the tank without emptying and drying it first, because you are adding fresh water to old, contaminated water.

The difference between humidity and infection risk

Humidity itself — the amount of water vapor in the air — does not cause pneumonia. In fact, moderate humidity (30 to 50 percent) can help your respiratory tract stay healthy by keeping mucous membranes moist, which helps them trap and clear particles and germs. Too little humidity can make your throat and airways dry and irritated, which can make you more vulnerable to infection.

The problem arises when humidity gets too high. Above 50 percent, indoor air becomes an ideal breeding ground for mold, dust mites, and other allergens. Mold spores in the air can trigger asthma attacks or allergic reactions, and over time, mold exposure can lead to serious lung infections, especially in people with weakened immunity. So a humidifier that is not maintained properly can actually create the opposite of its intended benefit.

How to clean and maintain a humidifier safely

Empty the tank completely after each use or every one to three days, depending on how often you run the machine. Do not let water sit in the tank between uses. Rinse the tank with hot water and wipe the interior surfaces with a clean cloth or soft brush to remove any visible slime or discoloration.

Once a week, soak the tank and any removable parts in a solution of one part white vinegar to one part water for 30 minutes, then scrub gently and rinse thoroughly. Vinegar kills mold and bacteria without harsh chemicals. If you see black spots or heavy buildup, replace the tank or the entire machine — some damage cannot be cleaned away safely.

Always use distilled water, not tap water. Distilled water has no minerals or bacteria to feed microbial growth, so contamination develops much more slowly. It costs a few dollars per gallon and is worth the investment if you are using the humidifier regularly or if you have respiratory health concerns.

Let the machine dry completely between uses. If you use it continuously, empty and refill the tank daily rather than topping it off. Check the manufacturer's instructions for any parts that need replacement — some machines have filters or wicks that trap particles and need changing every month or two.

Who should be cautious about humidifier use

People with asthma, COPD, cystic fibrosis, or other chronic lung disease should talk to their doctor before using a humidifier, because even a well-maintained machine can trigger symptoms in sensitive airways. For these individuals, the risk of breathing in any particles — even from distilled water — may outweigh the benefit of added humidity.

People with weakened immune systems, including those with HIV, those undergoing chemotherapy, or those taking immunosuppressant medications, are at higher risk of serious infection from contaminated mist. If you fall into this group and want to use a humidifier, ask your doctor which type is safest and how often to clean it.

Infants and young children have developing lungs and may be more sensitive to contaminated mist. If you use a humidifier in a child's room, clean it more frequently — every one to two days — and monitor the child for any new cough, wheezing, or difficulty breathing.

Signs that your humidifier may be contaminated

Visible mold or slime inside the tank is the clearest sign. Mold appears as black, green, or pink spots or a slimy coating on the tank walls or the machine's internal parts. If you see this, empty the machine when ready, clean it thoroughly with vinegar and water, and consider replacing it if the contamination is heavy.

A musty or moldy smell coming from the humidifier is another warning. This smell means mold is actively growing inside, even if you cannot see it yet. Stop using the machine and clean it right away.

If you or anyone in your home develops a new cough, wheezing, or shortness of breath shortly after starting to use a humidifier, the machine may be the cause. Stop using it, clean it thoroughly, and see a doctor if symptoms do not improve within a few days.

Alternatives if you cannot use a standard humidifier

If you have respiratory concerns or a weakened immune system, other ways to add moisture to the air include running a hot shower and breathing the steam, placing a bowl of hot water in a room (out of reach of children), or using a saline nasal spray to keep your airways moist. These methods do not introduce contaminated mist and carry lower infection risk.

Some people find that straightforward keeping a window cracked open on humid days, or using a damp cloth to wipe surfaces, raises humidity enough without the maintenance burden of a machine. If you live in a very dry climate and need consistent humidity, a whole-house humidifier attached to your HVAC system may be safer than a portable one, because it is serviced by professionals and less likely to harbor contamination.

Frequently Asked Questions

Can you get pneumonia from breathing humidifier mist?

Pneumonia is caused by infection, not by humidity itself. However, if a humidifier is contaminated with mold or bacteria, breathing in that mist over time can increase your risk of respiratory infection, especially if your immune system is weak or your lungs are already compromised. A clean, well-maintained humidifier using distilled water carries much lower risk.

How often should I clean my humidifier?

Empty and rinse the tank every one to three days, depending on how often you use the machine. Once a week, soak removable parts in a vinegar-and-water solution. If you use the humidifier continuously, empty and refill it daily rather than topping it off, because old water left in the tank is where contamination grows fastest.

Is tap water or distilled water better for a humidifier?

Always use distilled water. Tap water contains minerals and sometimes bacteria that feed mold and bacterial growth inside the tank. Distilled water has no minerals or microorganisms, so contamination develops much more slowly. The small cost of distilled water is worth the reduced infection risk.

What humidity level is safe indoors?

Aim for 30 to 50 percent humidity. Below 30 percent, your airways become dry and irritated. Above 50 percent, mold and dust mites thrive, which can trigger asthma and allergies. Most humidifiers have a built-in hygrometer or you can buy one separately to monitor the level.

Should I use a humidifier if I have asthma?

Talk to your doctor first. Moderate humidity can help some people with asthma by keeping airways moist, but contaminated mist or humidity above 50 percent can trigger attacks. Your doctor can advise whether a humidifier is safe for you and, if so, how to use it safely.