AUSTIN DISTEL-UNSPLASH

WHICH is more important to your overall well-being: the work you do, or the people you work with?

Today, we tend to focus a lot on the work itself. For years, young people have been told to 鈥渇ollow your passion鈥 and 鈥渄o what you love.鈥 Companies of all stripes have lured talent by promising that together, they and their employees can change the world. And although companies also brag about their company cultures, often this is a code for perks like flexibility.

But a new book by the director and associate director of the Harvard Study of Adult Development taps that long-running study on contentment to make the case that relationships 鈥 including our work relationships 鈥 are far more important than we give them credit for. The Good Life: Lessons from the World鈥檚 Longest Scientific Study of Happiness, by psychiatrist Robert Waldinger and psychologist Marc Schulz, draws on more than 80 years of data. Multiple generations of researchers followed the study鈥檚 participants 鈥 mostly Harvard undergraduates and low-income boys living in Boston tenements 鈥 for most of their lives, interviewing them and asking them to fill out questionnaires every few years. Many of their children now participate in the study.

The findings suggest that more of us should pay attention not only to what we do for a living, but whom we do it with.

鈥淢any of us spend most of our waking hours at work,鈥 Schulz told me. 鈥淲hat we found in following our participants across decades of their lives, and now following their children, is that the connections that people have at work are really critical 鈥 and that work is a pretty important source of connection for many people.鈥

In fact, the happiest man in the study, whom they call Leo, never achieved his dream of becoming a writer. Instead, he became a teacher. It wasn鈥檛 what he had planned 鈥 and likely wouldn鈥檛 have happened if his father鈥檚 death and his mother鈥檚 Parkinson鈥檚 diagnosis hadn鈥檛 forced him away from his chosen path. But his relationships with his students and colleagues made him so happy that he turned down several promotions.

It鈥檚 not that money doesn鈥檛 matter 鈥 wealthier people tend to have a longer life expectancy, for one thing, and the study鈥檚 richest participants lived about nine years longer than the poorest. But looking at the data 鈥 their own, and others鈥 鈥 鈥渕oney matters most at lower levels of income where a dollar, euro, rupee, or yuan is used to provide basic needs and a sense of security,鈥 write Schulz and Waldinger. 鈥淥nce you get above that threshold, money does not seem to matter much, if at all, when it comes to happiness.鈥

We also tend to underestimate what the day-to-day experience of work might be, even for things we鈥檙e passionate about. If Leo had become a writer, for example, he would have likely spent many days alone, rather than in noisy classrooms or convivial staffrooms.

Henry and Rosa, another of the study鈥檚 happier couples, experienced something similar. Henry worked in an auto plant, and Rosa, his wife, in the city payroll office. They didn鈥檛 love their work 鈥 it was pretty hum-drum 鈥 but they both enjoyed real camaraderie with their colleagues, often inviting them over for backyard barbecues. Over the course of their careers, they reported far higher levels of contentment than study participants who achieved greater financial success. In fact, when Henry retired, he missed work so much that he got a part-time job.

What about work-life balance? This is tricky. While Leo had strong family relationships, the work sometimes pulled him away from his wife and children. In fact, his family told researchers they wished he had spent more time with them. As a full-time working parent, that was tough for me to read.

And by the time they reached their 70s and 80s, many study participants told researchers they regretted spending so much time at work 鈥 even if they had loved their jobs. One man, called Michael, took pride in his work and considered it his life鈥檚 purpose. But his work ethic took a toll on his marriage. 鈥淵ou don鈥檛 always notice what you鈥檝e missed,鈥 he told the researcher interviewing him. 鈥淥ne day you turn around and you realize it鈥檚 too late.鈥

Maybe the best any of us can hope for is making peace with the sense that we鈥檙e always robbing Peter to pay Paul 鈥 always shortchanging one important relationship in our lives to nurture another. At least then we know we have multiple relationships worth the investment.

Even if you buy the idea that work friendships are vitally important, the modern workplace doesn鈥檛 make it easy to forge them. Not only are more of us spending more time working from home, we have to contend with the pressure to be maximally efficient; technology that lets us do more of our jobs independently rather than collaboratively; even HR policies that dissuade sharing personal information.

Power differentials can be especially fraught in a culture that believes emotions and work should never mix. A woman named Ellen told the researchers that she鈥檇 forged friendships with a handful of subordinates only to be betrayed by another woman, who apparently thought their closeness was unprofessional and left copies of her confidential appraisals on their desks. She found it so upsetting that she never formed another close relationship with a colleague for the rest of her career.

And on top of all that, we鈥檝e got families to rush home to, errands to run, and friends outside of work we鈥檙e trying to keep up with. Women鈥檚 second-shift responsibilities 鈥 the childcare and household chores that 鈥 also make it tougher to find the time to form friendships at work.

But friendships 鈥 even marriages 鈥 spring up in offices despite these hurdles. 鈥淐onnections with others are always within our reach,鈥 Schulz told me. 鈥淩elationships aren鈥檛 easy. They do require attending to. But if we want to have the benefits, we also have to accept some of the challenges.鈥

Friendships are 鈥渞isky and messy and unpredictable,鈥 he said, attributes that don鈥檛 exactly sound workplace appropriate. But if we want to enjoy our time at work 鈥 and feel happier overall 鈥 maybe that鈥檚 exactly where we need to be.

BLOOMBERG OPINION