Diagnosing onychomycosis, the fungal infection affecting nails, requires more than just looking at discolored or thickened nails—proper testing helps doctors confirm what’s really causing the problem and choose the right treatment path.
Introduction: Who Should Seek Diagnostic Testing
If you notice that your nails are starting to look different—perhaps turning yellow, white, or brown, becoming thicker than usual, or separating from the nail bed—it may be time to see a healthcare provider. While these changes might seem like a cosmetic concern, they could signal a fungal infection called onychomycosis, which affects millions of people worldwide.[1]
Not everyone with an unusual-looking nail has a fungal infection. Many other conditions can make nails look unhealthy, including aging, psoriasis, injuries, and even the chemicals in nail polish. Because only about half of all nail problems are actually caused by fungus, getting a proper diagnosis before starting treatment is essential.[4][15] Without confirmation, you might spend time and money on treatments that won’t work for your specific condition.
You should consider seeking diagnostic testing if you notice your nails becoming discolored, thickened, brittle, or crumbly, or if they start to separate from the skin underneath. If you also have a foul smell coming from your nails or notice white spots and streaks appearing on them, these are additional signs that warrant a visit to your doctor.[1][2] People with certain health conditions—such as diabetes, poor circulation, a weakened immune system, or a history of athlete’s foot—should be especially vigilant, as they face higher risks for developing fungal nail infections and their complications.[1][3]
Classic Diagnostic Methods for Identifying Onychomycosis
When you visit a healthcare provider with concerns about your nails, the first thing they will do is perform a visual examination. By looking closely at the affected nail, an experienced doctor can often recognize patterns that suggest fungal infection. However, because other conditions can mimic the appearance of onychomycosis, visual inspection alone is not enough to confirm the diagnosis.[1][9]
Collecting the Sample
To confirm whether fungus is causing your nail problems, your healthcare provider will need to collect a sample from the affected nail. Before taking the sample, they will clean your nail with alcohol to remove any bacteria and surface debris that could interfere with testing.[4] The way the sample is collected depends on which part of your nail is affected.
For the most common type of infection—where the nail becomes thick and yellow starting at the tip—the doctor will remove the loose, damaged part of the nail and then scrape material from the nail bed underneath. This area contains the highest concentration of fungal organisms, making it the best place to find evidence of infection.[5][9] If your infection appears as white patches on the surface of your nail, the doctor will use a blade to scrape off some of the chalky material from the top layer.[5] When the infection starts near the base of your nail—which is less common—the overlying nail must first be carefully pared away so that a sample from underneath can be obtained.[10]
Potassium Hydroxide (KOH) Preparation
The most widely used initial test for nail fungus is called a potassium hydroxide preparation or KOH test. In this procedure, the nail sample is placed on a glass slide and mixed with a solution containing potassium hydroxide, sometimes combined with a substance called dimethyl sulfoxide (DMSO).[4][5] The potassium hydroxide dissolves the nail material but leaves the fungal structures intact, making them easier to see under a microscope.
If DMSO is included in the solution, the preparation can be examined right away without heating or waiting. The laboratory technician or doctor then looks through the microscope for thread-like structures called hyphae, which are characteristic of fungal growth.[4][15] This test provides quick results—often within the same day—and helps screen for the presence of fungus. However, it doesn’t identify the specific type of fungus causing the infection.
Fungal Culture
To identify exactly which organism is responsible for your nail infection, your doctor may order a fungal culture. In this test, the nail sample is placed in a special growing medium that encourages fungi to multiply. Over the course of several days to weeks, any fungus present in the sample will grow and can then be identified by its appearance and characteristics.[3][4]
Fungal culture is considered the traditional standard for diagnosis because it can tell doctors which specific type of fungus is present. This information can be important for treatment decisions, as different organisms may respond differently to various medications. However, fungal culture has some drawbacks: it takes a long time to get results, and sometimes fungi that are actually present in the sample fail to grow in the laboratory, leading to false-negative results.[4][15]
Histopathologic Examination (Tissue Study)
Another highly accurate method for diagnosing onychomycosis involves examining nail tissue under a microscope after treating it with special stains. The most commonly used stains are called periodic acid-Schiff (PAS) stain and Grocott-Gomori methenamine silver (GMS) stain, both of which highlight fungal structures and make them stand out clearly against the surrounding nail tissue.[4][9]
This method is more sensitive than KOH preparation or culture, meaning it’s better at detecting fungi when they’re present. Studies have shown that PAS staining can increase the detection rate of fungal infections significantly compared to other methods.[4][15] Results are typically available faster than with fungal culture. However, while this test confirms the presence of fungus, it cannot always identify the exact species responsible for the infection.
Polymerase Chain Reaction (PCR) Testing
A newer and more advanced diagnostic approach uses polymerase chain reaction or PCR technology. This molecular test detects the genetic material (DNA or RNA) of fungi present in the nail sample. PCR testing is highly sensitive and specific, meaning it’s very good at both finding fungi when they’re present and avoiding false-positive results.[9][15]
One of the major advantages of PCR is that it provides results much faster than traditional culture—often within a few days—and it can identify the specific type of fungus involved. This technology is particularly useful when other tests give unclear results or when rapid diagnosis is needed. However, PCR testing may not be available at all healthcare facilities and can be more expensive than conventional methods.[15]
Dermoscopy
Some healthcare providers use a tool called a dermoscope to examine nails more closely. This handheld device provides magnified, illuminated views of the nail and can help identify patterns consistent with fungal infection. While dermoscopy cannot replace laboratory testing, it can guide doctors in deciding whether further testing is needed and where to collect samples from.[9]
Diagnostics for Clinical Trial Qualification
When patients are being considered for participation in clinical trials studying new treatments for onychomycosis, diagnostic requirements are often more stringent than those used in routine clinical practice. Clinical trials need to ensure that all participants truly have the condition being studied and that the infection meets specific criteria for severity and type.
Most clinical trials for onychomycosis treatments require laboratory confirmation of fungal infection before a patient can be enrolled. This typically means obtaining positive results from both a KOH preparation showing the presence of fungal structures and either a positive fungal culture identifying the specific organism or a positive PAS-stained histopathology result.[14][15] This dual confirmation approach helps eliminate participants who might have nail abnormalities from other causes.
Classification and Severity Assessment
Clinical trials often specify which type of onychomycosis they’re studying. The condition is classified into several subtypes based on how the infection presents. The most common type is called distal lateral subungual onychomycosis, where the fungus invades the nail starting at the tip and sides. Other patterns include white superficial onychomycosis, where white patches appear on the nail surface, and proximal subungual onychomycosis, where infection begins at the base of the nail near the cuticle.[3][15]
To participate in a clinical trial, patients’ infections usually need to meet certain severity criteria. Researchers commonly use a scoring system called the Onychomycosis Severity Index, which measures three factors: how much of the nail is involved, how much the nail has thickened or separated from the nail bed, and the degree of discoloration or other abnormal appearance.[15] Trials may require that participants have a minimum level of nail involvement—for example, at least 25% of the nail plate affected—to ensure the treatment’s effects can be properly measured.
Excluding Other Conditions
Before enrolling participants, clinical trials must rule out other conditions that can mimic fungal nail infections. This might involve additional testing or examination to exclude psoriasis, lichen planus, nail trauma, or other inflammatory conditions that affect nail appearance. Some trials may perform biopsies or additional laboratory tests to ensure participants don’t have these alternative diagnoses.[15]
Baseline Documentation
Clinical trials require careful documentation of each participant’s condition before treatment begins. This baseline documentation typically includes photographs of all affected nails, measurements of the area of infection, assessment of nail thickness, and recording of any symptoms like pain or discomfort. These baseline measurements provide a comparison point for evaluating whether the treatment being studied is working.[14]
Ongoing Monitoring During Trials
Throughout a clinical trial, participants undergo regular follow-up testing to monitor their response to treatment. This often includes repeat laboratory tests—such as periodic KOH preparations and cultures—to determine whether the fungus is being eliminated. Trials typically measure both mycologic cure (when laboratory tests show no more fungus) and complete cure (when the nail looks normal and no fungus is detected). Because nails grow slowly, these assessments may continue for many months after treatment ends to evaluate long-term effectiveness.[4][14]
The rigorous diagnostic standards used in clinical trials help ensure that research findings are reliable and that new treatments are tested in patients who genuinely have the condition. While these requirements are more demanding than routine clinical care, they ultimately contribute to developing better treatment options for everyone with onychomycosis.



