Brain blips can be unnerving, but they’re completely normal. The good news is they’re rarely the sign of a declining mind. We tend to think of youth as a time of peak mental capacity and that once our child-prodigy days are gone, there’s no hope left. But the human brain is most likely at its best during midlife, when life experiences combine with decades’ worth of neural connections, resulting in peak intelligence and ability. “We may not learn or recall information quite as quickly as we did in our teens and 20s,” says Sandra Bond Chapman, Ph.D., the founder and chief director of the Center for BrainHealth at the University of Texas at Dallas. “But during our 30s, 40s, and 50s, we get better at what matters most: making decisions, synthesizing information, and coming up with big ideas.” That means, however old you are now, it’s never too late to adopt healthy habits that will get your brain in good shape—and even improve with time. As we age, it’s natural for neurons to fire more slowly, but stress and anxiety cause people to pathologize perfectly normal experiences—like forgetting an acquaintance’s name (again). “You probably pay attention to the few things that go wrong, but don’t give your brain credit for the thousands of things it did right,” Chapman says. Instead of focusing on the occasional lapse, concentrate on daily habits. What you do today will play a significant role in whether you operate optimally in the present—and whether you develop more serious cognitive deterioration, like dementia, later in life. When it comes to brain function, everyday behavior matters as much as—if not more than—your DNA. Whether you’re 23 or 63, here are five proven ways to gain a mental edge for years to come. According to a 2013 study from the University of Texas at Dallas, older adults who learned cognitively demanding activities, like quilting and digital photography, improved their memories. On the other hand, those who listened to classical music, watched classic movies, or engaged in social activities, didn’t have the same gains. Another study from 2020, published in The Journals of Gerontology: Psychological Sciences and Social Sciences, suggests that regularly deviating from a mundane routine and getting exposure to a diverse array of activities throughout adulthood can boost cognitive functioning and decelerate the signs of cognitive aging, such as memory loss and declines in information processing. Next time you finish a great book, spend a little extra time writing a Goodreads review, blog post, or digital journal entry for your eyes only (a Word or Google doc will do). You might be surprised at what you come up with while mulling it over again. Or reach for a pen and your journal: Studies show that writing by hand—rather than typing—improves information processing, as well as the ability to remember what you’re writing about. Like the Mediterranean diet, the MIND diet emphasizes nuts, beans, whole grains, poultry, and olive oil. But unlike the former plan, it calls for consuming leafy greens daily and at least two weekly servings of berries, as both are rich in brain-boosting antioxidants. But working out on days when you have, say, a big presentation or a stressful test can give your mind the added sharpness it needs. Take this study, for example: Adults who did aerobic exercise regularly for four weeks—and exercised the morning that they took memory tests—scored higher than regular exercisers who skipped their workout on test day, according to a 2012 study from Dartmouth College. Exercise’s stress-thwarting effects may be partially responsible: “Stress is toxic to the brain,” Chapman explains. “It releases the hormone cortisol onto the hippocampus, where memories are stored.” That can make you momentarily forgetful and may weaken neural connections over time, increasing the odds of dementia. All that said, don’t miss out on regular sweat sessions when things aren’t especially stressful. Along with its more talked-about physical health benefits, keeping up with a fitness routine is a lifelong way to boost mental well-being and focus. “The brain processes information and consolidates ideas while you sleep,” says Chapman. “And most of that appears to happen between the sixth and eighth hours.” Short-change your sleep for just one night, and it can take several nights of solid slumber to return to your sparkling, coherent self. And chronically short-changed sleep, the effects of which can accumulate exponentially over the years, has been linked to mental health concerns from Alzheimer’s disease to depression and anxiety. Do you have trouble falling asleep? Consult a doctor or sleep specialist before turning to sleep aids. Prescription sleeping pills, although safe for occasional use, contain active ingredients that can slow down brain waves, making you feel groggy the next day. Over-the-counter (OTC) sleep medications are dicey, too. Most contain diphenhydramine, an ingredient linked to short-term cognitive impairment (that hangover-esque feeling). Worse yet, people who used the OTC medications regularly for several years were at an increased risk of dementia and Alzheimer’s disease later in life, according to a 2015 study published in JAMA Internal Medicine. To avoid the downsides of sleep deprivation, see a sleep specialist if you struggle to catch enough Zzzs every night.