Inadequate sleep, particularly during midlife, is associated with an increased risk of developing dementia later in life. Studies suggest that consistently sleeping six hours or less can raise dementia risk by about 30% compared to those who get a normal seven hours of sleep.