Being nice may be linked to genes.

New research at the University of Buffalo and UC Irvine found that a person's genes, along with upbringing, may help determine level of kindness in people.

Researchers found that certain hormones that inspire love and generosity are higer in some people than others, reported Post Media News.

The study surveyed over 700 people about their feelings toward charitable activities, civic duties and other views on taxes, reporting crime, giving blood and volunteering.

The subjects provided saliva samples for DNA analysis in order to show levels of the hormones oxytocin and vasopressin – both considered to be linked to love and kindness when they flood our brains.

According to Science Daily, lead author Michael Poulin of the University of Buffalo, said that the study was an attempt to apply earlier findings to see if these chemicals provoke other forms of good behavior such as paying taxes and reporting crimes.

Read more on GlobalPostMeditation can speed up the brain, researchers say

"The study found that these genes combined with people's perceptions of the world as a more or less threatening place to predict generosity," Poulin said, according to Post Media News.

"Specifically, study participants who found the world threatening were less likely to help others — unless they had versions of the receptor genes that are generally associated with niceness."

Poulin said that the study does not negate the importance of nurture in good behavior.

A study performed last year by scientists in Scotland found that identical twins, who are 100 percent of the same genetic make-up, had much more similar attitudes toward so called 'good' or 'sociable' behavior than did fraternal twins, who had the same upbringing but shared only 50 percent of their genes, reported Mother Nature Network.

Will you support The World?

Without federal support, local stations, especially in rural and underserved areas, face deep cuts or even closure. Vital public service alerts, news, storytelling, and programming like The World will be impacted. The World has weathered many storms, and we remain steadfast in our commitment to being your trusted source for human-centered international news, shared with integrity and care. We believe public media is about truth and access for all. As an independent, nonprofit newsroom, we aren’t controlled by billionaire owners or corporations. We are sustained by listeners like you.

Now more than ever, we need your help to support our global reporting work and power the future of The World.