Scroll through any social feed for a few minutes and a pattern appears. Someone has been promoted, someone else is on a beach, a third person has finished renovating a kitchen that looks like a magazine spread. Very few posts show the rejected job application, the argument in the car on the way to the beach or the credit card bill for the kitchen.

Comparison is much older than the smartphone, and the Stoics wrote about it with real precision. Epictetus watched Roman social climbers fight over dinner invitations. Seneca wrote about friends who resented getting less than someone else.

Their advice, read alongside some modern research, holds up well for an era of curated feeds.

1. Remember you are seeing the highlights

"When, therefore, you see anyone eminent in honors, or power, or in high esteem on any other account, take heed not to be hurried away with the appearance, and to pronounce him happy," Epictetus warned in the Enchiridion.

Psychologists too have found that people misjudge others' emotional lives in a consistent direction. In a set of studies led by Alexander Jordan at Stanford, students underestimated how often their peers went through negative experiences, by an average of 17 percent, and slightly overestimated their positive ones, the British Psychological Society's Research Digest reported. Students who underestimated their peers' struggles the most also tended to feel lonelier and less satisfied with life.

2. Remember that you didn't pay their price

Epictetus had a blunt way of putting this. "For how much is lettuce sold?" he asked. If someone else pays for the lettuce and you don't, "don't imagine that he has gained any advantage over you. For as he has the lettuce, so you have the fifty cents which you did not give."

The colleague with the impressive title may be working 70-hour weeks. The friend who travels constantly may be spending money you have chosen to save. Before envying an outcome, it helps to ask whether you would actually pay what it cost.

3. Notice what comparison does to what you already have

"No man is satisfied with his own lot if he fixes his attention on that of another," Seneca wrote in Book Three of On Anger. Just before that, he offered a remedy: "let us enjoy what we have without making any comparisons. A man will never be well off to whom it is a torture to see any one better off than himself."

A perfectly good apartment can start to feel cramped after ten minutes of looking at other people's homes. Nothing about the apartment has changed. Only the point of reference has.

4. Count the people behind you too

Seneca noticed how often comparison runs upward. People forget, he wrote, "of how many we take precedence," and he urged his reader to "think how many more are below you than there are above you." He added that a person who envies a few people is usually envied by many more.

That isn't an invitation to look down on anyone. The point is to see how fortunate you already are. Counting the people behind you as well as those ahead gives a more accurate picture, and it tends to leave room for gratitude rather than resentment.

5. Watch your own lane

"How much trouble he avoids who does not look to see what his neighbour says or does or thinks, but only to what he does himself, that it may be just and pure," Marcus Aurelius wrote in Book Four of the Meditations.

Our earlier piece on the art of minding your own business looks at this idea in more depth. Applied to comparison, it means measuring yourself against your own aims and your own past, not against whoever happens to be in the feed today.

6. Put limits on the feed itself

The Stoics never faced an endless scroll, but modern research suggests the amount matters. In an experiment at the University of Pennsylvania led by Melissa Hunt, 143 undergraduates were split into two groups. One kept using Facebook, Instagram and Snapchat as usual. The other limited each platform to 10 minutes a day for three weeks. The limited group showed significant drops in loneliness and depression, according to the university, with the biggest changes among students who started out more depressed.

We're not psychologists, and this was a study of young adults, so the results may not apply to everyone. However, setting a daily cap or deleting the app that triggers the most comparison is a low-cost thing to try.

7. Be glad for them

Epictetus opened his lettuce passage with a line that is easy to skip. If someone is preferred over you and the thing they received is good, he wrote, "you ought to be glad that he has gotten them."

That is hard to do on demand, and nobody should fake it. Sending a sincere congratulation, even when part of you is grumbling, can still change the moment.

8. Keep your accounts honestly

Seneca ended his passage on comparison with a diagnosis. "Do you ask, what is your greatest fault? It is, that you keep your accounts wrongly: you set a high value upon what you give, and a low one upon what you receive."

A comparison-heavy scroll keeps that kind of skewed ledger: everyone else's gains in bold, your own blessings in small print. Correcting it can be as simple as listing, once in a while, what has actually come your way.