Dark Line on Your Nail: Causes and When to Worry

A dark line running lengthwise on your nail is usually caused by increased melanin production in the nail matrix, the tissue at the base of your nail where new nail cells form. In most cases it’s harmless, but the line can occasionally signal something that needs medical attention. The cause depends on your skin tone, age, medications, recent injuries, and overall health.

Melanin Activation Is the Most Common Cause

The most frequent reason for a dark vertical stripe is something called melanocytic activation. The pigment-producing cells in your nail matrix start depositing more melanin into the nail plate as it grows, creating a brown, gray, or black band that runs from the base of your nail toward the tip. This can happen in one nail or several at once.

In people with darker skin tones, this is extremely common and often completely normal. It can appear at any age, sometimes without any identifiable trigger. In lighter-skinned individuals, a new dark band is less expected and more likely to prompt a closer look from a dermatologist, not because it’s necessarily dangerous, but because the baseline rate of benign pigmentation is lower in that group.

Trauma and Bleeding Under the Nail

If you recently stubbed your toe, jammed your finger, or wore tight shoes, the dark mark could be dried blood trapped under the nail. This is called a subungual hematoma. It typically looks like a reddish-black or purplish spot rather than a clean line, and it moves forward as your nail grows out. Toenail hematomas can take 9 to 12 months to fully disappear because toenails grow slowly. Fingernails clear faster, usually within 3 to 6 months.

The key visual difference: a blood-based streak tends to be black and concentrated toward the tip of the nail when caused by minor trauma. It also changes position over weeks, migrating toward the free edge. A melanin-based line stays in the same position relative to the nail base because it’s being continuously produced there. If you’re unsure which you’re looking at, your doctor may photograph the nail and check again in 3 to 6 months to see whether the mark is migrating outward or staying put.

Medications That Cause Dark Lines

Certain drugs trigger melanin production in the nail matrix as a side effect. Chemotherapy agents are the most common culprits. Dark bands typically appear one to two months after starting treatment and can show up as single or multiple stripes across several nails. Antiretroviral drugs used for HIV, particularly zidovudine, can cause a diffuse blue-brown discoloration or longitudinal bands, usually appearing 3 to 8 weeks into treatment. Antimalarials like chloroquine and hydroxychloroquine are also known triggers.

Other medications linked to nail darkening include certain antifungals, anti-seizure drugs, antibiotics, and some biologics used for autoimmune conditions. The good news is that drug-related nail pigmentation typically fades slowly after you stop taking the medication, though it can sometimes persist for months.

Underlying Health Conditions

Less commonly, dark nail lines can reflect something going on elsewhere in your body. A few systemic conditions worth knowing about:

  • Vitamin B12 or folate deficiency can trigger melanin overproduction in the nail matrix. This type of pigmentation often affects multiple nails and may resolve with supplementation.
  • Addison’s disease, a condition where the adrenal glands don’t produce enough hormones, causes widespread hyperpigmentation that can include the nails, skin creases, and gums.
  • Laugier-Hunziker syndrome is a benign condition that causes pigmented bands on nails along with dark spots on the lips and inside the mouth.

If dark lines appear on multiple nails at once, especially alongside other changes like unusual fatigue, weight loss, or skin darkening in other areas, these systemic causes become more relevant.

Nail Biting and Repeated Minor Trauma

Chronic habits like nail biting or picking at the cuticles can damage the nail matrix enough to trigger both melanin streaks and tiny splinter hemorrhages. These trauma-induced lines tend to be grayish with regular parallel patterns rather than a single bold stripe. If you stop the habit, the pigmentation usually grows out over several months as the matrix heals.

When a Dark Line Could Be Melanoma

Subungual melanoma, a type of skin cancer that starts under the nail, is rare but important to recognize. It accounts for roughly 2% of melanomas in white populations, but a much higher proportion in people with darker skin: up to 75% of melanomas in African populations, 25% in Chinese populations, and 10% in Japanese populations. This isn’t because the cancer is more common overall in these groups, but because other types of melanoma (the sun-related kinds) are far less frequent, making the nail form a larger share of the total.

Certain features raise concern. A band that is wider than 3 millimeters, has blurred or irregular borders, contains multiple shades of brown and black, or is getting wider over time deserves prompt evaluation. Pigmentation that extends from the nail onto the surrounding skin (the cuticle or fingertip) is a particularly important warning sign. A single new dark band appearing in adulthood on just one nail, especially on the thumb, index finger, or big toe, is also given closer scrutiny.

How Doctors Evaluate a Dark Nail Line

A dermatologist will typically start with dermoscopy, a magnified examination of the nail using a specialized handheld device. This lets them evaluate the color, width, spacing, and regularity of the pigmented lines within the band. Homogeneous, narrow bands with regular parallel lines are generally reassuring. Irregular patterns with varying colors and widths raise more concern.

If the appearance is suspicious, the next step is a biopsy of the nail matrix. This involves numbing the finger, lifting back the skin fold at the base of the nail, and taking a small tissue sample from the exact point where the pigmented band originates. The sample needs to be at least 1 millimeter thick to allow proper evaluation for any abnormal cells. The procedure can temporarily affect nail growth and leave minor scarring, but it’s the only definitive way to distinguish between a benign pigment increase and melanoma.

For lines that look benign, dermatologists often recommend monitoring with photographs taken every 6 to 12 months. Digital dermoscopy images allow precise comparison over time, catching any subtle changes in width, color, or pattern that might warrant a biopsy later.

What to Watch For Over Time

If your dark line has been stable for years, is narrow, evenly colored, and you have similar lines on other nails, it’s very likely benign. Lines that are new, changing, or isolated to one nail deserve more attention. Keep an eye on whether the band is getting wider, darker, or more irregular. Any pigment spilling onto the skin around the nail is a reason to get it looked at soon rather than later.