What Is Melanin and What Does It Do for Your Skin?

Melanin is the natural pigment produced by your skin cells that determines your skin color, hair color, and eye color. It also acts as your body’s built-in sunscreen, absorbing ultraviolet radiation before it can damage deeper layers of skin. Everyone has roughly the same number of pigment-producing cells. What differs from person to person is how much melanin those cells make and how it gets distributed.

How Your Skin Produces Melanin

Melanin is made inside specialized skin cells called melanocytes. These cells contain tiny compartments called melanosomes, which function as miniature factories where melanin is assembled and stored. The process starts with an amino acid called tyrosine, which gets converted through a chain of chemical reactions into pigment. The key enzyme driving this process is tyrosinase, a copper-containing protein that kicks off the first and slowest step in the chain.

Once melanin is produced inside melanosomes, those packages are transferred to surrounding skin cells called keratinocytes. The melanin then arranges itself like a tiny umbrella over each cell’s nucleus, shielding the DNA from UV damage. This is why your skin darkens after sun exposure: UV light activates tyrosinase, ramping up melanin production as a protective response.

Two Types of Melanin, One Skin Color

Your skin doesn’t contain just one kind of melanin. There are two main forms, and their ratio is what gives your skin its particular shade.

  • Eumelanin produces brown-to-black pigment. It’s highly effective at absorbing UV radiation and is the dominant form in people with darker skin and black or brown hair.
  • Pheomelanin produces yellow-to-red pigment. It contains sulfur and is responsible for red hair, freckles, and lighter skin tones. Unlike eumelanin, pheomelanin is photo-unstable, meaning it can actually generate harmful molecules when exposed to UV light rather than neutralizing them.

Your melanocytes always produce a mixture of both types. The ratio depends on enzyme activity and the availability of certain amino acids, particularly cysteine. When cysteine levels in melanosomes are high, production shifts toward pheomelanin. When they’re low, eumelanin dominates. This is one reason why two people with similar skin tones can have different sun sensitivity: the underlying ratio of eumelanin to pheomelanin matters as much as the total amount.

What Controls How Much Melanin You Have

The density of melanocytes in your skin is roughly the same regardless of your ethnic background. Differences in skin color come down to how active those melanocytes are, how much melanin they produce, and how melanosomes are distributed across your skin cells.

A gene called MC1R plays a central role. It codes for a receptor on the surface of melanocytes that acts like a switch: when the receptor is activated, the cell ramps up eumelanin production. When it’s inactive or blocked, the cell defaults to making pheomelanin instead. People with certain MC1R variants tend to have red hair, fair skin, and freckles because their melanocytes produce more pheomelanin relative to eumelanin. MC1R is not the whole story, though. Researchers have identified many other genes that influence pigmentation, making skin color a genuinely complex trait shaped by dozens of genetic inputs.

Melanin as Sun Protection

Melanin’s most important job is absorbing UV radiation before it reaches your DNA. This protection is measurable. Black skin has an estimated natural SPF of about 13.4 against UVB rays, while white skin provides an estimated SPF of roughly 3.4. That’s a meaningful difference, but even an SPF of 13 falls well short of the SPF 30 or higher recommended by dermatologists, which is why sun protection matters for every skin tone.

Higher melanin concentrations also slow the visible signs of sun damage over time. People with more melanin tend to develop wrinkles, sunspots, and other signs of photoaging later in life and less severely than those with lower melanin levels. The Fitzpatrick scale, a six-point system used in dermatology, classifies skin by how it responds to UV exposure. Lower numbers (types I and II) burn easily and rarely tan, while higher numbers (types V and VI) rarely burn and tan deeply. The most common skin type in the United States is type III, which accounts for about 48% of the population.

The Vitamin D Tradeoff

Melanin’s UV-blocking ability comes with a downside: it also reduces the UV light available for vitamin D production. Your skin synthesizes vitamin D when UVB rays hit a cholesterol compound in the epidermis, and melanin absorbs some of those rays before they can trigger the process.

The effect is significant. People with deeply pigmented skin (Fitzpatrick type V) need roughly 2.5 to 3 times as much sun exposure as people with light skin to raise their vitamin D levels by the same amount. This means that people with darker skin who live at higher latitudes, where sunlight is weaker for much of the year, are at greater risk of vitamin D deficiency. It’s a classic evolutionary tradeoff: near the equator, high melanin levels protect against intense UV while still allowing enough vitamin D synthesis. Farther from the equator, lower melanin levels let the skin capture more of the limited UV available.

Melanin Beyond the Skin

Melanin isn’t found only in skin, hair, and eyes. A form called neuromelanin exists in the brain, specifically in dopamine-producing neurons in an area involved in reward and movement. Neuromelanin accumulates gradually over your lifetime and is only cleared away when those neurons die, which is what happens in Parkinson’s disease. Researchers are now studying neuromelanin levels using specialized MRI scans as a potential marker for brain health, though this work is still in early stages.

When Melanin Production Goes Wrong

Several conditions involve disruptions in normal melanin production. Some cause too little pigment, others too much.

Vitiligo occurs when the immune system attacks and destroys melanocytes in patches, leaving areas of skin with little or no color. It can appear anywhere on the body and affects all skin tones, though it’s most visible on darker skin. Albinism is a group of genetic conditions in which melanin production is severely reduced or absent from birth, affecting skin, hair, and eyes. People with albinism often have very pale skin and vision problems because melanin also plays a role in eye development.

On the other end of the spectrum, conditions like melasma cause patches of excess pigmentation, typically on the face. Pregnancy, hormonal changes, and sun exposure can all trigger melanocytes to overproduce melanin. Addison’s disease, a disorder of the adrenal glands, can also darken the skin broadly because the hormonal signals involved in the condition inadvertently stimulate melanocytes. Burns, blisters, and skin infections can leave behind either lighter or darker patches as melanin production is disrupted during healing.