The short answer
Fungus needs three things your footwear provides free: warmth, moisture and darkness. Spores survive for months inside shoes, so treating a nail while wearing the same damp sneakers daily is a treadmill. The habits that break the loop are cheap and boring: rotate shoes so each pair dries 24–48 hours, change socks daily, dry between your toes, keep nails short with clean tools, treat athlete's foot immediately, and wear sandals in shared wet areas. Do these and any treatment works better; skip them and even prescription drugs fight uphill.
Why footwear decides the fight
A closed shoe after a normal day is a fungal greenhouse: body-warm, damp with sweat (feet release a surprising amount of it daily), and dark. Dermatophyte spores — the fungi behind both athlete's foot and most toenail infections — are tough little survivors that persist in shoe linings, insoles and sock fibers for months. That is the quiet reason nail fungus "keeps coming back": it never left. The nail was being treated for an hour a day and re-inoculated for eight.
This also explains a pattern podiatrists see constantly: the person who diligently applies treatment but never rotates their one pair of daily sneakers, and wonders why nothing changes. The treatment isn't failing; the environment is winning.
The habits, ranked honestly
- Shoe rotation — the biggest lever. Fungus dies hard in dry conditions. Two or three pairs alternated, each getting 24–48 hours to dry out fully (ideally with insoles pulled out), turns your shoes from incubators into dead ends. This costs nothing if you own two pairs, and it outranks any powder or spray you could buy.
- Sock discipline — cheap and immediate. Fresh socks daily, twice on heavy-sweat days; moisture-wicking fibers over 100% cotton, which holds sweat against skin. Wash hot when the care label allows — fungal spores shrug off cool washes.
- Dry between the toes — the forgotten step. The web spaces between toes are where athlete's foot lives, and athlete's foot is the feeder infection for nails. Ten extra seconds with the towel after every shower is genuinely preventive medicine.
- Trim short, file thick, clean the tools. Short nails give fungus less shelter and let topicals closer to the margins. Disinfect clippers between uses — and never share them. Ferrying spores from one toe to the next with your own clippers is a classic self-sabotage.
- Sandals in shared wet areas — real, but smaller. Gym showers, pool decks and locker rooms are legitimate pickup zones. Cheap flip-flops close that door. Useful, just less decisive than what happens inside your own shoes every day.
A daily order of operations
- Shower, then dry between the toesMoisture management first — every other habit builds on dry skin.
- Apply your daily treatment to clean, dry nailsWhatever you use — an undecylenic-acid spray like KlaroNail, tea tree oil, or a prescription — it should land on clean, dry nails and be worked into the cuticle and edges. Treatment onto damp, just-out-of-shoes feet is wasted.
- Fresh socks, yesterday's other pair of shoesThe rotation habit in action: today's shoes are the ones that spent yesterday drying.
- Evening check, weekly trimKeep nails short, file thickened spots, and watch the skin between toes — treating athlete's foot the day it appears protects your nails more than any single product choice.
What hygiene alone won't do
Honesty cuts both ways: these habits are prevention and reinforcement, not eradication. An infection already established under the nail plate will not be starved out by clean socks — it needs months of consistent treatment at the nail margins, and the established cases need a doctor's eye. The right frame: hygiene stops the fire from being re-lit; treatment puts out what's burning; and a clinician handles anything painful, spreading, or complicated by diabetes or poor circulation. All three roles matter, and none substitutes for the others.
The bottom line
Toenail treatments don't happen in a vacuum — they happen inside your shoes, eight hours a day. Rotate and dry your footwear, change socks daily, dry between your toes, keep nails short with clean tools, and handle athlete's foot on sight. None of it is glamorous, all of it is cheap, and together it decides whether the products you buy get to work in a fair fight.