Nail fungus (onychomycosis) is a fungal infection of the nail that causes thickening, discoloration (usually yellow, white, or brown), crumbling, and sometimes a foul odor, most often affecting toenails. It’s treated with topical or oral antifungal medication, chosen based on severity, but because nails grow slowly, full clearing typically takes 6 to 18 months, even with effective treatment. It’s caused by the same type of fungi responsible for athlete’s foot, and having athlete’s foot untreated is one of the most common ways nail fungus develops.
This guide covers what causes nail fungus, which treatments actually work, why it takes so long to clear, and how to prevent it from coming back.
What Is Nail Fungus?
Nail fungus, medically called onychomycosis, is a fungal infection that gets into the nail bed or nail plate, usually entering through a small crack in the nail or surrounding skin. It’s most common in toenails, since feet spend more time in warm, damp, enclosed environments (shoes and socks) than hands do, but fingernail fungal infections happen too, just less frequently. It’s one of the most common nail conditions, becoming more common with age.
What Causes Nail Fungus?
Nail fungus is most commonly caused by dermatophytes, the same fungi responsible for athlete’s foot, though yeasts and molds can also cause it in some cases. Common risk factors and causes include:
- Untreated athlete’s foot, which can spread from the skin to the adjacent nail
- Walking barefoot in public showers, locker rooms, gyms, or pool areas
- Wearing damp, sweaty socks or tight, non-breathable shoes for long periods
- A minor injury to the nail, which creates an entry point for fungus
- Reduced blood circulation to the feet, more common with age or certain health conditions
- Diabetes, which increases susceptibility to fungal and other infections
- A weakened immune system
- Frequent use of artificial nails or nail salons with poorly sanitized tools
What Does Nail Fungus Look Like?
The most common signs include thickened nails that are harder to trim than usual, discoloration, typically yellow, white, or brownish patches or streaks, brittleness, with edges that crumble or break easily, a nail that separates from the nail bed (onycholysis), a distorted or misshapen nail as the infection progresses, and in some cases, a mild foul odor. Symptoms typically start at the edge or tip of the nail and spread gradually toward the base if untreated.
Is Nail Fungus the Same as Athlete’s Foot?
No, but they’re closely related. Athlete’s foot is a fungal infection of the skin, usually between the toes, while nail fungus (onychomycosis) is a fungal infection of the nail itself. They’re frequently caused by the same fungi, and untreated athlete’s foot is one of the most common ways nail fungus develops, since the infection spreads from the skin to the adjacent nail. Treating athlete’s foot promptly is one of the most effective ways to prevent nail fungus from developing in the first place.
How to Treat Nail Fungus
Nail fungus is notoriously slower and more stubborn to treat than skin-based fungal infections like athlete’s foot, mainly because the nail itself is a hard barrier that limits how well medication penetrates.
Topical Antifungal Treatment
Topical treatments, such as medicated nail lacquers (like ciclopirox) or newer topical solutions, are applied directly to the nail, often daily, over many months. They tend to work best for mild infections affecting less than half the nail, and are generally less effective than oral medication for moderate-to-severe infections, since they have difficulty penetrating the full thickness of the nail.
Oral Antifungal Medication
Oral antifungal medications, most commonly terbinafine or itraconazole, are considered the most effective treatment for moderate-to-severe nail fungus, since they reach the nail through the bloodstream rather than relying on surface penetration. Treatment courses typically run 6 to 12 weeks for fingernails and 12 weeks or longer for toenails, though visible improvement takes months longer as the nail grows out. Oral antifungals can occasionally affect liver function, so a doctor may order blood tests before and during treatment, particularly for longer courses.
Laser Treatment
Laser therapy for nail fungus has grown in popularity and is generally well tolerated, but evidence for its effectiveness is mixed and it’s usually more expensive than topical or oral medication, often not covered by insurance. It may be considered for people who can’t take oral antifungals for medical reasons.
Nail Removal (Severe Cases)
For very severe or resistant infections, a doctor may recommend partially or fully removing the affected nail, either chemically or surgically, to allow more direct treatment of the nail bed and give a healthy new nail room to grow in. This is typically reserved for cases that haven’t responded to other treatments.
Why Does Nail Fungus Take So Long to Treat?
Nails grow very slowly — fingernails take about 6 months and toenails about 12 to 18 months to fully grow out — so even with effective treatment killing the fungus, the visibly infected portion of the nail has to grow out before the nail looks normal again. This is the single most common source of frustration and perceived treatment failure: the medication may be working, but the outward appearance takes many months to reflect that, since existing damaged nail doesn’t repair itself, it simply grows out and gets replaced.
Do Home Remedies Work for Nail Fungus?
Several home remedies are commonly discussed online, but their evidence is limited compared to medical treatment. Tea tree oil has some antifungal properties in lab studies, but evidence for effectively treating established nail fungal infections in humans is weak. Vicks VapoRub has anecdotal support and very limited small studies suggesting mild improvement in some cases, though it’s not considered a reliable primary treatment. Vinegar soaks aren’t well supported by clinical evidence for actually killing the fungus within the nail. Given the slow, stubborn nature of nail fungus, relying solely on home remedies for a confirmed infection often means significant delay before starting treatment that’s actually likely to work.
Fingernail Fungus vs. Toenail Fungus
While the underlying cause is often similar, there are some practical differences worth knowing. Toenail fungus is far more common, since feet are enclosed in shoes and socks for long periods, creating warm, moist conditions that fungi favor, and toenails grow much more slowly than fingernails, meaning treatment and visible improvement both take significantly longer. Fingernail fungus is less common but tends to respond somewhat faster to treatment simply because fingernails grow out in about 6 months compared to 12 to 18 months for toenails. In both cases, oral antifungal medication is generally more effective than topical treatment once the infection is established, though topical options can work for very mild, early-stage infections.
How to Prevent Nail Fungus
- Treat athlete’s foot promptly rather than letting it linger, since it commonly spreads to the nails
- Keep feet clean and dry, especially between the toes, and change socks daily or more often if they sweat
- Wear sandals or flip-flops in public showers, locker rooms, and pool areas
- Choose breathable shoes and avoid the same damp pair repeatedly without letting it dry
- Don’t share nail clippers, files, or socks with others
- Choose nail salons that properly sterilize tools between clients, or bring your own
- Keep nails trimmed relatively short and dry, avoiding excessive moisture buildup under long nails
- Avoid nail polish or artificial nails on a nail with an active or suspected infection, since they can trap moisture and worsen the infection
Nail Fungus vs. Nail Psoriasis: How to Tell the Difference
Nail psoriasis is commonly mistaken for nail fungus, since both can cause thickened, discolored, and pitted nails, but they need very different treatment. Nail fungus typically causes yellow, white, or brown discoloration starting at the tip or edge of the nail, gradual thickening and crumbling, and often a history of athlete’s foot or exposure in communal wet areas. Nail psoriasis more often causes small pinpoint pits across the nail surface, separation of the nail from the nail bed without the same fungal debris underneath, and is more likely to occur alongside psoriasis patches elsewhere on the skin or a personal or family history of psoriasis. Because the treatments are so different — antifungal medication for one, and psoriasis-specific treatment for the other — a nail clipping test to confirm or rule out fungus is often worthwhile if the diagnosis isn’t clear, especially before starting a long course of oral antifungal medication.
When to See a Doctor
While mild nail fungus can sometimes be managed with over-the-counter topical treatment, it’s worth seeing a doctor if the infection is spreading, affecting multiple nails, or not improving after several months of topical treatment, you have diabetes, poor circulation, or a weakened immune system, since nail infections carry higher complication risk in these cases, the nail is significantly thickened, painful, or making it difficult to walk or wear shoes comfortably, or you’re unsure whether the nail changes are actually fungal, since psoriasis and other conditions can cause similar-looking nail changes but need different treatment. A doctor can also confirm the diagnosis with a nail clipping sample, which helps target treatment to the specific type of fungus involved.
Frequently Asked Questions
What kills nail fungus fastest?
Oral antifungal medication, such as terbinafine, is generally the fastest and most effective treatment for established nail fungus, though even with oral treatment, visible improvement takes several months since the damaged nail has to grow out.
Can nail fungus go away without treatment?
It’s unlikely to resolve on its own and often gradually worsens or spreads to other nails without treatment. Fungal infections in nails tend to be persistent rather than self-limiting.
How long does it take to cure nail fungus?
Full clearing typically takes 6 to 18 months, even with effective treatment, because the nail has to grow out completely for the infected portion to be replaced. Toenails take longer than fingernails due to their slower growth rate.
Is nail fungus contagious?
Yes, nail fungus can spread through direct contact or shared items like nail clippers, socks, and shoes, and through contaminated surfaces such as shower floors and locker rooms.
Can you paint over nail fungus with polish?
It’s not recommended, since nail polish and artificial nails can trap moisture underneath, potentially worsening the fungal infection and making it harder for topical treatments to reach the nail.
Does Vicks VapoRub cure nail fungus?
Evidence supporting Vicks VapoRub as an effective nail fungus treatment is very limited, based on small anecdotal reports rather than strong clinical research. It’s not considered a reliable substitute for antifungal medication.
Why does my nail fungus keep coming back after treatment?
Recurrence is often caused by reinfection from shoes, socks, or shower surfaces that still harbor fungal spores, untreated athlete’s foot on the surrounding skin, or stopping oral or topical treatment before the full course is complete, even if the nail looks mostly clear. Treating footwear and any active skin infection alongside the nail itself reduces the chance of recurrence.
Related Reading
Informational only — not a diagnosis. See a doctor to confirm nail fungus and get treatment matched to severity, especially if you have diabetes or a weakened immune system.
