Obsessive-Compulsive Disorder is usually diagnosed through an assessment by a psychologist or psychiatrist according to guidelines in the DSM-5 based on a person's symptoms, thoughts, and behaviors.
Obsessions and compulsions typically must cause significant distress and interfere with daily functioning for more than an hour each day.