How You Get Skin Cancer: Causes and Risk Factors

Skin cancer develops when ultraviolet (UV) radiation or other factors damage the DNA inside skin cells, causing them to grow uncontrollably. The vast majority of cases trace back to sun exposure or artificial UV sources like tanning beds, though genetics, immune function, and certain environmental toxins also play a role. Understanding exactly how this damage happens, and what makes some people more vulnerable, can help you gauge your own risk.

How UV Light Damages Your Skin Cells

When UV radiation hits your skin, it doesn’t just cause a sunburn on the surface. It physically distorts the DNA inside your skin cells, fusing neighboring molecules together into abnormal clumps. Your cells have built-in repair systems that can usually fix this damage, along with a key protein called p53 that acts as a safety brake, stopping damaged cells from dividing until repairs are complete. But with repeated UV exposure over months and years, these repair systems get overwhelmed. Mutations accumulate. Eventually, p53 itself can become mutated, removing the brake entirely.

Once that happens, damaged cells keep dividing. UV radiation also triggers chemical signals that promote cell survival and growth, essentially giving damaged cells a green light to multiply instead of self-destructing the way they normally would. This combination of broken DNA, failed repair, and unchecked growth is what turns a normal skin cell into a cancerous one.

UVA and UVB Do Different Damage

Sunlight contains two types of ultraviolet radiation that reach your skin, and they work differently. UVB rays penetrate the outermost skin layers and are the primary cause of sunburn. They directly damage DNA and are closely linked to basal cell carcinoma and squamous cell carcinoma, the two most common skin cancers.

UVA rays are slightly less intense but penetrate deeper, reaching the innermost part of your top skin layer where most skin cancers actually originate. UVA also generates reactive oxygen molecules that cause indirect DNA damage through oxidative stress. Both types contribute to cancer risk, which is why dermatologists recommend broad-spectrum sunscreen that blocks UVA and UVB together. SPF ratings on sunscreen labels specifically measure UVB protection, so checking for “broad spectrum” on the label is the only way to know you’re also getting UVA coverage.

Sunburns in Your Youth Matter Most

Not all sun exposure carries equal risk. Intense, blistering sunburns during adolescence and early adulthood are particularly dangerous. Experiencing five or more blistering sunburns between ages 15 and 20 increases melanoma risk by 80% and nonmelanoma skin cancer risk by 68%, according to the American Academy of Dermatology. This is because young skin cells are dividing rapidly during growth, making them especially vulnerable to DNA mutations that get locked in and passed along as those cells continue to replicate for decades.

Cumulative exposure matters too. People who spend years working outdoors or living in high-UV climates accumulate more total DNA damage over time, raising their risk for squamous cell carcinoma in particular. But the blistering-sunburn connection to melanoma is one of the strongest risk relationships in skin cancer research.

Tanning Beds Are Not Safer Than Sunlight

Indoor tanning delivers concentrated UV radiation, primarily UVA, directly to your skin. Using tanning beds before age 20 increases your chances of developing melanoma by 47%, and the risk climbs with each additional session. Indoor tanning can more than double the overall risk of melanoma. It also raises squamous cell carcinoma risk by 58% and basal cell carcinoma risk by 24%.

These numbers are striking because tanning beds were once marketed as a controlled, safer alternative to natural sun. They are not. The World Health Organization classifies tanning devices as carcinogenic to humans, in the same category as tobacco and asbestos.

Genetics and Family History

Some people inherit gene variants that make their skin cells less able to repair UV damage or more prone to uncontrolled growth. The most significant inherited mutation linked to melanoma involves a gene called CDKN2A, which normally helps regulate cell division. Families carrying this mutation have a dramatically higher lifetime risk. Other high-risk genes include CDK4, BAP1, and POT1.

However, these known high-risk genes account for only about half of familial melanoma cases. The other half likely involve combinations of lower-risk gene variants that add up. One important example is MC1R, the gene largely responsible for red hair, fair skin, and freckling. Variants in MC1R don’t just affect appearance. They impair a specific cellular defense pathway that normally suppresses cancer-promoting signals after UV exposure. This is one reason people with red hair and fair skin face higher melanoma risk even with modest sun exposure.

Weakened Immune Systems

Your immune system plays a constant, quiet role in identifying and destroying abnormal cells before they can form tumors. When that system is suppressed, skin cancer risk rises sharply. Organ transplant recipients, who take immunosuppressive medications to prevent their bodies from rejecting the new organ, face up to 100 times the skin cancer risk of the general population.

This elevated risk is most dramatic for squamous cell carcinoma, which becomes disproportionately common in transplant patients. The pattern confirms that the immune system is a major line of defense against skin cancer, not just UV avoidance. People with HIV, autoimmune conditions requiring immunosuppressive therapy, or certain blood cancers also face increased risk for similar reasons.

Causes Beyond Sunlight

While UV radiation drives the vast majority of skin cancers, it’s not the only cause. Chronic arsenic exposure, which can occur through contaminated groundwater, certain industrial processes, mining, and historically through medications used to treat conditions like psoriasis, triggers oxidative stress and activates inflammatory pathways that promote cell proliferation and cancer development. Populations in regions with naturally high arsenic levels in drinking water show elevated rates of both melanoma and nonmelanoma skin cancers.

Ionizing radiation from medical treatments (such as radiation therapy for other cancers) can also cause skin cancer in the treated area years or even decades later. Chronic wounds, long-standing scars, and areas of persistent skin inflammation occasionally give rise to squamous cell carcinoma as well, though this is uncommon compared to UV-driven cases.

Precancerous Spots and Progression

Skin cancer doesn’t always appear suddenly. Actinic keratoses, those rough, scaly patches that develop on sun-exposed skin, are precancerous lesions caused by cumulative UV damage. Most individual spots never become cancer. The estimated annual progression rate for a single actinic keratosis is very low, below 0.1%. But older adults who develop many of these lesions face compounding odds: among elderly patients with multiple spots, the annual rate of progression to invasive squamous cell carcinoma reaches about 0.6%, climbing to roughly 2.6% within four years.

This is why dermatologists treat actinic keratoses rather than simply watching them. Catching and removing these precursors is one of the few points in skin cancer development where you can intervene before a cancer forms.

Reducing Your Exposure

The FDA recommends using broad-spectrum sunscreen with an SPF of 15 or higher on any exposed skin. For adequate coverage, you need about one ounce (roughly a shot glass full) to cover your entire body. Reapply at least every two hours, and more frequently if you’re sweating or swimming. Sunscreen alone isn’t a complete solution, though. Seeking shade during peak UV hours (roughly 10 a.m. to 4 p.m.), wearing protective clothing, and avoiding tanning beds eliminate far more UV exposure than sunscreen can on its own.

People with fair skin, a family history of melanoma, a large number of moles, or a history of blistering sunburns carry the highest risk and benefit most from regular skin checks. Catching skin cancer early, particularly melanoma, dramatically changes the outcome.