Yes, research indicates that a person’s genetics may contribute to the development of OCD. However, environmental risk factors also play a role, and further research into how genetics may increase the risk of developing OCD is necessary.

A 2021 review noted that OCD is a heritable condition that may be related to two or more genes. The study authors also highlighted that twin and genome-wide studies indicated that OCD shares genetic risk with comorbid conditions, which include anorexia nervosa and Tourette syndrome.

However, they concluded that the mechanism of how genetic and environmental risk factors interact to result in OCD traits is unknown. They also suggested that future wide-scale studies into how genetics play a role in OCD development are needed.

According to the National Institute of Mental Health, research has also shown that having a parent or sibling with OCD is associated with an increased chance of developing the condition. However, most of the time, people who have a close relative with the condition will not develop it themselves.

Other factors that may play a role in OCD development include:

Symptoms of OCD include uncontrollable obsessions and compulsions. Obsessions are repeated thoughts, urges, or mental images that are intrusive, unwanted, and often cause anxiety. Compulsions are repetitive behaviors a person feels the urge to do, often as the result of an obsession.

Anyone who suspects they are experiencing symptoms of OCD should consider speaking with a healthcare professional.