Some people know rumination — the repetition of the same thought in your head over and over — as obsessive thinking, and for those who experience it, ruminating can be a frustrating state.

Thinking over and over about a missed opportunity, an ex, or when you misspoke — it’s bad enough to live through a negative experience once without beating yourself up in an unvirtuous mental loop. While it can often be beneficial to allow yourself the time and space to think about things that are important, too much of a good thing might actually be a bad thing. And when it comes to dealing with issues like depression or anxiety, allowing too much time to ruminate could keep you stuck in a mental rut.

“Rumination is associated with depression,” writes clinical psychologist Dr. Suma Chand for the Anxiety and Depression Association of America. “Research shows that people who ruminate are more likely to develop depression compared to those who don’t.” Maybe up to four times more likely, she says.

This goes the other way as well: A Canadian study conducted among college students found that those who experienced higher levels of anxiety or depression already tended to engage in more ruminative behaviors. Another study in China found similar results among the elderly population. Rumination, it turns out, becomes a vicious double-edged sword.

What Does Rumination Look Like?

Everyone at one time or another may feel like they’re “obsessing” over some idea or thought. The difference between a healthy amount of thinking about a topic, versus harmful rumination, is the end result. For example, if you find yourself thinking about a particular problem in order to come up with the best solution, you’re probably not ruminating. But if the thing on your mind has no solution, or may not be in your control, then you might want to ask yourself if you’re ruminating.

Depending on whether you’re experiencing depression, anxiety, or another mental health issue, rumination can take varying forms. One of my clients describes her anxious worrying as “catastrophic thoughts.” She often begins with a fairly benign thought, such as “This traffic is going to make me late to work.” This becomes “I’m a horrible employee who can’t even show up on time,” which turns into “I’m definitely going to get fired from my job.” For the rest of the week she’s sweating over a small, common mistake that wasn’t her fault.

“One of the things I find hard to articulate to people is that if I keep bringing something up or making jokes about it, that’s an indication I’m ruminating about it,” writes Alexis Schuster for The Mighty. I’m guilty of the same “tell” in my own ruminations. I find all sorts of creative ways to discuss the thing I can’t stop thinking about, from joking about it to asking rhetorical questions to asking others if they’ve ever had similar thoughts. Then I start obsessing over whether I’m annoying everyone with my ruminations.

It can feel lonely to be stuck in your head with your thoughts; sometimes letting them out is the only way to feel like you’re releasing the tension that’s building, to feel like you’re not the only one bearing the heavy load. However, once you let out some of the steam, it’s likely going to build up again. That’s when it’s time for a better solution.

How to Keep Rumination at Bay

“Rumination can be a problem because it rarely offers new insights or solutions on how to handle a situation,” Jodee Virgo writes for The Everygirl. “Instead it emotionally hijacks us and intensifies our negative feelings,” essentially, making us prisoners to our own thoughts, she continues.

Even if you tend to get stuck in a cycle of rumination, you’re not doomed to ruminate forever! There are luckily a number of ways to prevent or stop rumination. First, simple things like mindfulness, or paying attention to the here-and-now, keeps your mind present and free of repetitive preoccupations. To start being more mindful, Talkspace therapist Dr. Ben Epstein recommends regular yoga or meditation, which can be practiced from the comfort of your home.

Second, you may want to examine your thought patterns — are these thoughts based in reality, or are they cognitive distortions? Are you ruminating on something that’s out of your control? If so, think about whether dwelling on it is helping the matter or whether it’s just keeping you worked up. Even if your rumination is based in reality, think about the worst that could happen. Could you handle that scenario? I bet you could.

You can also schedule your anxiety — give yourself a few minutes to worry and ruminate. When time’s up, it’s time to move on.

Finally, if rumination is impacting your ability to function, or harming your quality of life, talking to a therapist can give you an objective point of view and guide you towards a calmer, less worried mind. Don’t you think you owe it to yourself?

Originally published on Talkspace.

More from Talkspace:

How to Be Brave About Your Mental Health

Why You Should Celebrate Small Wins

Is Your Boss Affecting Your Mental Health?

Follow us here and subscribe here for all the latest news on how you can keep Thriving.

Stay up to date or catch-up on all our podcasts with Arianna Huffington here.