How to Test for a Fungal Infection: What Doctors Use

Fungal infections are diagnosed through a combination of visual examination, microscopy, cultures, blood tests, and sometimes biopsy, depending on whether the infection is on the skin, in the lungs, or deeper in the body. The right test depends entirely on where the infection is and how severe it’s suspected to be. Here’s what each method involves and when it’s used.

Skin, Nail, and Hair Infections

For infections on the body’s surface, the most common starting point is a KOH prep. A clinician scrapes a small sample from the affected area, typically from the active, spreading edge of a rash or lesion. The area is first cleaned with alcohol to remove any creams or powders that could interfere. A blunt scalpel is held vertically against the skin and drawn across to collect flakes of skin, which are placed on a glass slide.

A few drops of potassium hydroxide (KOH) solution are added to dissolve the skin cells while leaving fungal structures intact. Under a microscope, the clinician looks for branching filaments, spores, or yeast forms that confirm a fungal infection. For thick, hardened skin or nail clippings, a stronger KOH concentration is used, and the sample may need 12 to 24 hours to soften enough to read. Hair samples require gentler handling because infected hairs are fragile and can fall apart if overprocessed.

This test is fast, often giving a preliminary answer within minutes, but it has real limitations. In vaginal yeast infections, for example, the KOH prep misses at least one third of confirmed cases. It tells you fungi are present but usually can’t identify the exact species.

Wood’s Lamp Examination

For scalp infections, a clinician may shine an ultraviolet Wood’s lamp over the affected area before scraping anything. Certain fungal species glow under this light. Microsporum species, a common cause of scalp ringworm in children, produce a blue-green fluorescence. Trichophyton schoenleinii glows a dull blue. Most other fungal species don’t fluoresce at all, so a negative result under the lamp doesn’t rule anything out. It’s a quick screening tool, not a definitive test.

Fungal Cultures

When a clinician needs to identify the exact organism causing an infection, they send a sample for culture. Skin scrapings, nail clippings, sputum, or tissue can all be placed in growth media that encourage fungi to multiply. The advantage of culture is precision: it can tell you exactly which species you’re dealing with and which treatments it responds to.

The drawback is time. About 93% of all fungi grow within the first week of incubation, and nearly 98% appear by day 14. But some clinically important organisms are slower. Histoplasma capsulatum and certain Trichophyton species (which cause stubborn skin and nail infections) may not appear until the fourth week. Mucorales fungi, which cause a dangerous infection called mucormycosis, grow fastest, typically peaking around day 3. Aspergillus, another common cause of lung infections, is usually recovered within two weeks. For optimal results, labs typically incubate mold cultures for a full four weeks.

This means you might wait a month for a definitive culture result, especially for deep or unusual infections. In the meantime, your doctor may start treatment based on microscopy findings or clinical suspicion.

Blood Tests for Invasive Infections

When a fungal infection is suspected inside the body, particularly in the lungs, bloodstream, or organs, blood-based tests become essential. Standard blood cultures often come back negative for mold infections, so specialized antigen tests fill the gap.

The two most widely used are the beta-D-glucan (BDG) assay and the galactomannan (GM) assay. They work differently and answer different questions.

  • Beta-D-glucan (BDG) detects a sugar molecule found in the cell walls of many fungal species, including Candida, Aspergillus, and the organism that causes Pneumocystis pneumonia. Because it reacts to a broad range of fungi, a positive result tells you a fungal infection is likely present but doesn’t pinpoint which one.
  • Galactomannan (GM) is much more specific. It detects a molecule found almost exclusively in Aspergillus species. This makes it particularly useful when doctors need to distinguish an Aspergillus infection from mucormycosis, since the GM test doesn’t cross-react with Mucorales fungi. That distinction matters because the two infections require different treatments.

These blood tests are most commonly used in hospitalized patients, particularly those with weakened immune systems who are at high risk for invasive fungal disease.

Vaginal Yeast Infection Testing

A vaginal pH test is often the first step. Yeast infections typically maintain a normal vaginal pH of 4 to 4.5. A pH above 4.5 points more toward bacterial vaginosis or trichomoniasis, both of which require different treatment. This simple measurement can help narrow the diagnosis before any microscopy is done.

If yeast is suspected, a wet mount or KOH prep of vaginal discharge is examined under a microscope for budding yeast cells or the branching filaments characteristic of Candida. The sensitivity is moderate: only about 30 to 50% of women with symptomatic yeast infections will show visible organisms on a wet mount. When the initial microscopy is negative but symptoms strongly suggest yeast, a culture can confirm the diagnosis.

Respiratory Fungal Testing

Lung infections are diagnosed through sputum samples or, when needed, a procedure called bronchoalveolar lavage (BAL). For a sputum sample, you’ll rinse your mouth with water, then cough deeply into a sterile cup. If you can’t produce enough sputum on your own, you may breathe in a salty mist to trigger a deeper cough. A clinician might also tap on your chest to help loosen material from your lungs.

If sputum collection doesn’t yield enough material, a bronchoscopy may be necessary. You’ll receive sedation and a numbing agent, then a thin, flexible tube with a camera is passed through your nose or mouth into your airways. Small brushes or suction collect samples directly from the site of infection. BAL fluid and lung biopsy samples are considered the best specimens for diagnosing invasive pulmonary fungal infections; regular sputum or tracheal secretions are less reliable.

PCR and Molecular Testing

DNA-based testing (PCR) is increasingly used alongside traditional methods. In a study of patients with suspected fungal sinusitis, PCR detected fungal DNA in 37% of samples compared to just 14% for culture alone. PCR also identified organisms that culture missed entirely in about 15% of cases, and it informed treatment decisions in nearly 17% of all cases reviewed.

Speed is a major advantage. PCR returned positive results in a median of about 138 hours (roughly 5.5 days), while culture took a median of 278 hours (nearly 12 days). For negative results, the difference was even more dramatic: PCR cleared in about 4 days, while culture required nearly 29 days before a negative result could be reported with confidence.

When PCR and culture are used together, the combined sensitivity reaches about 90%, compared to 68% for culture alone. PCR is especially valuable for patients at high risk of serious fungal disease, where early identification can change outcomes.

Tissue Biopsy and Special Stains

When other tests are inconclusive, or when a deep tissue infection is suspected, a biopsy may be taken and sent to a pathologist. Finding fungal structures in tissue from a normally sterile body site is considered definitive proof of infection, regardless of what other tests show.

Standard tissue staining doesn’t always reveal fungi, especially species that lack pigment. Pathologists use special stains to make fungal cells visible. PAS stain turns fungal cell walls pink to purple. GMS stain colors them dark brown to black against a green tissue background. Fontana-Masson stain highlights melanin deposits in darkly pigmented fungi. Each stain targets different chemical components of the fungal cell wall, so a pathologist may use more than one to get a clear picture.

Which Test Comes First

The testing path depends on the type and location of the suspected infection. A surface infection on skin, nails, or hair usually starts with a KOH prep and, if needed, a culture. A suspected vaginal yeast infection begins with pH testing and microscopy. Lung infections typically require sputum or BAL samples sent for both culture and, increasingly, PCR. Deep or bloodstream infections call for antigen blood tests alongside culture and possibly biopsy.

In practice, clinicians rarely rely on a single test. Microscopy gives fast initial results but misses some infections. Culture is definitive but slow. Blood markers and PCR fill different gaps. The combination of methods, tailored to where the infection is and how sick the patient is, gives the most reliable diagnosis.