How long a discolored toenail takes to recover depends on the extent of the damage and how quickly your nail grows. A minor bruise under the nail may disappear within a few weeks, while a severely discolored, detached nail can take several months to grow out completely. It is important to avoid putting further pressure on the nail and maintain good hygiene.