Envy of friends and coworkers comes from upward social comparison—peers are the most relevant yardstick we have. Naval Ravikant suggests the wholesale swap test: would you trade your entire life, problems included, for theirs? Combine that with HBR’s gratitude practice and curiosity about what envy is pointing at, and the feeling becomes a useful signal instead of a poison.

I used to think the most embarrassing emotion was anger. Then I realised it was envy. Anger at least has a direction, a target, a story you can tell yourself. Envy is the one you swallow in silence while smiling at someone you love. The reason it stings so much with friends and coworkers — and almost never with strangers — is that envy is always relative. Robert Emmons, the gratitude researcher cited in Managing Your Anxiety, puts it bluntly: you cannot feel envious and grateful at the same time, and the closer the person, the louder the comparison gets.

Leon Festinger called this upward social comparison, and the strange part is that it isn’t a flaw — it’s how we calibrate. The brain reaches for a yardstick, and the most useful yardstick is someone roughly like you: same age bracket, same field, same starting line. A celebrity’s yacht doesn’t hurt because the data point is too far away to mean anything. A coworker’s promotion hurts because the data point is one desk over. The pain you feel is the gap between where you thought you were and where the comparison just placed you.

Naval Ravikant offers what I think is the cleanest intervention. He calls it the wholesale swap test. The next time you envy someone’s salary, body, partner, or apartment, ask yourself if you would trade your entire life for theirs — not just the part you envy, but their childhood, their relationships, their fears, their secret 3am thoughts. Almost no one says yes. The envy doesn’t survive contact with the whole picture, because you were never envying a person; you were envying a curated slice. Naval is sharper still: most of what we envy isn’t even something the other person enjoys. It’s a story we built about a feeling we think they have.

The second move is the one Brad Stulberg and Steve Magness make in The Passion Paradox: don’t judge yourself against others, judge yourself against prior versions of yourself. This sounds like a platitude until you actually do it, and the relief is immediate. Comparison to a peer is a snapshot in someone else’s film; comparison to your own past year is the only frame in which your effort actually shows up. When a friend gets a promotion, I now sit down and write, in third person, what last year’s me would think of this year’s me. Stulberg calls this self-distancing. It works because the brain takes its own narrator more seriously when it speaks from outside.

The third move, which I learned from the HBR Managing Your Anxiety collection, is to get curious rather than ashamed. Envy is a habit loop — trigger, behaviour, reward. The trigger is the LinkedIn post. The behaviour is the cycle of comparing. The reward is the strange feeling that you’re “doing something” about your own situation by stewing. The loop breaks when you ask, calmly, what is this envy pointing at? Is it the title, or the autonomy that came with it? Is it the salary, or the option to leave a relationship? Most of the time, the envy is a map. It tells you what you actually want, in a language guilt won’t let you speak in plain sentences. Once decoded, the feeling is data.

And then there is the simplest practice of all, which I picked up from gratitude research and which has held up under daily use: when you feel the spike, write one sentence about something a friend or coworker has done for you in the last month. Not a grand thing — a small one. The covered shift, the kind email, the patient pause when you said something stupid. The same nervous system that produces envy cannot run a gratitude subroutine in the same second, so one drives the other out. Over months this rewires the default response from comparison to thanks, and the difference in how it feels to scroll a friend’s feed is, honestly, the difference between a knot in the stomach and a small, real smile.

The goal isn’t to never feel envy again — that would be a personality transplant, not a discipline. The goal is to notice it within thirty seconds, run the wholesale swap test, write the gratitude sentence, and ask what map the feeling is handing you. Envy of a coworker’s success is one of the most honest signals you will ever get about your own wanting. Listen to it, decode it, then put it down.


Related: How to Find Your Passion · Best Self-Improvement Books · How to Make Better Decisions · Why Exploration Is Important for Success