Nail fungus is a subcategory of onychomycosis which is a fungal infection of the toenails or fingernails and accounts for half of all nail abnormalities. Onychomycosis most commonly affects toenails or fingernails, but toenail fungus infections are more common and in particular the big toes.