At age 55, most people hope for at least a few decades of clear thinking and sharp memory. A major new study suggests that common health habits in midlife might determine whether those years actually happen.

Researchers tracked 12,409 adults for up to 26 years using data from the Atherosclerosis Risk in Communities study, which has followed nearly 16,000 people across the United States since the 1980s. They measured three familiar risk factors — high blood pressure, diabetes, and smoking — then watched who developed dementia and who stayed mentally sharp into old age.

The findings were striking. People who had none of these three risk factors in midlife lived an average of 30.1 more years without dementia after age 55. Those who had all three managed only 17.5 dementia-free years — a difference of nearly 13 years. Each additional risk factor added meant fewer years of healthy brain function, with a clear step-by-step decline as risk accumulated.

The gap only widened with age. By 85, only 7 percent of people with all three risk factors had stayed dementia-free, compared to 35 percent of those with none. Having all three risks also made dementia 2.7 times more likely and premature death 5.6 times more likely.

"Dementia is not inevitable," the researchers noted. Their work adds to growing evidence that damage to brain blood vessels plays a major role in cognitive decline. High blood pressure, diabetes, and smoking all harm circulation, and their effects build up over decades — often before anyone notices a problem.

The study also found differences between groups. Women lived longer dementia-free than men at every risk level. Black participants had fewer dementia-free years than white participants, especially at higher risk levels. People with more vascular risk factors also tended to have higher body weight, exercised less, had less education, and were more likely to have had a stroke.

The researchers emphasized that their findings point toward action. Controlling blood pressure, managing or preventing diabetes, and quitting smoking — ideally before or around midlife — could buy people years of healthy thinking. For those who already have these conditions, proper treatment and lifestyle changes still matter.

For public health planners, the numbers offer a new way to think about prevention. Instead of only talking about the chance of getting dementia, doctors can now discuss how choices today might extend the years people spend living fully and independently. The message is simple: what happens to your blood vessels in your 40s and 50s may shape how your mind works in your 70s, 80s, and beyond.