A sputum sample is a collection of thick mucus coughed up from deep in your lungs, used to diagnose infections, lung diseases, and sometimes cancer. It’s not the same as saliva or spit. Sputum (also called phlegm) is produced in your lower airways and contains immune cells that fight bacteria, fungi, and other foreign substances, which makes it a valuable window into what’s happening inside your lungs.
Sputum vs. Saliva
The distinction matters because mixing up the two can ruin a test. Saliva comes from glands in your mouth and tells a lab almost nothing about your lungs. Sputum forms deeper in the respiratory tract and carries immune cells, trapped microbes, and debris from your airways. When a lab receives a sample, technicians examine it under a microscope and look for skin cells shed from the inside of your mouth. If there are more than 10 of these cells visible in a single microscope view, the sample is considered contaminated with saliva and the culture results can’t be reliably interpreted.
A good sample, by contrast, shows high numbers of white blood cells (a sign of active immune response) and very few mouth cells. This quality check happens before any further testing begins.
Why Your Doctor Orders One
Sputum samples are most commonly used to identify the specific germ causing a lung or airway infection. If you have pneumonia, a persistent cough, or symptoms of tuberculosis, a sputum culture can pinpoint whether bacteria, fungi, or another organism is responsible, and which treatments will work against it. This is especially useful when a standard antibiotic isn’t clearing things up or when your doctor suspects something unusual.
Beyond infections, sputum can also be examined for abnormal cells. This is called sputum cytology, and it’s used as a screening tool for lung cancer. The test picks up cancer cells about 60% of the time overall, though it’s considerably better at detecting tumors located in the central airways (about 73%) compared to those on the lung’s periphery (around 44%). It’s also more accurate for certain cancer types: sensitivity reaches roughly 77% for squamous cell carcinoma but drops to about 40% for adenocarcinoma. Multiple samples improve detection rates, which is why doctors sometimes ask you to collect sputum on three separate mornings.
What Sputum Color Can Tell You
You’ve probably noticed that mucus changes color when you’re sick. Yellow or green sputum does correlate with bacterial infection, but the relationship isn’t as straightforward as many people assume. A study published in the Scandinavian Journal of Primary Health Care found that yellow or green sputum correctly identified bacterial infection about 79% of the time, but the flip side was less impressive: nearly half of people without bacterial infections also had discolored sputum. The green tint comes from an enzyme released by white blood cells as part of the general immune response, not specifically from bacteria, which means viral bronchitis can produce green or yellow mucus too.
That said, color still provides useful clues. Samples that are green, yellow-green, yellow, or rust-colored yield bacteria more often than clear, white, or cream-colored ones. Rust-colored sputum can point toward specific types of pneumonia. Blood-tinged sputum can appear with severe infections, but it also shows up with viral airway illnesses and warrants medical attention to rule out more serious causes.
How to Collect a Good Sample
The best sputum samples come first thing in the morning, before you eat, drink, or smoke. Mucus accumulates in your airways overnight while you sleep, so an early morning cough tends to produce a deeper, more concentrated specimen.
Before collecting, brush your teeth thoroughly and gargle with plain water (not mouthwash) to clear bacteria and food particles from your mouth. This reduces contamination. When you’re ready, take a few slow, deep breaths, then cough hard from deep in your chest, not just a throat-clearing hack. The goal is to bring up material from your lungs, not your throat. Spit the sputum directly into the sterile container your doctor or lab provides, then close it tightly.
If you’re collecting at a clinic for something like tuberculosis testing, you may be asked to do this outdoors or in a well-ventilated area, away from other people. This is a precaution to prevent airborne spread of potentially infectious droplets.
When You Can’t Cough It Up
Some people, especially those who aren’t producing much mucus, struggle to cough up a usable sample on their own. In these cases, a healthcare provider can perform sputum induction. You’ll breathe in a mist of sterile water or concentrated salt water delivered through a nebulizer. The mist irritates your airways just enough to increase secretions and trigger a productive cough. The process is straightforward and typically takes 15 to 20 minutes. It’s commonly used in tuberculosis diagnosis when a patient can’t spontaneously produce sputum.
What Happens in the Lab
Once your sample passes the quality check, it goes through one or more types of analysis depending on what your doctor is looking for.
- Gram stain: A quick test where the sample is treated with dyes and examined under a microscope. It can reveal bacteria within hours and give an early indication of the type of infection, which helps guide initial treatment while the full culture grows.
- Culture: The sample is placed on special growth plates and incubated to see what organisms grow. Bacterial cultures can take several days to produce final results because some organisms grow slowly. Once identified, the lab tests which antibiotics the bacteria respond to.
- Cytology: A pathologist examines the sample under a microscope looking for abnormal or cancerous cells. This is typically ordered when lung cancer is suspected, particularly in patients with a persistent cough, unexplained weight loss, or an abnormal chest X-ray.
Preliminary culture results are sometimes available within 24 to 48 hours, but final identification and antibiotic sensitivity results can take three to five days or longer, depending on the organism. Tuberculosis cultures are an outlier: because the bacteria grow extremely slowly, results can take several weeks.
Tips for a Reliable Result
The most common reason a sputum test fails is that the sample is mostly saliva. If your results come back inconclusive or show only normal mouth bacteria, you may be asked to repeat the collection. A few practical steps improve your odds of getting it right the first time: collect in the morning before eating, rinse your mouth with water, and focus on a deep chest cough rather than a shallow throat clear. If the mucus feels stuck, try taking several deep breaths and exhaling forcefully before attempting to cough. Staying well hydrated the evening before can also help loosen secretions overnight.

