Skin cancer develops when ultraviolet (UV) radiation damages the DNA inside skin cells, causing mutations that make those cells grow out of control. This damage accumulates over time from sun exposure, tanning beds, or both. But UV isn’t the only factor. Your genetics, immune system, and even the pattern of your sun exposure all shape your individual risk.
How UV Light Damages Your Skin Cells
When UV rays hit your skin, they physically alter the structure of your DNA. UVB rays, the kind responsible for sunburns, create abnormal bonds between neighboring DNA building blocks. These bonds, called pyrimidine dimers, aren’t especially dangerous on their own because your cells can usually repair them. The trouble starts when the damaged DNA undergoes a chemical change before repair crews arrive. Certain bases in your DNA spontaneously convert into a different molecule, and when the cell copies that strand, it reads the wrong instructions. The result is a permanent mutation.
UVA rays, which penetrate deeper into the skin and pass through windows, work differently. They generate reactive oxygen molecules inside your cells that chemically damage DNA at specific points, particularly at guanine bases. This oxidative damage leads to a distinct pattern of mutations found frequently in melanoma. Unlike UVB damage, UVA damage doesn’t cause a visible sunburn, so you can accumulate significant genetic injury without any obvious warning sign.
Your body has built-in repair systems that fix most UV damage within hours. But no repair system is perfect. With repeated exposure over years, a small fraction of mutations slip through. If those mutations happen to hit genes that control cell growth or suppress tumors, a normal skin cell can begin dividing uncontrollably.
The Exposure Pattern Matters
Not all sun exposure carries the same type of risk. The pattern of how you get UV exposure influences which kind of skin cancer is more likely to develop.
Intermittent, intense exposure is the pattern most strongly linked to melanoma. Think week-long beach vacations, weekend outdoor sports, or any situation where pale skin that hasn’t seen much sun suddenly gets a heavy dose of UV. Sunburns during childhood and adolescence are especially dangerous. A study tracking over 108,000 women for 20 years found that those who had five or more blistering sunburns between ages 15 and 20 had an 80 percent increased risk of melanoma and a 68 percent increased risk of basal cell and squamous cell carcinomas.
Cumulative, chronic exposure is the pattern more closely tied to squamous cell carcinoma. This is the kind of damage that builds up in people who work outdoors for decades: farmers, construction workers, lifeguards. It tends to produce cancers on the most sun-exposed areas like the face, ears, scalp, and hands. Researchers have identified what they call a “dual pathway” for melanoma specifically: one pathway driven by intermittent exposure that tends to produce melanomas on the trunk, and another driven by chronic exposure that leads to melanomas on the head and neck.
Tanning Beds Carry Real Risk
Indoor tanning delivers concentrated UV radiation, often at intensities several times stronger than midday sun. Using a tanning bed before age 20 increases your chances of developing melanoma by 47 percent, and each additional session raises the risk further. Tanning beds emit both UVA and UVB rays, so they trigger both the oxidative DNA damage and the direct DNA bonding mutations described above. The “base tan” some people seek before vacation offers minimal protection (roughly equivalent to SPF 3 or 4) and comes at the cost of significant cumulative DNA damage.
Genetics and Skin Type
Your genetic makeup influences skin cancer risk in ways that go beyond just how easily you burn. One of the most studied genes is the melanocortin 1 receptor gene, which helps determine your hair color, skin tone, and the type of melanin your body produces. Certain variants of this gene nearly quadruple melanoma risk. Carrying two variants raises the odds 3.6 times, while carrying even one variant increases risk 2.7 times, after adjusting for skin type.
What’s striking is that these genetic variants increase melanoma risk independently of skin color or hair color. Some variants are only weakly associated with fair skin or red hair, meaning people who don’t fit the stereotypical “high-risk” appearance can still carry significant genetic vulnerability. This helps explain why melanoma occasionally appears in people with olive or darker complexions.
Skin type still matters as a general guide, though. The Fitzpatrick scale classifies skin into six types based on how it responds to sun. Types 1 and 2 (skin that always burns easily and rarely tans) carry the highest risk. Types 3 and 4 can tan but still sustain UV damage with every exposure. Types 5 and 6 have more natural protection from deeper pigmentation, but skin cancer can still occur in people with very dark skin, often diagnosed at a later, more dangerous stage because neither patients nor doctors are looking for it.
A Weakened Immune System
Your immune system plays a constant, quiet role in destroying abnormal cells before they become cancer. When that surveillance system is suppressed, skin cancer risk climbs dramatically. The clearest example comes from organ transplant recipients, who take immunosuppressive medications for the rest of their lives to prevent organ rejection.
In a Canadian study of over 10,000 transplant recipients, nearly 17 percent developed a keratinocyte carcinoma (basal cell or squamous cell) within a few years of transplant. Their overall skin cancer incidence was almost seven times higher than the general population. The risk begins accumulating within the first few years after transplant and continues to grow over time. Other conditions or medications that weaken immune function, including certain autoimmune diseases and their treatments, carry a similar though often smaller increase in risk.
Precancerous Spots and How They Progress
Skin cancer doesn’t always appear out of nowhere. Squamous cell carcinoma frequently begins as actinic keratosis: rough, scaly patches that develop on sun-exposed skin after years of UV damage. These patches are extremely common in older adults with lighter skin, and most of them never become cancerous. The estimated annual progression rate for any single actinic keratosis spot is very low, between 0 and 0.075 percent per year. But the math changes when you have many spots. Among elderly patients with multiple actinic keratoses, the annual rate of progression to invasive squamous cell carcinoma rises to about 0.6 percent, and reaches 2.57 percent over four years.
The practical takeaway is that a single rough spot on your arm is unlikely to become cancer on its own. But if you have a field of them across your scalp, face, or forearms, the cumulative probability becomes meaningful. Dermatologists often treat these spots not because each one is dangerous, but because reducing the total number lowers the overall odds.
How to Reduce Your Risk
Since UV radiation is the primary driver of skin cancer, the most effective prevention is reducing UV exposure, especially the intense, intermittent kind that causes burns. Shade, protective clothing, and hats with brims do more than sunscreen alone because they physically block UV before it reaches your skin.
Sunscreen is still valuable, but the differences between SPF levels are smaller than most people assume. SPF 15 blocks 93 percent of UVB rays, SPF 30 blocks 97 percent, and SPF 50 blocks 98 percent. The jump from 30 to 50 adds only one more percentage point of protection. What matters more than the SPF number is using enough sunscreen and reapplying it every two hours, or after swimming or sweating. Most people apply only about a quarter to a half of the recommended amount, which drastically reduces the effective SPF.
Avoiding tanning beds eliminates a significant and entirely optional source of UV damage. For people with higher genetic risk or a history of severe sunburns, annual skin checks with a dermatologist can catch problems early, when treatment is simplest and outcomes are best.

