How can you be sure it is fungus?

Your doctor may make this decision by examination alone. He may also examine scrapings from the nail under the microscope or send these scrapings to the lab for accurate identification, to determine if the condition is a fungus and what type of fungus is responsible.