Whooping cough (pertussis) is diagnosed primarily through a nasopharyngeal swab, where a thin, flexible swab is inserted deep into the nose to collect a sample from the back of the nasal passage. The most common lab test run on that sample is a PCR test, which detects bacterial DNA and delivers results quickly. Timing matters: testing is most accurate within the first three to four weeks after coughing begins.
The Nasopharyngeal Swab
The sample collection for whooping cough is different from a standard throat swab or the shallow nasal swabs used for COVID and flu. A nasopharyngeal swab goes much deeper. A healthcare provider inserts a thin, flexible swab along the floor of one nostril until it reaches the nasopharynx, the area where the back of the nasal cavity meets the throat. The swab stays there for several seconds to absorb secretions, then gets removed. It’s uncomfortable and can make your eyes water, but it’s over quickly.
This deeper sample is necessary because the bacteria that causes whooping cough, Bordetella pertussis, colonizes the lining of the upper respiratory tract. A regular nose swab or throat swab won’t reliably pick it up. For young children and infants, a nasopharyngeal aspirate (suctioning a small amount of mucus from the back of the nose) is sometimes used instead.
PCR Testing: The Most Common Method
Once the sample is collected, a PCR test is the standard way to check for whooping cough. PCR works by detecting the DNA of the pertussis bacteria, even in very small amounts. It has excellent sensitivity, meaning it’s good at catching true infections. Results typically come back within one to two days, though turnaround varies by lab.
The critical limitation of PCR is the testing window. It works best during the first three to four weeks after cough onset. After the fourth week, the amount of bacterial DNA in the nasopharynx drops rapidly, which increases the risk of a false-negative result. If you’ve been coughing for more than a month, a PCR test may come back negative even if you do have pertussis.
Bacterial Culture
Culture testing grows the actual bacteria from your nasopharyngeal sample in a lab. The CDC considers culture the gold standard for pertussis because it’s the most specific test available, meaning a positive result is highly reliable. The trade-off is that culture is slower (results can take several days to over a week) and less sensitive than PCR, so it misses more cases. The bacteria are fragile and difficult to grow, especially if you’ve already started antibiotics.
In practice, culture is often ordered alongside PCR rather than on its own. During suspected outbreaks, public health guidelines recommend obtaining culture confirmation from at least one case to verify that PCR results are accurate and not picking up other bacteria by mistake.
Blood Tests for Later-Stage Illness
If you’ve been coughing for more than four weeks and the PCR window has closed, a blood test measuring antibodies against pertussis may be used. This serology test looks for immune proteins your body produces in response to the infection. It’s most useful in the later stages of illness when swab-based tests are less reliable.
Serology has important blind spots. It isn’t useful if you’ve been recently vaccinated, because the vaccine itself triggers antibody production that’s indistinguishable from a natural infection. It’s also unreliable in infants younger than six months, who may still carry antibodies passed from their mother during pregnancy.
Testing in Infants
Infants, especially those under three months old, are the highest-risk group for severe whooping cough, and testing works a bit differently for them. The classic “whoop” sound may be absent in very young babies. Instead, the warning signs can include pauses in breathing (apnea), turning blue, or difficulty feeding.
PCR and culture remain the primary tests, but a routine blood count can also provide strong diagnostic clues in this age group. An elevated white blood cell count above 20,000 per microliter with more than half of those cells being lymphocytes is considered virtually diagnostic of pertussis in young infants with typical symptoms. This blood finding can help clinicians act quickly while waiting for swab results.
No Home Test Exists
Unlike COVID or flu, there is no at-home test kit for whooping cough. The test requires a nasopharyngeal sample collected by a trained provider, and the PCR and culture analyses are performed in a clinical laboratory. Even major commercial labs that offer direct-to-consumer testing for other infections do not currently support in-home collection for pertussis.
What Affects Test Accuracy
Several factors can cause a test to miss an active infection. The most common is simply waiting too long. If you test after the fourth week of coughing, the bacteria may no longer be detectable on a swab, even though you’re still sick. Starting antibiotics before getting tested can also clear enough bacteria to produce a false negative, particularly on culture. And because the sample needs to come from deep in the nasopharynx, a swab that doesn’t go far enough can return an unreliable result.
If your provider suspects whooping cough based on your symptoms, especially the characteristic intense coughing fits, gasping for air, or vomiting after coughing, they may treat you with antibiotics even before test results come back or even if your test is negative. A clinical diagnosis based on symptoms and known exposure is sometimes the most practical path, particularly late in the course of illness when lab tests are least reliable.

