Melanonychia is a brown or black discoloration on your nail. These can be harmless. But they may be a sign of an underlying condition or skin cancer. That’s why it’s important to get an accurate diagnosis. If you notice changes to your nails, contact a healthcare provider.
Advertisement
Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy
Melanonychia is a darkened area — usually brown or black — in your nail. This can form in one or many of your fingernails or toenails.
Advertisement
Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy
A deposit of melanin in your nail plate causes melanonychia. Melanin is a substance within your body that gives your hair, eyes and skin their color. Your nail plate is made of keratin, which doesn’t have color.
Cells that contain melanin exist in your nails, but the cells aren’t active. Certain situations and conditions can activate these cells. A line or band of brown or black pigment then forms in your nail.
Melanonychia is a common condition that’s often harmless (benign). But it may be a sign of an underlying medical condition like melanoma, a type of cancer.
The three types of melanonychia include:
The main symptom of melanonychia is an area of dark coloration in a fingernail or toenail. The area may:
Most commonly, it’s a vertical band. This streak can look like paint or residue from a marker. But it doesn’t wash off. It can form in any area of your nail.
Advertisement
If you notice changes to your skin or nails, see a healthcare provider. Melanonychia may be a sign of cancer or an underlying condition. So, it’s important to get an accurate diagnosis quickly.
Melanonychia has several possible causes. The most common causes, which are all noncancerous, include:
Other causes include:
Melanonychia is most common in people with medium to dark skin tones. For instance, among people of Caribbean descent, it’s common to have nail discoloration by age 50. Nearly 20% of people of Japanese descent have benign melanonychia.
Complications depend on the cause of melanonychia.
Causes like trauma, infection and inflammatory conditions can damage your nails. They may split and be painful.
Subungual melanoma can lead to cancer spreading (metastasis). In general, melanoma in your nail has a poorer outlook than melanoma on your skin.
A healthcare provider will diagnose melanonychia after a physical exam. During this exam, your provider will learn more about you, your symptoms and your medical history. They’ll ask questions based on the ABCDEF method:
Your provider may suggest tests to see whether the change to your nail is noncancerous or cancerous. Tests could include:
Advertisement
Treatment for melanonychia depends on the cause. If you have a benign form of it, you may not need any treatment — the discoloration is harmless and only cosmetic.
If the cause is an underlying condition, you’ll need to treat the condition. For example, you may need medications for an infection. Or you’ll need cancer therapies if you have subungual melanoma.
Your healthcare provider will be your guide. They’ll let you know whether you need treatment and what it entails.
In most cases, melanonychia isn’t serious. If you have it because of your race or ethnicity, you’ll likely have it forever. If an underlying noncancerous condition is the cause, it may fade after a few months of treatment.
If cancer is the cause, the prognosis is usually poor. An early diagnosis and treatment of skin cancer leads to a better outcome. It’s very important to see a provider when you first notice changes to your skin or nails.
Seeing a dark line in your fingernail or toenail may catch you by surprise. In most cases, melanonychia is a harmless discoloration. But one of its many possible causes is cancer. That’s why getting an accurate diagnosis is key. A healthcare provider will do a thorough evaluation to find the cause. They’ll let you know if you need treatment.
Advertisement
Cleveland Clinic’s primary care providers offer lifelong medical care. From sinus infections and high blood pressure to preventive screening, we’re here for you.

Last reviewed on 11/10/2025.
Learn more about the Health Library and our editorial process.