Dementia can have a genetic component, but not all cases are hereditary. In some cases, specific gene mutations can increase the risk of developing dementia, such as in familial Alzheimer's disease. If you have a family history of dementia, it's essential to discuss it with your healthcare provider. They can assess your risk and may recommend genetic counseling or testing in some situations. Regardless of genetics, adopting a brain-healthy lifestyle, including staying mentally and physically active, managing cardiovascular health, and maintaining a balanced diet, can help reduce the risk or delay the onset of dementia.