Shari LipnerMD, PhD · Nail Division
02Nail infection

Nail fungus? Confirm it before you treat it

Thick, yellow, crumbly nails are often blamed on fungus, but several other conditions look the same. A simple lab test can save months of the wrong treatment.

Medically reviewed by Dr. Shari Lipner, MD, PhD, board-certified dermatologist Last updated Sources & referencesEditorial policy
Key points
  • Nail fungus (onychomycosis) is common, but psoriasis, injury and other conditions can look almost identical.
  • Guidelines recommend lab confirmation before starting treatment, especially oral medicine.
  • Treatment takes months because nails grow slowly, and the infection can come back.
  • Drug-resistant skin fungi are an emerging concern, another reason to test first.

When a toenail turns thick, yellow and crumbly, most people assume it is fungus, and many reach for an over-the-counter product. Fungal infection of the nail, called onychomycosis, is indeed common. But it is far from the only cause of an unhealthy-looking nail. Treating a nail for fungus when the problem is something else wastes months and can delay the right care.

Many conditions look like fungus

Nails can only react to trouble in a few ways. They thicken, change color, crumble, or lift off the skin underneath. That is why very different problems can look alike:

  • Repeated minor injury from tight shoes, running or toes that overlap. This is very common in toenails.
  • Nail psoriasis, which can cause thickening, lifting and yellow-brown patches.
  • Lichen planus and other inflammatory conditions.
  • Bacterial infection, which can turn a nail green or black.
  • Rarely, a tumor of the nail unit, which can cause a nail to thicken or lift.

A nail can also have fungus and another condition at the same time. For example, a nail damaged by psoriasis or injury is easier for fungus to invade.

How the diagnosis is confirmed

The American Academy of Dermatology notes that dermatologists examine the nails and skin and may take a nail sample to look at under a microscope. British guidelines on onychomycosis advise confirming the infection in the lab before starting treatment. Common tests use clippings or scrapings of the nail:

  • KOH preparation: the sample is dissolved and checked under a microscope for fungal threads. It is quick but cannot name the species.
  • Fungal culture: grows the organism so it can be identified. Results take weeks.
  • Nail clipping histology: a pathologist stains the clipping (often with a PAS stain) to look for fungus.
  • PCR testing: detects fungal DNA and is available in some labs.

Collecting the sample is usually painless. It helps to stop using antifungal polishes or creams for a while beforehand. Ask your doctor how long.

Why testing first matters

Treatment for nail fungus takes a long time. A toenail grows slowly, so it can take a year or more for a clear nail to replace the affected one. Oral medicines are the most effective option for many people, but they are taken for weeks to months and can interact with other drugs. Some people need blood tests while taking them. It makes sense to be sure of the diagnosis before you start.

There is also a newer reason. Health authorities, including the US Centers for Disease Control and Prevention (CDC), have reported skin fungi that respond poorly to terbinafine, a standard antifungal. One example is Trichophyton indotineae. Experts in antifungal stewardship, including Dr. Lipner as a co-author, have called for careful diagnosis and appropriate use of antifungal medicines. Knowing exactly what is being treated helps protect these drugs for the future.

Treatment options, in brief

Once fungus is confirmed, the choice of treatment depends on how many nails are affected, how much of each nail is involved, the type of fungus, your age, other health conditions and other medicines.

  • Topical solutions applied daily can help mild infections that do not reach the base of the nail. They usually need to be used for about a year.
  • Oral antifungal medicines, such as terbinafine or itraconazole, are often used for more extensive infection.
  • Removing thickened nail by trimming or filing, done by a clinician, can reduce pain and help topical medicine reach the infection.
  • Devices such as lasers are available, but the evidence that they cure the infection over the long term is limited.

Home and over-the-counter remedies are popular. A review co-authored by Dr. Lipner found limited high-quality evidence that they cure nail fungus.

Keeping it from coming back

Nail fungus often returns, even after successful treatment. These habits can lower the risk:

  • Treat athlete's foot early. It is often the source of nail infection.
  • Keep feet dry, change damp socks, and choose breathable shoes.
  • Wear sandals in locker rooms, pool areas and shared showers.
  • Don't share nail clippers or files.
  • Keep nails short and cut straight across.

The takeaway

A thick, discolored nail deserves a diagnosis, not a guess. A short visit and a nail sample can confirm whether fungus is the cause, and point to the treatment most likely to work.

When to see a doctor

See a dermatologist if a nail is thick, discolored, painful or separating from the nail bed, if you have diabetes or poor circulation and notice any foot or nail change, or if treatment has not helped after several months.

Sources & references

  1. Lipner SR, Scher RK. Onychomycosis: clinical overview and diagnosis. J Am Acad Dermatol. 2019. PMID 29959961. Link
  2. Lipner SR, Scher RK. Onychomycosis: treatment and prevention of recurrence. J Am Acad Dermatol. 2019. PMID 29959962. Link
  3. Ameen M, Lear JT, Madan V, Mohd Mustapa MF, Richardson M. British Association of Dermatologists' guidelines for the management of onychomycosis 2014. Br J Dermatol. 2014;171(5):937-958. Link
  4. American Academy of Dermatology. Nail fungus: Diagnosis and treatment. AAD public education. Link
  5. Halteh P, Scher RK, Lipner SR. Over-the-counter and natural remedies for onychomycosis: do they really work? Cutis. 2016. PMID 28040821. Link
  6. Gupta AK, Cooper EA, Haneke E, Lipner SR, et al. Global onychomycosis management and the challenges of antifungal stewardship. J Dermatolog Treat. 2025. PMID 40619586. Link
  7. Centers for Disease Control and Prevention. Identifying resistant ringworm (Trichophyton indotineae). CDC Advanced Molecular Detection. Link
Author & medical reviewer

Dr. Shari Lipner, MD, PhD. Board-certified dermatologist; Professor of Clinical Dermatology and Director of the Nail Division, NewYork-Presbyterian Hospital/Weill Cornell Medical Center.

About Dr. Lipner · Editorial policy

This article is general education for adults. It is not a diagnosis or a substitute for an exam. In an emergency, call 911.

Weill Cornell Medicine, New York

Have a nail concern looked at properly.