Educational reference
About this symptom
Compulsions are behaviours or mental acts repeated in response to distress, usually to reduce it or to prevent a feared outcome. They are not done for enjoyment, and the person often recognises them as excessive.
Some are visible: washing, cleaning, checking locks or appliances, arranging objects, repeating an action until it feels right. Others happen entirely in the mind, including silent counting, repeating phrases, mentally reviewing events, or trying to replace a thought with a safer one. Mental rituals are easy to miss precisely because nothing can be seen from outside.
Rituals tend to follow rules that feel rigid, and the relief they bring is usually brief. Because relief arrives immediately and the feared outcome does not occur, the ritual appears to have worked, which makes repeating it more likely. Over time rituals often lengthen or spread to new situations.
Recognising mental rituals matters in treatment. Stopping a visible behaviour while continuing to perform the mental version tends to leave the pattern intact.