Acid-fast bacillus (AFB) testing

Note: this site is for informational purposes only. To view test results or book a test, use the NHS app in England or contact your GP.

Laboratory tests to detect tuberculosis and related bacterial infections by examining sputum and other body samples.

Also known as 
TB culture and sensitivity; acid-fast bacillus smear and culture 
Formal name 
Acid-Fast Bacillus Smear and Culture and Sensitivity 

Who needs this test

You might need AFB testing if your doctor suspects you have tuberculosis (TB) or a related bacterial infection. TB is a serious infectious disease that usually affects the lungs but can spread to other parts of the body. 

Your doctor may request this test if you have symptoms of TB: 

  • Persistent cough lasting more than three weeks 
  • Coughing up blood or blood-streaked phlegm 
  • Chest pain, especially when breathing or coughing 
  • Unexplained weight loss 
  • Fever and chills 
  • Night sweats 
  • Extreme tiredness and weakness 

You may also need this test if: 

  • You’ve had a positive TB skin test (Mantoux test) or blood test (IGRA) and a chest X‑ray shows changes in your lungs 
  • You’ve been in close contact with someone diagnosed with TB 
  • You have a weakened immune system (from HIV, cancer treatment, or immunosuppressant drugs) 
  • You’re being treated for TB and your doctor needs to check if treatment is working 
  • You have symptoms of TB infection outside the lungs (affecting bones, joints, kidneys, or brain) 

Preparing for your test

Most AFB tests use sputum (phlegm from your lungs). Your doctor will usually ask you to provide three separate sputum samples collected early in the morning on different days. Early morning samples work best because mucus builds up in your airways overnight. 

How to collect a sputum sample: 

  1. Take a deep breath and cough deeply to bring up phlegm from your lungs (not just saliva from your mouth) 
  2. Spit the phlegm into the sterile container provided 
  3. Make sure you collect at least 1–2 teaspoons of phlegm 
  4. Close the container tightly and label it with your name and the date 

If you can’t cough up sputum naturally, your doctor may arrange a bronchoscopy. This is a procedure where a thin tube with a camera is passed into your lungs to collect fluid samples. 

For children who can’t produce sputum, stomach washings (gastric aspirates) may be collected instead. This involves swallowing a tube inserted through the nose so fluid can be collected from the stomach. 

If TB is suspected outside your lungs, other samples may be needed such as urine, cerebrospinal fluid, joint fluid, or tissue biopsies.

Understanding your results

What the test measures

AFB testing looks for acid-fast bacilli – rod-shaped bacteria that include the TB bacterium (Mycobacterium tuberculosis) and related bacteria. These bacteria are called ​‘acid-fast’ because of how they appear when stained with special dyes in the laboratory. 

There are two main parts to AFB testing: 

AFB smear: 

  • A quick test (results in 24 hours) where your sample is spread on a glass slide, stained, and examined under a microscope 
  • Tells doctors if acid-fast bacteria are present but doesn’t identify the exact species 

AFB culture: 

  • A slower test (takes several weeks) where bacteria are grown in the laboratory 
  • Identifies the exact bacterial species (TB or other mycobacteria) 
  • Tests which antibiotics will work against the bacteria (sensitivity testing) 

Some laboratories also offer rapid molecular tests that can detect TB bacteria and some drug resistance in less than 24 hours. However, these rapid tests don’t replace the need for culture. 

What your results mean

Positive AFB smear

If your AFB smear is positive, it means acid-fast bacteria are present in your sample. This strongly suggests a mycobacterial infection, most likely TB if you have respiratory symptoms. 

A positive smear also indicates you’re likely infectious and can spread bacteria to others through coughing or sneezing. You may need to isolate until you’ve started effective treatment. 

However, a positive smear doesn’t tell us which species of bacteria you have. Culture results (taking several weeks) are needed to confirm whether it’s TB or another mycobacterium.

Positive AFB culture

A positive culture identifies the exact species of bacteria. The most common is Mycobacterium tuberculosis (TB). Other species include Mycobacterium avium complex (MAC), which often affects people with weakened immune systems. 

Culture also determines antibiotic sensitivity, showing which drugs will work against your infection. This is crucial because some TB bacteria are resistant to standard drugs. 

Drug resistance types: 

  • Multi-drug resistant TB (MDR-TB): resistant to at least isoniazid and rifampicin, the two most effective TB drugs 
  • Extensively drug-resistant TB (XDR-TB): resistant to isoniazid, rifampicin, fluoroquinolones, and at least one injectable drug

Negative results

A negative AFB smear means no acid-fast bacteria were seen in that particular sample. However, TB bacteria may be present in small numbers that are hard to detect, which is why three samples are usually tested. 

A negative culture (no bacterial growth after 6–8 weeks) is more reliable and makes active TB infection very unlikely. However, it doesn’t completely rule out TB in other parts of your body. 

If you’re being treated for TB, negative results after several weeks of treatment indicate your treatment is working and you’re no longer infectious.

Questions to ask your doctor

  • Is my AFB smear positive or negative? 

  • Do I need to stay in isolation? 

  • How long will it take to get my culture results? 

  • If I have TB, which type is it? 

  • Are there any drug-resistant strains? 

  • How long will my treatment last? 

  • When will I need repeat testing? 

What happens next

If your test is positive

Your doctor will: 

  • Prescribe TB treatment immediately (usually before culture results are back) 
  • Arrange chest X‑rays or other imaging to check for disease spread 
  • Ask you to isolate at home until you’re no longer infectious (usually after 2 weeks of treatment) 
  • Report your case to public health authorities (TB is a notifiable disease) 
  • Arrange contact tracing for family members and close contacts

TB treatment

Standard TB treatment involves taking multiple antibiotics for at least six months. The most common combination includes isoniazid, rifampicin, ethambutol, and pyrazinamide. 

You may be offered supervised treatment, depending on your circumstances or lifestyle, through directly observed therapy (DOT). This is where a healthcare worker watches you take your medication.. Stopping TB medication too early or skipping doses can allow bacteria to develop resistance. MDR-TB requires much longer treatment (18–24 months) with more toxic drugs. This is why DOT is used – to ensure you take all your medication and achieve a cure. 

Your treatment may also be monitored using digital technologies such as SMS (text) reminders, the use of smart pill boxes or video-supported treatment (VOT).

Monitoring during treatment

You’ll have regular follow-up including: 

  • Repeat AFB smears and cultures (usually monthly) to check treatment effectiveness 
  • Blood tests to monitor liver function (TB drugs can affect the liver) 
  • Eye tests if you’re taking ethambutol (can affect vision) 
  • Chest X‑rays to track lung healing 

You’re considered no longer infectious when you’ve had at least two weeks of effective treatment and your symptoms are improving. 

If your test is negative

A negative result means: 

  • You probably don’t have active TB infection 
  • Your symptoms may be due to another cause 
  • You may still have latent TB (not active or infectious) if your TB skin or blood test was positive 

If you have latent TB, you may be offered preventive treatment (usually 3–6 months of one antibiotic) to reduce your risk of developing active TB in future. 

What can affect your results

Several factors can affect AFB test results: 

  • Sample quality: saliva instead of deep lung sputum may give false negatives 
  • Sample timing: TB bacteria are shed intermittently, which is why multiple samples are needed 
  • Disease location: TB outside the lungs may not show up in sputum tests 
  • Bacterial numbers: early infection or partially treated TB may have too few bacteria to detect 
  • Previous treatment: antibiotics can reduce bacterial numbers 

This is why doctors typically request three separate sputum samples and may test other body fluids if TB is strongly suspected.

Other tests you might need

AFB testing is usually done alongside other tests: 

TB screening tests: 

Imaging: 

  • Chest X‑ray – shows lung changes from TB 
  • CT scan – more detailed lung imaging 

Molecular tests: 

  • Rapid molecular test – rapid TB detection (results in 2 hours) 
  • PCR testing – detects TB genetic material 

Other cultures: 

  • Bacterial culture – rules out other bacterial infections 
  • Fungal culture – if fungal infection suspected 

Blood tests: 

Additional samples: 

  • Urine AFB (if kidney TB suspected) 
  • Cerebrospinal fluid (if TB meningitis suspected) 
  • Tissue biopsies (if TB affects bones, lymph nodes, or other organs)

About tuberculosis

Tuberculosis is a bacterial infection caused by Mycobacterium tuberculosis. It primarily affects the lungs (pulmonary TB) but can spread to bones, joints, kidneys, brain, and other organs (extrapulmonary TB). In 2023, around 8 people per 100,000 of the population in England were notified as having TB infection. Risk factors for catching TB are having a weakened immune system, spending close time with an infected person, and other lifestyle factors including drug or alcohol misuse. 

TB spreads through the air when someone with active lung TB coughs, sneezes, or speaks. However, it’s not as easily spread as colds or flu – you usually need prolonged close contact to become infected. 

Most people infected with TB bacteria don’t become sick. They have latent TB infection – the bacteria are in their body but inactive. About 90% of people with latent TB never develop active disease. However, people with weakened immune systems are at higher risk. 

TB is curable with proper treatment, but it requires taking multiple antibiotics for at least six months. Incomplete treatment or stopping medication early can lead to drug-resistant TB, which is much harder to treat. 

Learn more about tuberculosis on NHS.uk and NICE guidelines for TB