New research suggests loneliness is one of largest threats to one's lifespan.

A team of researchers from Brigham Young University determined loneliness was just as much of a threat to longevity as obesity.

"The effect of this is comparable to obesity, something that public health takes very seriously," said Julianne Holt-Lunstad, the lead study author. "We need to start taking our social relationships more seriously."

The effects were similar both for individuals who were often surrounded by other people but still felt alone and those who purposely isolated themselves. The researchers found the effect of loneliness on lifespan was more prevalent in younger age groups, even though older individuals are more likely to feel lonely.

"Not only are we at the highest recorded rate of living alone across the entire century, but we're at the highest recorded rates ever on the planet," said Tim Smith, co-author of the study. "With loneliness on the rise, we are predicting a possible loneliness epidemic in the future."

The analysis looked at data from numerous health studies encompassing over three million participants and controlled for outside health factors. The findings demonstrated the high risks associated with loneliness, but also suggested the existence of strong relationships came with significant health benefits.  Past studies have also concluded loneliness is just as detrimental to life span as smoking 15 cigarettes a day and being and alcoholic.

"In essence, the study is saying the more positive psychology we have in our world, the better we're able to function not just emotionally but physically," Smith said.

The findings were published in a recent edition of the journal Perspectives on Psychological Science.