Indulging in a piece of chocolate cake. Meeting up with your best friends for drinks. Going for a hike in the wilderness.

We like doing things that feel good because, well, they feel good. It's something psychologists call the "hedonic principle." Basically, the principle goes, we try to do pleasurable things whenever possible and avoid un-pleasurable things whenever we can.

Given our pleasure-seeking track record, it's pretty remarkable that any of us actually gets anything done.

So remarkable, in fact, that social scientists have hotly debated the question for decades. After all, if all we want to do is enjoy ourselves, how do we commit to mind-numbing chores like doing the laundry, or challenging tasks like finishing a work project?

More importantly, if all we seek is pleasure, then why do some of us spend such a large proportion of our lives unhappy?

A new study published August 15 in the journal Proceedings of the National Academy of Sciences takes a pretty big step toward answering it.

The researchers found that, contrary to popular belief, we actually don't spend all of our time going after activities that make us feel good. In fact, it's at times when we're feeling our best that we tend to gravitate toward doing the least pleasurable tasks on our lists, like laundry and chores. So maybe we forgo things that'll make us feel happy immediately (like happy hour) for duller things that have the potential to make us feel satisfied in the long term (like housework).

The finding could have big takeaways for our understanding of happiness and motivation.

"Our positive emotion, perhaps, can be seen as a resource," Dr. Jordi Quoidbach, one of the study's lead authors and a psychology professor at Barcelona's University Pompeu Fabra, told Business Insider. "When we don't have enough, we need to replenish it, but as soon as we have enough, we can potentially use that to get things done."

 World happiness report 2015
Image: Vox

Happiness is a delicate balance

To come to their conclusions, the researchers — an international team of psychologists, economists, and data scientists from universities including Harvard, Stanford, and MIT — spent a month using a smartphone app to monitor 28,000 Europeans' moods and activity choices.

First, the app would a person rate their current mood on a scale from 0 (very unhappy) to 100 (very happy) at random times throughout the day. Then it would ask them to pick from a list of 25 things what they were doing. (They were free to pick more than one.)

Not surprisingly, how people felt in any given moment sharply affected what they chose to do in that moment. When people were feeling bad, they tended to do things to make them feel better, like going on a hike or meeting up with friends.

Conversely, when folks were feeling good, they tended to do things that weren't inherently fun, like doing the laundry or cleaning up the house. (Of all the logged activities, spending time with other people had the strongest link to positive emotions, while using social media had either a neutral or slightly negative link.)

All of this suggests that for most of us, happiness is a delicate balance. When we're feeling down, we choose activities with short-term rewards to boost our spirits. When we're feeling good, we sacrifice fun activities for the potential of longer-term rewards.

And it could be good news for the workplace, too, Quoidbach said.

"Sometimes managers equate positivity and happiness at work with a propensity of people to slack off," Quoidbach said. "But one of the takeaways from this study is that cultivating positive emotion might be one way to actually get people to be more productive because of this sort of buffer or resource."

The designations employed and the presentation of material on this map do not imply the expression of any opinion on the part of the World Economic Forum concerning the legal status of any country, territory, city or area or of its authorities, or concerning the delimitation of its frontiers or boundaries.

Read more