In brief:
- The risk of depression and anxiety is shaped both by non-modifiable factors (genetics, age, a previous episode) and by lifestyle (physical activity, sleep, nutrition, loneliness).
- Regular physical activity is linked to a roughly 17–26% lower risk of developing depression in prospective studies (Schuch et al., 2018; Choi et al., 2019).
- Chronic insomnia and a nutrient-poor diet are independent modifiable risk factors (Baglioni et al., 2011; Lassale et al., 2019).
- Changing your lifestyle does not replace treatment, but it is an evidence-based part of prevention and healthy ageing.
Depression and anxiety are among the most common mental health disorders, affecting quality of life and healthy ageing. In this overview, we look at the risk factors that matter for depression prevention and how big a role everyday lifestyle — exercise, sleep and nutrition — plays. The aim is to explain, based on the evidence, what a person can influence themselves.
How do depression risk factors work?
Depression risk factors fall broadly into two groups: non-modifiable and modifiable. Non-modifiable factors include genetic predisposition, female sex, older age and a previous depressive episode. Modifiable factors include low physical activity, chronic sleep deprivation, social isolation, chronic stress and a nutrient-poor diet. It is through the latter that lifestyle can contribute to prevention.
A large prospective meta-analysis found that people with higher physical activity had a roughly 17% lower risk of developing depression than less active people (Schuch et al., 2018). A Mendelian randomization study suggested that the link may be causal: each higher level of activity was associated with a lower risk of depression (Choi et al., 2019). This does not mean elite sport — what matters is regularity and consistency in your exercise habit, which is well supported by structured coaching. For a good overview of why coaching matters, see The coach’s role in promoting health and physical activity.
How much does exercise protect mental health?
A systematic review of prospective studies showed that physical activity reduces the likelihood of future depression even after accounting for baseline health and socioeconomic factors (Mammen and Faulkner, 2013). The large HUNT cohort study found that even roughly one hour of exercise per week was associated with a lower risk of depression (Harvey et al., 2018).
Exercise works in several ways: it improves sleep, reduces inflammation and supports self-efficacy. An active lifestyle does not have to be complicated — it can start with walks and community-based exercise, as described in A new environment for an active lifestyle has opened. If troublesome Muscle cramps show up as a side effect of training, it is worth dealing with them separately so that they do not become a barrier to your exercise habit.
Do sleep and nutrition affect the risk of depression?
Sleep is one of the clearest modifiable risk factors. A meta-analysis of long-term epidemiological studies showed that insomnia more than doubles the risk of future depression (Baglioni et al., 2011). That is why improving sleep quality and keeping a regular sleep rhythm are a natural part of prevention.
Nutrition plays a role too. Following healthy dietary patterns (e.g. plenty of vegetables, whole grains and fish) was associated with a lower risk of depression (Lassale et al., 2019), and a meta-analysis of randomized trials found that improving nutrition moderately reduced symptoms of depression and anxiety (Firth et al., 2019). A varied diet also means, among other things, getting enough micronutrients, which is covered in Micronutrients and their role in nutrition. It is important to stress that this is a preventive lifestyle, not a medicine — in clinical depression or anxiety, an assessment by a healthcare professional is necessary.
What can you do yourself?
The practical core of prevention is simple: regular physical activity, proper sleep, a nutritious diet and maintaining social connections. These factors add up — together they work better than they do alone. For more detailed and reliable information on the nature of depression and on seeking help, see the World Health Organization. If symptoms persist, interfere with daily life or thoughts of self-harm appear, you should see a doctor.
References
- Schuch FB, Vancampfort D, Firth J, et al. (2018). Physical Activity and Incident Depression: A Meta-Analysis of Prospective Cohort Studies. American Journal of Psychiatry. PMID: 29690792
- Choi KW, Chen CY, Stein MB, et al. (2019). Assessment of Bidirectional Relationships Between Physical Activity and Depression Among Adults: A 2-Sample Mendelian Randomization Study. JAMA Psychiatry. PMID: 30673066
- Mammen G, Faulkner G (2013). Physical activity and the prevention of depression: a systematic review of prospective studies. American Journal of Preventive Medicine. PMID: 24139780
- Harvey SB, Øverland S, Hatch SL, et al. (2018). Exercise and the Prevention of Depression: Results of the HUNT Cohort Study. American Journal of Psychiatry. PMID: 28969440
- Baglioni C, Battagliese G, Feige B, et al. (2011). Insomnia as a predictor of depression: a meta-analytic evaluation of longitudinal epidemiological studies. Journal of Affective Disorders. PMID: 21300408
- Lassale C, Batty GD, Baghdadli A, et al. (2019). Healthy dietary indices and risk of depressive outcomes: a systematic review and meta-analysis of observational studies. Molecular Psychiatry. PMID: 30254236
- Firth J, Marx W, Dash S, et al. (2019). The Effects of Dietary Improvement on Symptoms of Depression and Anxiety: A Meta-Analysis of Randomized Controlled Trials. Psychosomatic Medicine. PMID: 30720698
Frequently asked questions
What are the main risk factors for depression?
Risk factors fall into non-modifiable ones (genetics, a previous episode, age, female sex) and modifiable ones (low physical activity, sleep deprivation, loneliness, chronic stress, poor nutrition).
Does exercise help prevent depression?
Prospective studies link regular physical activity to a lower risk of developing depression (Schuch et al., 2018), although it does not replace treatment when treatment is needed.
How does sleep affect mental health?
Chronic insomnia is an independent risk factor and more than doubles the risk of future depression (Baglioni et al., 2011), so good sleep quality is part of prevention.
Does changing your nutrition reduce anxiety?
A meta-analysis of randomized trials found that improving nutrition moderately reduced symptoms of depression and anxiety (Firth et al., 2019).
When should you see a doctor?
If symptoms persist for more than two weeks, interfere with daily life or thoughts of self-harm appear, you should contact a healthcare professional.
Come and train! ArtGym

