Being forgiving to yourself and others can protect against stress and the toll it takes on mental health, according to a new study in the Journal of Health Psychology.

Researchers looked at the effects of lifetime stress on a person’s mental health, and how more forgiving people fared compared to people who weren’t so forgiving. To do this, they asked 148 young adults to fill out questionnaires that assessed their levels of lifetime stress, their tendency to forgive and their mental and physical health.

No surprise, people with greater exposure to stress over their lifetimes had worse mental and physical health. But the researchers also discovered that if people were highly forgiving of both themselves and others, that characteristic alone virtually eliminated the connection between stress and mental illness.

Get our Health Newsletter. Sign up to receive the latest health and science news, plus answers to wellness questions and expert tips. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

“It’s almost entirely erased—it’s statistically zero,” says study author Loren Toussaint, an associate professor of psychology at Luther College in Iowa. “If you don’t have forgiving tendencies, you feel the raw effects of stress in an unmitigated way. You don’t have a buffer against that stress.”

How a forgiving personality protects a person from the ills of severe stress is hard to determine. The researchers speculate that people who are more forgiving may adopt better coping skills to deal with stress, or their reaction to major stressors may be dulled.

The sample of people in the study is small, and more research is needed to fully understand the benefits of being more forgiving. But Toussaint says he believes “100%” that forgiveness can be learned. Many therapists work to cultivate forgiveness in sessions, he says, and his own prior research has shown that saying a short prayer or a brief meditation on forgiveness can help people take the edge off.

“Forgiveness takes that bad connection between stress and mental illness and makes it zero,” he says. “I think most people want to feel good and it offers you the opportunity to do that.”

Contact us at letters@time.com.