Toenail fungus (onychomycosis) is an infection that makes a nail thick, discolored and crumbly. It is common, especially after age 60, and usually starts at the tip or side of the big toenail. It is rarely dangerous, but it doesn’t clear on its own, treatment takes many months, and a nail only looks normal again once healthy nail has grown all the way out.
Key points
- The same fungi that cause athlete’s foot cause most toenail infections.
- Other problems, such as injury and psoriasis, can look the same, so a lab test on nail clippings is worth doing before long treatment.
- Terbinafine pills work best. Medicated nail solutions help milder cases.
- A big toenail takes 12 to 18 months to grow out, so improvement is slow.
- The infection often comes back. Keeping feet dry and treating athlete’s foot help prevent it.
What causes toenail fungus
Most infections come from a group of fungi called dermatophytes, which feed on keratin, the protein that makes up nails and skin. Yeasts and molds cause some cases. The fungus usually spreads into the nail from athlete’s foot on the skin nearby, and grows best in warm, damp places such as sweaty shoes.
You are more likely to get it if you:
- Are older, since nails grow more slowly and blood flow to the feet drops
- Have athlete’s foot
- Walk barefoot in locker rooms, pools or shared showers
- Wear tight, closed shoes or have sweaty feet
- Have injured the nail, for example from running or a stubbed toe
- Have diabetes, poor circulation, psoriasis or a weak immune system
- Smoke, or have family members with nail fungus
Toenails are infected far more often than fingernails.
Toenail fungus symptoms
- A yellow, white or brownish color, often starting at the tip or edge
- A nail that gets thicker and harder to trim
- Crumbly, ragged edges
- Chalky debris building up under the nail
- The nail lifting away from the skin underneath
- White, powdery patches on the surface of the nail
- A mild smell, or discomfort in shoes from a thick nail
Often only one or two nails are affected at first, and the skin between the toes may be scaly or itchy from athlete’s foot.
Problems that can look like nail fungus
About half of thick or discolored nails are not caused by fungus. Repeated pressure from shoes or sports, nail psoriasis, lifting of the nail from other causes, and normal aging can all look similar. A brown or black streak in a nail can rarely be a melanoma (a type of skin cancer) and should always be checked.
How it’s diagnosed
A doctor or podiatrist (foot doctor) will look at your nails and feet. To confirm fungus, they clip a piece of the nail and scrape debris from under it. A lab checks it under a microscope, grows it in a culture, or tests it for fungal DNA. Results take days to a few weeks. Testing matters because pills cost time and money and carry some risks.
Toenail fungus treatment
Antifungal pills
- Terbinafine is taken daily, usually for 12 weeks for toenails. It is the most effective treatment.
- Itraconazole is another option, taken daily or in monthly pulses. It interacts with many medicines and isn’t used in people with heart failure.
- Fluconazole, taken once a week for many months, is sometimes used.
Side effects can include upset stomach, rash and changes in taste. Liver injury is rare, and your doctor may check your liver with a blood test. Tell your doctor about all medicines you take. Even after the fungus is gone, the damaged nail has to grow out, and some nails never look completely normal.
Medicated nail solutions
Prescription liquids such as efinaconazole and tavaborole, and ciclopirox nail lacquer, are brushed on daily for about a year. They work less well than pills but have fewer side effects. They suit mild infections that haven’t reached the base of the nail, and people who can’t take pills.
Nail care
- Trim nails straight across and file down thick areas. Soak feet first to soften them.
- Urea cream can soften thick nails so they are easier to trim.
- A podiatrist can thin very thick nails, which eases pain and helps nail solutions soak in.
- Treat athlete’s foot on the skin with an antifungal cream or spray.
Other options
Laser treatments are offered at some clinics. Studies are limited, results vary, and insurance rarely pays. Removing the nail is a last resort for a painful nail that keeps getting infected.
Home remedies such as tea tree oil, vinegar soaks and mentholated rubs have little evidence. They are unlikely to cure an infection, though they rarely cause harm. Over-the-counter athlete’s foot creams don’t get through the nail well.
Preventing toenail fungus
- Dry your feet well after bathing, especially between the toes.
- Wear moisture-wicking socks, and change them if they get damp.
- Rotate shoes so each pair dries out, and use antifungal powder or spray in shoes.
- Wear sandals in locker rooms, pool areas and shared showers.
- Don’t share nail clippers or files. At a salon, choose one that sterilizes its tools.
- Treat athlete’s foot quickly.
When to see a doctor
- You have diabetes or poor circulation and notice any nail or foot change
- The toe becomes red, swollen, warm or painful, or drains pus
- A nail has a dark streak or spot
- Thick nails make walking or wearing shoes hard
- You want treatment and haven’t had a lab test
Common questions about toenail fungus
How long does it take to get rid of toenail fungus?
Most treatment courses last 3 months for pills and about a year for nail solutions. Even when the fungus is gone, the damaged part of the nail has to grow out. A big toenail takes 12 to 18 months to look clear, so judge success by the new nail growing in from the base.
Is toenail fungus contagious?
Yes, but not very. It spreads mostly through damp floors in shared showers and locker rooms, and through shared nail tools, towels and shoes. It can also spread from one nail to another or to the skin of your feet and groin. Treating athlete’s foot and keeping feet dry lower the risk.
Does Vicks VapoRub work for toenail fungus?
There’s little proof. A few small studies found some nails looked better after months of use, but few were truly cured. It’s unlikely to cause harm, but it shouldn’t replace a lab test and proven treatment, especially if you have diabetes or several nails affected.
Why does toenail fungus keep coming back?
The fungus lives on skin and in shoes, so reinfection is common, even after successful treatment. Untreated athlete’s foot, sweaty footwear and walking barefoot in shared areas raise the chance. Some people use an antifungal nail solution or powder now and then to help keep it away.
Questions to ask your doctor
- Is this really a fungal infection? Should we test a clipping?
- Which treatment is best for me, pills or a nail solution?
- Do I need blood tests while taking pills?
- How will we know the treatment is working?
- How can I stop it from coming back?
Learn more
- Fungal nail infections (DermNet)
- Fungal nail infection (MedlinePlus, U.S. National Library of Medicine)
This guide is general information and doesn’t replace advice from your own doctor. Last updated October 2026.



