Tuberculosis is caused by bacteria, not a virus

Tuberculosis (TB) is a bacterial infection, not a viral one. The disease is caused by a bacterium called Mycobacterium tuberculosis. This distinction matters because it changes how doctors treat the disease and how your body fights it.

Because TB is bacterial, it responds to antibiotics — medicines that kill or stop the growth of bacteria. Viral infections, by contrast, do not respond to antibiotics at all. If TB were viral, the standard treatments doctors use today would not work.

The bacterium spreads through the air when an infected person coughs, sneezes, or speaks. It settles in the lungs and can spread to other parts of the body. Most people who breathe in the bacteria do not get sick right away — their immune system keeps the infection under control — but the bacteria can remain dormant and become active later.

Key Takeaways

  • Tuberculosis is caused by a bacterium called Mycobacterium tuberculosis, which means antibiotics can treat it.
  • The bacteria spread through the air and usually settle in the lungs, though they can affect other organs.
  • Most people infected with TB bacteria never develop active disease because their immune system controls the infection.
  • Active TB requires a course of multiple antibiotics taken for several months to cure the infection.
  • Latent TB infection means the bacteria are in your body but not causing illness, and you cannot spread it to others.

How the TB bacterium infects the lungs

When you breathe in air containing TB bacteria, the tiny droplets travel deep into your lungs. The bacteria settle in the air sacs (called alveoli) where oxygen normally enters your bloodstream. Your immune system recognizes the bacteria as a threat and sends white blood cells to surround and contain them.

In most people, the immune system wins this battle. The white blood cells wall off the bacteria, and they become inactive — this is called latent TB infection. A person with latent TB has no symptoms, feels well, and cannot spread the disease to others. They may carry the bacteria for years or even a lifetime without ever knowing they are infected.

In some people — especially those with weakened immune systems, young children, or older adults — the immune system cannot contain the bacteria. The bacteria multiply and cause active TB disease. This is when symptoms appear: a persistent cough lasting more than three weeks, chest pain, fever, night sweats, and weight loss.

Why being bacterial means TB is treatable

Because TB is caused by bacteria, doctors can prescribe antibiotics that specifically target and kill Mycobacterium tuberculosis. The standard treatment for active TB uses a combination of four antibiotics taken together for the first two months, then two antibiotics for the remaining four months — a total of six months of treatment.

This combination approach is important. Using multiple antibiotics at once reduces the chance that the bacteria will develop resistance (the ability to survive despite the medicine). TB bacteria can become resistant if a person takes only one antibiotic or stops treatment early, which is why doctors emphasize completing the full course even after symptoms disappear.

If TB were viral instead, these antibiotics would have no effect. Viral infections are treated differently — sometimes with antiviral medicines, sometimes by letting the immune system fight the infection on its own. The fact that TB responds so well to antibiotics is one of the clearest signs that it is a bacterial disease.

The difference between latent and active TB

Understanding whether TB is bacterial helps explain why there are two forms of the disease. Both involve the same bacterium, but the difference is whether the bacteria are active or dormant.

Latent TB infection means the bacteria are in your body but inactive. You have no symptoms, you feel healthy, and you cannot spread TB to anyone else. A skin test or blood test can detect latent TB, but a chest X-ray will look normal. About one-quarter of the world's population has latent TB.

Active TB disease means the bacteria are multiplying and damaging your lungs or other organs. You have symptoms, you feel sick, and you can spread the disease to others through coughing or sneezing. A chest X-ray usually shows signs of infection, and a sputum test (a sample of mucus coughed up from the lungs) can confirm the bacteria are present.

People with latent TB may never develop active disease. However, the risk is higher for people with HIV, those taking certain medicines that weaken immunity, very young children, and people over 65. Doctors sometimes offer preventive antibiotics to people with latent TB who have a high risk of progression.

How doctors confirm TB is bacterial

When a doctor suspects TB, they use specific tests to confirm it is the Mycobacterium tuberculosis bacterium and not another infection. The most common test is a sputum smear microscopy — the patient coughs up mucus into a container, and a lab technician stains it with special dyes and looks at it under a microscope to see if TB bacteria are present.

Another test is a TB culture, where the sputum sample is placed in a growth medium and left for several weeks to see if TB bacteria multiply. This test is slower but more reliable and can also show whether the bacteria are resistant to certain antibiotics.

A newer test called GeneXpert MTB/RIF uses a machine to detect TB DNA in a sputum sample within two hours. This test can also identify whether the bacteria are resistant to rifampicin, one of the main TB antibiotics. These tests confirm the presence of the bacterium and guide treatment decisions.

Why the bacterial nature of TB matters for treatment and prevention

Knowing that TB is bacterial shapes every part of how doctors manage the disease. Treatment with antibiotics works because bacteria have cell structures and metabolic processes that these medicines can disrupt. Viruses, which are much simpler and use the host cell's machinery to reproduce, are not affected by the same antibiotics.

Prevention also depends on TB being bacterial. Vaccines like BCG (Bacille Calmette-Guérin) work by training the immune system to recognize and fight the TB bacterium. Close contacts of someone with active TB can be tested and, if infected, given preventive antibiotics to stop the bacteria from becoming active.

The bacterial nature of TB also means that public health measures focus on finding and treating people with active disease quickly, because they are the ones spreading the bacteria through the air. Once someone completes their antibiotic course, they are no longer contagious and cannot spread TB to others.

Frequently Asked Questions

Can you catch TB from someone with latent TB?

No. People with latent TB infection have bacteria in their body, but the bacteria are not active and are not being released into the air. You can only catch TB from someone with active TB disease who is coughing, sneezing, or speaking and releasing bacteria-filled droplets into the air.

If TB is bacterial, why doesn't everyone who is exposed get sick?

Most people have an immune system strong enough to contain the TB bacteria once they are inhaled. The bacteria become dormant (latent), and the person never develops active disease. Only about 5 to 10 percent of people infected with TB bacteria will develop active TB at some point in their life, usually within the first two years after infection.

How long does it take antibiotics to cure TB?

The standard treatment course is six months. After the first two weeks of antibiotics, most people stop being contagious and feel much better. However, the bacteria are still present and must be killed completely, which is why the full six-month course is necessary even after symptoms disappear.

Can TB bacteria become resistant to antibiotics?

Yes. If a person does not take all their antibiotics as prescribed, or if they stop treatment early, some bacteria may survive and develop resistance. This creates drug-resistant TB, which is harder to treat and requires longer courses of different antibiotics. Completing the full prescribed course prevents this.

Is there a vaccine for TB since it is bacterial?

Yes. The BCG vaccine trains your immune system to recognize and fight the TB bacterium. It is most effective at preventing severe TB in young children. Many countries include it in their routine childhood vaccination schedule, though it is not used in all countries and does not prevent all cases of TB in adults.