Your gift is 100% tax deductible.
Causes, Risk Factors, and Prevention of Melanoma Skin Cancer
Learn about the causes and risk factors for melanoma skin cancer and what you might be able to do to help lower your risk.
What causes melanoma skin cancer?
We don’t know exactly what causes each melanoma diagnosis. But we do know some of the risk factors for these cancers and how some of them cause normal skin cells to become cancerous.
For example, although most moles never turn into a melanoma, some do. Researchers have found some gene changes inside mole cells that might cause them to become melanoma cells. But it’s still not known exactly why some moles become cancerous while most don’t.
How gene changes (mutations) can lead to melanoma
Researchers have made great progress in understanding how certain gene changes in skin cells called melanocytes can lead to them becoming melanoma cells. For example, some genes contain instructions for controlling when cells grow and divide. Changes in these genes can lead cells to grow out of control.
Changes in several different genes are usually needed for a cell to become a cancer cell. To learn more, see Genes and Cancer.
Gene changes that lead to cancer can either be acquired during a person’s life or inherited from a parent.
Acquired gene changes linked to melanoma
Most often, gene changes related to melanoma are acquired during a person’s lifetime and are not inherited. Sometimes, these changes seem to happen randomly inside a cell, without having a clear cause. At other times, they happen as the result of exposure to an outside cause.
Ultraviolet (UV) rays and gene changes
For example, UV rays are a major cause of melanoma. Most UV rays come from sunlight, but some can come from man-made sources such as tanning beds. UV rays can damage the DNA in skin cells. Sometimes, this affects certain genes that control how the cells grow and divide. If these genes no longer work properly, the affected cells might become cancer cells.
Melanoma might not develop until many years after the DNA damage from UV rays has been done. For example, having frequent severe sunburns as a child or teen increases a person’s risk of melanoma as an adult.
Acquired gene changes found in melanomas
The most common acquired gene change in skin melanoma cells is a mutation in the BRAF gene, which is found in about half of all melanomas. Other genes that can be affected in melanoma cells include NRAS, CDKN2A, and NF1.
In melanomas that start on the palms of the hands, soles of the feet, or under the nails, known as acral lentiginous melanomas, or on surfaces inside the body such as the mouth and vagina, called mucosal melanomas, the most common change is in the C-KIT (KIT) gene.
Some of the gene changes found in melanoma cells are targets for drugs to help treat this disease. For example, drugs that target cells with changes in the BRAF gene or the KIT gene are now used to treat advanced melanomas with these changes. To learn more, see Targeted Therapy Drugs for Melanoma Skin Cancer.
Inherited gene changes linked to melanoma
Less often, people inherit gene changes from a parent that clearly raise their risk of melanoma.
Inherited melanomas most often have changes in tumor suppressor genes such as CDKN2A, CDK4, or BAP1 that prevent these genes from controlling cell growth. This could eventually lead to cancer.
For some people who have a strong family history of melanoma or who have had several melanomas or melanomas at an early age, doctors might advise genetic counseling and testing to see if they have an inherited gene mutation that increases their risk.
People with xeroderma pigmentosum (XP) inherit a change in one of the XP (ERCC) genes, which normally help to repair damaged DNA inside the cell. Changes in one of these genes can lead to skin cells that have trouble repairing DNA damaged by UV rays. People with XP are more likely to develop melanoma, especially on sun-exposed parts of the body.
Risk factors for melanoma skin cancer
A risk factor is anything that raises your risk of getting a disease such as cancer.
It’s important to know about the risk factors for melanoma because there might be things you can do to lower your risk. If you are at higher risk, there are also things you can do that might help find it early, when treatment is more likely to be successful.
Some risk factors, such as smoking and excess sun exposure, can be changed. Others, such as your age or family history, can’t be changed.
Having a risk factor, or even many risk factors, does not mean that you will get melanoma. Many people with risk factors never get melanoma. And some people who get it might have few or no known risk factors.
Several risk factors can make a person more likely to develop melanoma.
Exposure to UV rays is a major risk factor for most melanomas. Sunlight is the main source of UV rays. Tanning beds and sunlamps are also sources of UV rays.
Although UV rays make up a very small portion of the sun’s rays, they are the main cause of the damaging effects of the sun on the skin. UV rays damage the DNA (genes) inside skin cells. Skin cancers can begin when this damage affects the genes that control skin cell growth.
The pattern and timing of the UV exposure seem to play a role in melanoma development. For example:
- Melanoma on the trunk (chest and back) and legs is linked to frequent sunburns, especially in childhood. This might also have to do with the fact that these areas aren’t constantly exposed to UV light.
- Melanomas that start on the face, neck, and arms are in areas that get more constant sun exposure.
To learn more about the effects of UV rays on the skin and what you can do to protect yourself and your loved ones, see:
A mole, also known as a nevus, is a benign pigmented tumor. Babies are not usually born with moles; they often begin to appear in children and young adults.
Having many moles
Most moles will never cause any problems, but someone who has many moles is more likely to develop melanoma.
Atypical moles (dysplastic nevi)
Atypical moles are often larger than other moles and have an abnormal shape or color. They can appear on skin that is exposed to the sun, as well as skin that is usually covered, such as on the buttocks or scalp.
People with atypical moles are at higher risk for melanoma, although most atypical moles never become cancer, and most melanomas seem to arise without a preexisting atypical mole.
Atypical mole syndrome (dysplastic nevus syndrome)
People with this inherited condition have many atypical moles. If at least one close relative has had melanoma, this condition is referred to as familial atypical multiple mole and melanoma (FAMMM) syndrome.
People with this condition have a very high lifetime risk of melanoma, so they need to have very thorough, regular skin exams by a dermatologist, a doctor who specializes in skin problems. Sometimes full-body photos are taken to help the doctor recognize if moles are changing or if new ones have appeared.
Many doctors recommend that people with this condition learn how to do monthly skin self-exams as well.
Moles present at birth (congenital melanocytic nevi)
People with congenital melanocytic moles have less than a 5% chance of developing a melanoma in their lifetime. The exact risk depends on the size of the mole. For example, the risk for melanoma is very low in people with congenital moles that are smaller than the palm of the hand, while those with moles that cover large portions of the back and buttocks, known as bathing trunk nevi, have a higher risk.
Congenital moles are sometimes removed by surgery so that they can’t become cancer. They might also be removed for cosmetic reasons. Whether doctors advise removing a congenital mole depends on factors such as its size, location, and color.
If they are not removed, many doctors recommend that they be examined regularly by a dermatologist and that the person be taught how to do monthly skin self-exams.
The risk of melanoma is much higher for people with lighter skin tones than for people with darker skin tones.
And among people with lighter skin, those with red or blond hair, blue or green eyes, or skin that freckles or burns easily are at higher risk.
Your risk of melanoma is higher if one or more of your first-degree relatives (parents, siblings, or children) have had melanoma. Around 1 in 10 people with melanoma have a family history of the disease.
The increased risk might be because of a shared family lifestyle of frequent sun exposure, a family tendency to have lighter skin tone, certain shared gene changes (mutations) that run in a family, or a combination of these factors.
For some people with a strong family history of melanoma, doctors might advise genetic counseling and testing to see if they have gene changes that increase their risk.
A person who has already had melanoma has a higher risk of getting melanoma again. In people who’ve had several melanomas or who’ve had melanoma at an early age, doctors might advise genetic counseling and testing to see if they have gene changes that increase their risk.
People who have had basal cell or squamous cell skin cancers are also at higher risk of melanoma.
A person’s immune system helps the body fight off cancers. People with weakened immune systems from certain diseases or medical treatments are more likely to develop many types of skin cancer, including melanoma. For example:
- People who get organ transplants are often given medicines that weaken their immune system to help prevent them from rejecting the new organ. This increases their risk of melanoma.
- People living with HIV, the virus that causes AIDS, often have weakened immune systems and are at increased risk for melanoma.
- People with certain blood cancers that can weaken the immune system, such as chronic lymphocytic leukemia (CLL) or non-Hodgkin lymphoma, have a higher risk of skin cancer, including melanoma.
The risk of melanoma increases as people age, but melanoma can also develop in younger people. In fact, melanoma is one of the most common cancers in people younger than 30, especially younger women.
Melanoma that runs in families might occur at a younger age.
In the United States, men are more likely than women to get melanoma, although this varies by age. Before age 50, the risk is higher for women. After age 50, the risk is higher in men.
XP is a rare, inherited condition that lowers skin cells’ ability to repair damage to their DNA. People with XP have a high risk of developing melanoma and other skin cancers when they are young, especially on sun-exposed areas of their skin.
Can melanoma skin cancer be prevented?
There is no sure way to prevent melanoma. Some risk factors, such as your age, natural skin color, and family history, can’t be controlled. But there are things you can do that could lower your risk of getting melanoma and other skin cancers.
The most important way to lower your risk of melanoma is to protect yourself from exposure to UV rays. Practice sun safety when you are outdoors, and avoid tanning beds.
Seek shade
Simply staying in the shade is one of the best ways to limit your UV exposure.
Use UV protection
If you are going to be in the sun:
- Wear a shirt and a wide-brimmed hat.
- Apply sunscreen to areas not covered by clothing.
- Put on sunglasses to protect your eyes and sensitive skin around them.
Avoid using tanning beds and sunlamps
Tanning lamps give off UV rays, which can cause long-term skin damage and can contribute to skin cancer. Tanning bed use has been linked with an increased risk of melanoma, especially if it is started before a person is 30 years old. Most dermatologists (skin doctors) and health organizations recommend against using tanning beds and sunlamps.
Protect children from the sun
Children need special attention, because they tend to spend more time outdoors and can burn more easily. Parents and other caregivers should protect children from excess sun exposure by using the steps above. Children need to be taught about the dangers of too much sun exposure as they become more independent.
To learn more about sun safety
For more on how to protect yourself and your family from UV exposure, see How to Protect Your Skin from UV Rays
Checking your skin regularly might help you spot any new or abnormal moles or other growths. If they appear, show them to your doctor before they have a chance to turn into skin cancer.
Certain types of moles are more likely to develop into melanoma. If you have moles, depending on how they look, your doctor might want to watch them closely with regular exams or might remove some of them for testing if they have features that suggest they might change into a melanoma.
Routine removal of many moles is not usually recommended to prevent melanoma. Some melanomas develop from moles, but most do not. If you have many moles, getting careful, routine exams by a dermatologist, along with doing monthly skin self-exams, might be recommended.
If you find a new, unusual, or changing mole, you should have it checked by a doctor. See Signs and Symptoms of Melanoma Skin Cancer for descriptions of what to look for.
Infection with HIV, the virus that causes AIDS, can weaken the immune system. Avoiding known risk factors for HIV infection, such as intravenous (IV) drug use and having unprotected sex with many partners, might lower your risk of skin cancer, as well as many other types of cancer. For more information, see HIV Infection and Cancer.
Genetic counseling and testing for people at high risk of melanoma
Gene changes (mutations) that increase melanoma risk can be passed down through families (inherited), but these account for only a small portion of melanomas.
You might have inherited a gene change that increases your risk of melanoma if one or several of these conditions apply to you:
- Several (typically at least 2 or 3) members on one side of your family have had melanoma
- You have had several melanomas
- You have had melanoma at an early age (typically before age 45)
- You or other family members have also had other cancers that might be from an inherited genetic syndrome such as pancreatic cancer, breast cancer, or brain tumors
Common inherited gene changes in melanoma
The most common gene changes in families with high rates of melanoma are in the CDKN2A gene, also known as p16. Genetic tests for changes in this gene are available, although it isn’t clear how useful they are. Because people with any of the factors above are already known to have a higher risk of melanoma, it’s not always clear how genetic testing results would change what a person does or what a doctor would recommend.
Inherited changes in other genes are also linked with an increased risk of melanoma. While changes in some of these genes seem to be linked mainly with melanoma, changes in other genes result in inherited syndromes that increase the risk of other cancers as well as melanoma. For example:
- BRCA2 gene changes are most often linked with increased risks of breast and ovarian cancers, but they’re also linked with some other cancers, including melanoma.
- PTEN gene changes are linked with breast, uterine, and thyroid cancer, as well as melanoma.
- TP53 gene changes can result in Li-Fraumeni syndrome, which is linked with increased risks of breast cancer, sarcoma, and brain tumors, as well as some other cancers such as melanoma.
- BAP1 and MITF gene changes have also been linked with other cancers in addition to melanoma.
When to seek genetic testing
Most melanoma experts don’t recommend genetic testing for all people with a personal or family history of melanoma. Whether or not your doctor recommends genetic testing – and which gene changes would be tested for – will depend on how likely it is that you might have an inherited gene change.
If you’re considering genetic testing, it’s very important to meet first with a genetic counselor or other health professional with knowledge of genetic testing. They can describe the tests to you and explain what the results might tell you about your risk. Genetic testing is not perfect, and sometimes the tests might not provide clear answers. To learn more about genetic testing, see Genetic Testing for Cancer Risk.
Regardless of whether genetic testing is done, people with a strong personal or family history of melanoma should talk to their doctor about getting regular skin exams, learning to do skin self-exams, and being particularly careful about sun safety.
- Written by
- References
Developed by the American Cancer Society medical and editorial content team with medical review and contribution by the American Society of Clinical Oncology (ASCO).
Brewer JD, Habermann TM, Shanafelt TD. Lymphoma-associated skin cancer: incidence, natural history, and clinical management. Int J Dermatol. 2014;53: 267–274.
Curiel-Lewandrowski C. Melanoma: Epidemiology and risk factors. UpToDate. 2026. Accessed at https://www.uptodate.com/contents/melanoma-epidemiology-and-risk-factors on April 30, 2026.
Hunt R, Schaffer JV, Bolognia JL. Congenital melanocytic nevi. UpToDate. 2026. Accessed at https://www.uptodate.com/contents/congenital-melanocytic-nevi on April 30, 2026.
International Agency for Research on Cancer (IARC). IARC Monographs on the Evaluation of Carcinogenic Risks to Humans. Vol. 100D: Radiation. 2012. Accessed at https://publications.iarc.who.int/121 on May 1, 2026.
Levi F, Randimbison L, Te VC, et al. Non-Hodgkin's lymphomas, chronic lymphocytic leukaemias and skin cancers. Br J Cancer. 1996;74:1847–1850.
Mitchell TC, Karakousis G, Schuchter L. Chapter 66: Melanoma. In: Niederhuber JE, Armitage JO, Doroshow JH, Kastan MB, Tepper JE, eds. Abeloff’s Clinical Oncology. 6th ed. Philadelphia, Pa: Elsevier; 2020.
National Cancer Institute. Genetics of Skin Cancer (PDQ)–Health Professional Version. 2025. Accessed at https://www.cancer.gov/types/skin/hp/skin-genetics-pdq on April 30, 2026.
National Comprehensive Cancer Network (NCCN). NCCN Clinical Practice Guidelines in Oncology: Melanoma: Cutaneous. Version 2.2026. Accessed at https://www.nccn.org on May 4, 2026.
Quigley E. Atypical (dysplastic) nevi. UpToDate. 2026. Accessed at https://www.uptodate.com/contents/atypical-dysplastic-nevi on April 30, 2026.
Sullivan RJ, Shoushtari AN. The molecular biology of melanoma. UpToDate. 2026. Accessed at https://www.uptodate.com/contents/the-molecular-biology-of-melanoma on April 30, 2026.
Swetter SM, Tsao H, Bichakjian CK, et al. Guidelines of care for the management of primary cutaneous melanoma. J Am Acad Dermatol. 2019;80:208-250.
Tsao H, McCormick SR. Inherited susceptibility to melanoma. UpToDate. 2026. Accessed at https://www.uptodate.com/contents/inherited-susceptibility-to-melanoma on April 30, 2026.
Last Revised: August 12, 2026
American Cancer Society medical information is copyrighted material. For reprint requests, please see our Content Usage Policy.
American Cancer Society Emails
Sign up to stay up-to-date with news, valuable information, and ways to get involved with the American Cancer Society.


