Hair turns gray when the pigment-producing cells in your hair follicles stop doing their job. Every hair follicle contains specialized cells called melanocytes that inject color into each strand as it grows. When these cells run out or malfunction, the strand grows in without pigment, appearing gray or white. The timing depends on your genetics, ethnicity, stress levels, nutrition, and lifestyle habits.
What Happens Inside the Hair Follicle
Your hair color comes from melanocytes sitting in the base of each hair follicle. These melanocytes are replenished by a pool of stem cells that live higher up in the follicle. Each time a new growth cycle begins, some of these stem cells move down into the base, mature into working melanocytes, and start producing pigment for the growing strand.
A 2023 study published in Nature found that these stem cells are surprisingly mobile, shuttling back and forth between different zones of the follicle. In younger follicles, the stem cells move freely, cycling between an active state and a resting state. But as you age, some stem cells get stuck in one spot. They stop migrating, stop maturing, and stop producing pigment. Once enough stem cells become stranded, the follicle can no longer regenerate its color-making machinery, and the hair grows in gray.
There’s also a chemical component. Your hair follicles naturally produce hydrogen peroxide as a byproduct of normal cell activity. In younger follicles, an enzyme called catalase breaks it down. With age, catalase levels drop sharply, allowing hydrogen peroxide to accumulate to high concentrations. This essentially bleaches the hair from the inside out, damaging the enzyme responsible for pigment production and accelerating color loss throughout the follicle.
When Graying Typically Starts
The average onset of graying varies significantly by ethnicity. Caucasians typically notice their first gray hairs in their mid-thirties, Asians in their late thirties, and people of African descent in their mid-forties. Graying before age 20 in Caucasians or before age 30 in African populations is generally considered premature.
You may have heard the “50-50-50 rule,” the idea that at age 50, half the population has at least 50% gray hair. A large global survey found this is a significant overestimate. Between ages 45 and 65, about 74% of people had some gray, but the average coverage was only 27%. The percentage of people with at least half-gray hair at age 50 ranged from just 6% to 23%, depending on ethnicity and natural hair color.
Genetics Set the Timeline
The single biggest factor in when you go gray is your DNA. If your parents went gray early, you probably will too. Researchers have identified specific genetic variations linked to graying, including changes in a gene called IRF4, which helps regulate pigment production. But graying isn’t controlled by a single gene. It involves a network of genetic signals that influence everything from how your stem cells maintain themselves to how efficiently your follicles clear out damaging byproducts. Your genetic blueprint determines the baseline, and everything else either speeds it up or, in rare cases, slows it down.
How Stress Turns Hair Gray
The link between stress and gray hair is real, not just folklore. A landmark Harvard study published in Nature pinpointed the exact mechanism. When you experience intense stress, your sympathetic nervous system (the “fight or flight” system) releases a flood of norepinephrine directly into hair follicles. This chemical signal causes the resting pigment stem cells to suddenly activate, multiply rapidly, and then permanently leave the follicle.
The result is irreversible in that follicle: once those stem cells are gone, no new melanocytes can be made. A single severe stress event can drain the stem cell reservoir across many follicles simultaneously, which is why people sometimes seem to gray noticeably after a difficult period. In animal experiments, temporarily blocking stem cell activation during stress prevented graying entirely.
Gray Hair Can Sometimes Reverse
One of the more surprising findings in recent years is that graying isn’t always permanent. Researchers at Columbia University documented individual hairs that went gray and then naturally regained their pigment across different ages, sexes, and ethnicities. By analyzing the protein composition of single hairs, they found that gray sections showed changes in energy metabolism and stress-defense proteins compared to pigmented sections of the same strand.
In one case, a participant’s hair turned gray during a stressful period and regained color after the stress resolved. The researchers proposed a threshold model: if a hair is hovering near the tipping point of going gray, stress can push it over, but removing that stress can let it recover. This reversal appears limited to hairs that have only recently lost pigment. Once graying is well established, especially in older individuals, the stem cell damage is too extensive to bounce back.
Nutritional Deficiencies That Accelerate Graying
Several vitamin and mineral shortfalls are linked to premature graying, and unlike genetics, these are potentially fixable. Vitamin B12 deficiency is the most studied. In one controlled study, nearly 56% of people with premature gray hair were deficient in B12, compared to only 17% of age-matched controls without gray hair. The same study found significantly lower levels of folic acid and biotin in the premature graying group.
Other nutrients implicated in early graying include copper, iron (measured as ferritin), vitamin D, and calcium, though the evidence for these is less robust. Pernicious anemia, a condition where the body can’t absorb B12 properly, has a well-documented association with early graying. If you’re going gray unusually early, a simple blood test for B12 and related nutrients can determine whether a deficiency is contributing.
Smoking and Other Lifestyle Factors
Smoking is one of the strongest modifiable risk factors for premature graying. A study of Jordanian adults found that smokers were two and a half times more likely to develop gray hair before age 30 than nonsmokers, even after adjusting for other variables. Smokers also went gray about three years earlier on average (age 31 versus 34). The likely mechanism involves oxidative stress: cigarette smoke generates free radicals that damage melanocyte stem cells in much the same way that aging does, just faster.
Medical Conditions Linked to Early Graying
Several autoimmune and metabolic conditions can trigger premature graying. Autoimmune thyroid disease is one of the most common. In these conditions, the immune system can attack melanocytes or disrupt the hormonal environment they depend on. Vitiligo, a condition where the immune system destroys pigment cells in patches of skin, frequently co-occurs with early graying. In one study of people with premature gray hair, nearly 23% also had vitiligo patches elsewhere on their body. Pernicious anemia and rare premature aging syndromes like Werner’s syndrome are also associated with early loss of hair color.
Graying linked to a treatable medical condition can sometimes stabilize or partially improve once the underlying issue is addressed, particularly if it involves a nutritional deficiency or thyroid dysfunction caught early.

