Tuberculosis spreads through the air when an infected person coughs, sneezes, or speaks

Tuberculosis (TB) is caused by bacteria called Mycobacterium tuberculosis. When someone with active TB in their lungs or throat releases these bacteria into the air, other people nearby can breathe them in. This is the only way TB spreads from person to person — you cannot catch it from touching someone, sharing food or drink, or shaking hands.

The bacteria travel in tiny droplets that float in the air for a few hours. If you breathe in these droplets, the bacteria can lodge in your lungs and begin to grow. Not everyone who breathes in TB bacteria will develop the disease — your immune system may fight off the infection before it takes hold.

Key Takeaways

  • TB spreads only through the air when someone with active TB disease coughs, sneezes, or speaks, not through touch or shared objects.
  • You are most likely to catch TB if you spend prolonged time in a closed space with someone who has untreated active TB.
  • People with latent TB infection (bacteria in the body but no symptoms) cannot spread the disease to others.
  • TB bacteria grow slowly, so infection usually requires repeated or extended exposure rather than a single brief encounter.
  • People on TB treatment become non-contagious within about two weeks, even though they may still have the disease.

Who is most likely to catch TB

Your risk of catching TB depends on how much time you spend around someone with active TB disease and how close you are to them. People who live in the same house, work in the same small office, or share a car with someone who has untreated TB face the highest risk. Brief encounters in open spaces — like passing someone on the street — carry almost no risk because the bacteria disperse quickly in moving air.

Certain groups face higher risk because they spend more time in crowded or enclosed spaces. This includes people living in homeless shelters, prisons, nursing homes, and hospitals. Healthcare workers who treat TB patients without proper protection also have increased exposure. People with weakened immune systems — from HIV, diabetes, or medications that suppress immunity — are more likely to develop TB disease if they do catch the infection.

The difference between latent and active TB infection

When TB bacteria enter your lungs, one of two things happens. Your immune system may wall off the bacteria so they cannot multiply or cause symptoms. This is called latent TB infection. You have the bacteria in your body, but you feel fine and have no symptoms. Importantly, you cannot spread latent TB to anyone else because the bacteria are not active in your lungs.

In other cases, the bacteria overcome your immune system and begin to multiply. This is active TB disease. You develop symptoms like a persistent cough, chest pain, and fever. Only people with active TB disease can spread the infection to others. About 5 to 10 percent of people with latent TB will develop active disease at some point in their lives, usually within the first two years after infection.

How long it takes to catch TB after exposure

TB bacteria grow slowly, so infection does not happen immediately after you breathe them in. The bacteria settle in your lungs and begin to multiply over weeks or months. Most people who develop TB disease do so within the first two years after exposure, but it can take much longer — sometimes years or even decades.

During this time, you may have no symptoms at all. A doctor can detect latent TB using a skin test or blood test, but you will not feel sick. If active TB develops, symptoms usually appear gradually. You might notice a cough that lasts more than three weeks, along with fatigue, fever, and night sweats. The longer symptoms go untreated, the more contagious you become and the more damage the bacteria can do to your lungs.

Why some people develop TB disease and others do not

Your immune system plays the largest role in determining whether TB bacteria will cause disease. If your immune system is strong, it can contain the bacteria and prevent them from multiplying. This is why most people who breathe in TB bacteria never develop symptoms. Your age, overall health, nutrition, and stress level all affect how well your immune system can fight the infection.

Certain medical conditions make it much harder for your body to control TB bacteria. HIV infection is the strongest risk factor — people with HIV are about 20 times more likely to develop active TB if they are exposed. Diabetes, kidney disease, malnutrition, and smoking also weaken immune defenses. Some medications, like those used to treat rheumatoid arthritis, suppress the immune system and increase TB risk. Even if you have one of these conditions, you will not automatically develop TB — but your chances are higher if you are exposed.

TB transmission in healthcare settings and congregate living

Healthcare workers and patients in hospitals face particular risk because TB can spread in waiting rooms, patient wards, and emergency departments. Hospitals use special ventilation systems and isolation rooms to reduce transmission. Healthcare workers wear protective masks when treating patients with suspected or confirmed TB. Despite these precautions, healthcare-associated TB transmission still occurs, especially in facilities without adequate infection control measures.

Congregate living settings — places where many people live in close quarters — create ideal conditions for TB spread. Homeless shelters, prisons, nursing homes, and military barracks have all experienced TB outbreaks. In these settings, people spend extended time in poorly ventilated spaces, and many have weakened immune systems from malnutrition, stress, or other illnesses. Public health programs focus on testing and treating TB in these settings to prevent outbreaks.

When someone with TB stops being contagious

People with active TB disease become much less contagious within about two weeks of starting treatment with TB medications. This does not mean the disease is cured — TB treatment takes six months or longer — but it does mean the bacteria are no longer multiplying rapidly and are not being released into the air as frequently. A person on effective treatment can usually return to work or school after two weeks, though they should follow their doctor's guidance.

Without treatment, someone with active TB remains contagious for months or even years. This is why early diagnosis and treatment are so important — they protect both the person with TB and everyone around them. If someone stops taking TB medications before the full course is complete, they can become contagious again and may develop drug-resistant TB, which is much harder to treat.

Frequently Asked Questions

Can you catch TB from someone who has latent TB?

No. Latent TB means the bacteria are in the body but inactive and not multiplying. Only active TB disease spreads to others. Someone with latent TB can live with family members without risk of transmission.

How long do TB bacteria stay in the air?

TB droplets can float in the air for several hours, but they disperse quickly in moving air or open spaces. Closed, poorly ventilated rooms carry much higher transmission risk than outdoor areas or well-ventilated spaces.

If I was exposed to TB, how will I know if I caught it?

You will not know without testing. Most people who breathe in TB bacteria develop latent infection with no symptoms. A skin test or blood test can detect latent TB. Active TB causes symptoms like a persistent cough, fever, and night sweats that develop gradually over weeks.

Can TB spread through food or water?

TB spreads only through the air from the lungs or throat. You cannot catch it from food, water, or shared utensils. TB from unpasteurized milk is extremely rare in countries with milk safety regulations.

Is TB contagious if someone is on treatment?

After about two weeks of effective treatment, someone with TB becomes much less contagious. However, they should follow their doctor's advice about when it is safe to return to work or school, as individual cases vary.