Researchers said that those who are concerned about the well-being of their fellow human beings are happier than those who focus only on their own advancement.
Doing something nice for another person gives many people a pleasant feeling that behavioural economists call a warm glow.
Researchers, including those from the University of Zurich in Switzerland, investigated how brain areas communicate to produce this feeling.
In their experiments, the researchers found that people who behaved generously were happier afterwards than those who behaved more selfishly.
More From This Section
"You do not need to become a self-sacrificing martyr to feel happier. Just being a little more generous will suffice," said Philippe Tobler from the University of Zurich.
Before the experiment started, some of the study participants had verbally committed to behaving generously towards other people.
This group was willing to accept higher costs in order to do something nice for someone else.
They also considered themselves happier after their generous behaviour (but not beforehand) than the control group, who had committed to behaving generously towards themselves.
These three brain areas interacted differently, depending on whether the study participants had committed to generosity or selfishness.
Simply promising to behave generously activated the altruistic area of the brain and intensified the interaction between this area and the area associated with happiness.
"It is remarkable that intent alone generates a neural change before the action is actually implemented," said Tobler.
The study was published in the journal Nature Communications.