Your doctor will examine your nails. He or she may also take some nail clippings or scrape debris from under your nail and send the sample to a lab to identify the type of fungus causing the infection.
Other conditions, such as psoriasis, can mimic a fungal infection of the nail. Microorganisms such as yeast and bacteria also can infect nails. Knowing the cause of your infection helps determine the best course of treatment.