Included is detail on the diagnosis and when to see a doctor. If your toenail turns black it s most likely a bruise under the nail technically called a subungual hematoma. Sometimes discolorations can occur from nail polish nutritional deficiencies infection or trauma.