section_path: Risk factors/Mental illness
section_name: Mental illness
paragraph_text: Mental illness
  
  Mental illness is present at the time of suicide 27% to more than 90% of the time. Of those who have been hospitalized for suicidal behavior, the lifetime risk of suicide is 8.6%. Comparatively, non-suicidal people hospitalized for affective disorders have a 4% lifetime risk of suicide. Half of all people who die by suicide may have major depressive disorder; having this or one of the other mood disorders such as bipolar disorder increases the risk of suicide 20-fold. Other conditions implicated include schizophrenia (14%), personality disorders (8%), obsessive–compulsive disorder, and post-traumatic stress disorder. Those with autism also attempt and consider suicide more frequently.
  
  Others estimate that about half of people who die by suicide could be diagnosed with a personality disorder, with borderline personality disorder being the most common. About 5% of people with schizophrenia die of suicide. Eating disorders are another high risk condition. Around 22% to 50% of people with gender dysphoria have attempted suicide, however this greatly varies by region.
  
  Among approximately 80% of suicides, the individual has seen a physician within the year before their death, including 45% within the prior month. Approximately 25–40% of those who died by suicide had contact with mental health services in the prior year. Antidepressants of the SSRI class appear to increase the frequency of suicide among children and young persons. An unwillingness to get help for mental health problems also increases the risk.