Although worrying does not feel good, it may have surprising benefits when done in just the right amount, two psychology researchers argue in a new editorial.

For example, worrying may motivate people to engage in behaviors that are potentially beneficial to their health, the researchers said. People who are worried may slather on sunscreen to help prevent skin cancer, and women may get regular mammograms to screen for breast cancer, the researchers said.

“Despite its negative reputation, not all worry is destructive or even futile,” lead author Kate Sweeny, a psychology professor at the University of California at Riverside, said in a statement.

However, the relationship between worry and behaviors that are potentially beneficial to people’s health is complex and seems to depend on how much a person worries, the authors noted. [9 DIY Ways to Improve Your Mental Health]

Previous research has shown that “women who reported moderate amounts of worry, compared to women reporting relatively low or high levels of worry, are more likely to get screened for cancer,” Sweeny said. “It seems that both too much and too little worry can interfere with motivation, but the right amount of worry can motivate without paralyzing.”

In the editorial, the authors looked at research that had examined both the downsides and upsides of worry. For example, studies have linked excessive worrying with such downsides as anxiety, fatigue, trouble concentrating and sleep problems, the researchers wrote in the editorial, published last month in the journal Social and Personality Psychology Compass.

However, other research has shown that worrying can also have positive effects on behavior, the researchers said. Worrying not only may motivate people to take action, as in using sunscreen, but also may allow people to better prepare themselves for negative experiences in their lives and to develop a greater appreciation for positive experiences.

For example, if a person who is worried and bracing for the worst in a certain situation receives the expected bad news, the disappointment will be mitigated by the advance worrying. However, if the news is good instead of bad, then the person may experience more excitement than if he or she had not been worried, the researchers said. [5 Wacky Ways to Quantify Happiness]

The new paper “flies in the face of what a lot of people may assume when it comes to worry,” said Simon Rego, an associate professor of clinical psychiatry and behavioral sciences at Albert Einstein College of Medicine in New York.

However, the idea that worry may have an upside is definitely valid, said Rego, who was not involved in writing the editorial.

Moreover, there are other psychological states and emotions that may feel unpleasant but that can nonetheless be useful.

For example, experiencing justifiable anger may motivate people to “defend themselves or correct a sense of injustice,” Rego said. If a person sees someone key-scratching his or her car, such anger might motivate the car’s owner to rectify the injustice, he said.

— Live Science

More Live Science:

Daydreaming Again? Five facts about the wandering mind

Seven ways depressiondiffers in men and women

Some controversial mental health treatments