Diagnosis typically involves a physical examination of the nails by a healthcare provider. Additional tests may be required to identify the underlying cause. These could include blood tests, imaging studies, or a referral to a specialist such as a dermatologist or oncologist.