Having an unwanted thought you can't shake?
First, your safety. If the thoughts come with an urge or a plan to hurt yourself or someone else, call or text 988. If someone is in danger right now, call 911.
A thought pops into your head that you did not ask for. It might be violent, sexual, about doing something terrible, or just strange. It can feel like the opposite of who you are. Then it comes back, and each time it does, you feel a jolt of fear or shame.
Short answer: this is an intrusive thought, and having a thought is not the same as wanting it or acting on it. You don't have to figure out why it came or push it away. This might help: name it, let it be there, and go back to what you were doing.
Name it
When the thought shows up, you could say to yourself: This is an intrusive thought. That's all. You don't need to add anything to it.
Unwanted thoughts like this are very common. A thought is something your mind produces. Having one is not the same as wanting it, agreeing with it, or acting on it.
You don't have to solve it or push it away
It is natural to want to figure out why the thought came, what it means about you, or how to make sure it never comes back. You don't have to do any of that right now.
Pushing a thought out of your mind tends to bring it back. The harder you try not to think it, the more your mind keeps checking for it.
You might also feel pulled to check something, ask someone if you're okay, or test how you feel about the thought. Those can bring a moment of relief, and they often keep the thought coming back. You don't have to do them right now.
Let it be there, and go back to what you were doing
Let the thought sit in the background, like a radio playing in another room. You don't have to turn it off. Turn back to what you were doing: the dishes, the email, the conversation, the drive home.
The thought may come back. If it does, notice it, name it, and return to what you were doing again. You might do this many times. Each time counts.
A small step back into the room
If you need help getting your attention back to where you are, a light grounding step can help: name 3 things you can see, and feel your feet on the floor. This isn't a way to make the thought go away. It is a way to come back to what you were doing, even if the thought is still there. The 5-4-3-2-1 grounding technique is a longer version, and our guide on how to ground yourself right now walks through it.
Open 5-4-3-2-1 Grounding free in Strua →
If what you are stuck on is more of a worry you keep going over, like a conversation or a decision, the guide on what to do when you can't stop overthinking might fit better.
When to talk with someone
If unwanted thoughts take up a lot of your day, or you feel driven to do things to get rid of them, like checking, washing, asking for reassurance or going over things in your head, a clinician can help. You do not have to work this out on your own. Our page on OCD and intrusive thoughts and our anxiety page have more.
It is also common to know all of this and still get pulled in when the thought hits. Our page on why advice fails during anxiety explains why.
If you want it guided
This might help if you want something to do while you come back to what you were doing. Strua's 5-4-3-2-1 Grounding prompts each sense one at a time, so all you have to do is answer. You can use a whole tool before you sign up for an account (four are open to try first). No chatbot, no AI-generated advice. Clinician-designed, built by a licensed clinical psychologist.
Open 5-4-3-2-1 Grounding free in Strua →FAQ
Should I try to figure out why I had this thought?
You don't have to. Trying to work out why a thought came, or what it says about you, often keeps it going. Naming it and going back to what you were doing is enough for right now.
What if the thought keeps coming back?
That is common. Each time, you can notice it, name it, and return to what you were doing. If it keeps coming back for days and takes up a lot of your time, it is worth talking with a clinician.
Is this OCD?
Only a clinician who knows you can say. Unwanted thoughts on their own are common. If they take up a lot of your day, or you feel driven to do things to get rid of them, that is worth talking over with a doctor or therapist.