Diagnosis typically involves a combination of clinical examination, imaging studies, and biopsy. Dermatologists or oncologists may use dermatoscopy to examine the nail bed closely. If cancer is suspected, a biopsy of the nail bed tissue can confirm the diagnosis.