Somewhere in your phone is a person you'd call one of your closest friends. Count back, and you've seen them twice in the past year.

It's tempting to read that as a friendship winding down. Aristotle drew a finer line. In the Nicomachean Ethics he separates the disposition of friendship from its activity: friends who live apart aren't doing the things friends do, but they remain disposed to, and "distance does not break off the friendship absolutely, but only the activity of it." He follows it with a warning: an absence that lasts long enough seems to make people forget the friendship.

So a friend you see twice a year is still a friend, as long as the friendship doesn't go silent in between. A message, a call or a photo keeps it in use, and nothing here makes two visits the right number. The more useful question is which friendships deserve that effort. Confucius named three kinds of friend worth having. The Buddha described four. Cicero gave the subject a whole dialogue. The seven types below draw on those lists and a few others. The groupings are this article's, and the passages are theirs.

The question matters more as the years go on. In a 2017 paper, psychologist William Chopik of Michigan State University analyzed a survey of 271,053 adults and found that people who placed more value on friendships reported better health and well-being, and the link was stronger among older adults. A one-time survey can't show cause, and it says nothing about how often friends need to meet.

1. The friend who knew you before

Cicero's dialogue on friendship, Laelius de Amicitia, raises a question that sounds almost rude: should new friends ever be preferred to old ones, the way people prefer young horses? His answer is no. Friendships are like wines that improve with age, he says, and "the oldest friendships ought to be the most delightful." He adds a proverb that people have to eat many a peck of salt together before a friendship is complete. He doesn't dismiss new friends, but he insists the old ones keep their place.

The salt is the point. This friend has something no one you met later can acquire: the memory of who you were before your current job, your current town or your current worries. They may have sat in your parents' kitchen. They remember what you wanted at 25.

History doesn't expire between visits, which is why this friendship can survive a sparse calendar. When you do meet, spend some of the time on the old material. Ask about something only the two of you would remember, and between visits, send the photo when you find it. Then ask about something happening in their life now. Shared history gives you a place to begin; staying interested in who you're both becoming gives you somewhere to go.

2. The friend who tells you the truth

The first of Confucius's three beneficial friendships, in James Legge's translation of the Analects, is "friendship with the upright." Cicero says much the same at greater length. True friendship, he writes, means both giving and receiving advice: giving it freely but without harshness, and receiving it patiently, without resentment. He also passes on a remark he credits to Cato, that some people are better served by bitter enemies than by "sweet-smiling friends," because the enemies often tell the truth and such friends never do.

The longer you've been the senior person at work or the head of a family, the fewer people may feel free to contradict you. A friend who will is worth a great deal. A friend who stands outside your daily routine can sometimes help in a particular way, because they aren't caught up in the situation you're describing.

To use this friendship, ask a direct question: "What am I not seeing about this?" Then keep Cicero's half of the bargain and take the answer without getting defensive. One caution: frankness and habitual criticism are different things. Cicero wanted advice free of harshness and reproof free of insult.

3. The friend who is glad when things go well for you

Sympathy in bad times is common. Gladness at your good news, with no trace of comparison, can be harder to find. In the Sigalovada Sutta, the Buddha's advice to a young man named Sigalaka, one of four good-hearted friends is the compassionate friend, who can be recognized by taking no pleasure in your misfortune and delighting in your good fortune.

Cicero noticed the same thing from the other side. He asks how you could enjoy good times so fully without someone whose joy in them equaled your own.

Modern research gives this some support. In a set of studies published in 2004, psychologist Shelly Gable and colleagues found that telling others about a good event was associated with more positive mood and well-being that day, beyond the effect of the event itself. The benefit was larger when the listener was seen as responding with active interest. The diary participants were undergraduates and the results are associations, so read this as suggestive.

Good news is easy to save. Keep a mental note of what you'd like to tell this friend: the finished project, the clear test result, the grandchild. And notice whether you're this friend to them.

4. The friend you could call at 3 a.m.

Epicurus has a saying that suits a friend you rarely see: "It is not so much our friends' help that helps us as the confidence of their help."

You may go years without needing this person. What you have in the meantime is the knowledge that if the hospital called or a marriage ended, someone would pick up. The Buddha's list includes this friend twice over: the helper, who is a refuge when you're afraid, and the enduring friend, who doesn't abandon you in misfortune.

You may meet only twice a year and still keep this confidence alive through calls, messages and following through when something matters. The question is whether both of you still feel able to reach out. Say it out loud once: "If anything ever happens, call me. I mean it." And when something small goes wrong, let them help.

Another saying in the collection, number 39, warns against treating friendship as a bargain for practical help, while also rejecting the idea that help has nothing to do with friendship. Needing more support during a difficult stretch doesn't make someone a bad friend. What matters is that the affection extends beyond what either person can provide.

5. The friend you don't have to perform for

Emerson, in his essay "Friendship," defines a friend as a person with whom he can be sincere, someone before whom he can "think aloud." Cicero puts it as a question: what is sweeter than having someone with whom you can discuss anything as if you were talking to yourself?

Most conversations involve a little management: you choose what to mention and keep the tone light. With this friend the editing stops, and you can say the thing you haven't worked out yet.

Since you only get a couple of these conversations a year, protect them. Choose a walk, a long drive or a kitchen table over a dinner for eight, and bring the question you've been carrying alone.

6. The friend who knows things you don't

Confucius's third beneficial friend is "the man of much observation," someone who has seen and learned a lot. This friend widens what you know and understand. The Buddha's list has a mentor too, but that is a different role: the mentor gives moral guidance, restraining you from wrongdoing and guiding you toward good actions. The friend in this section is Confucius's.

This friend might be a teacher or an elder, but just as often it's someone who works in a field you know nothing about, lives in a different country, reads different books or has made choices you didn't. It's easy for a circle to narrow to people who share your work and your opinions. This friend keeps your picture of the world from setting too hard.

A long catch-up after months apart suits this friendship well, because there's a lot to report. Ask what they've changed their mind about since you last met, what they're reading and what has surprised them. Then offer the same in return.

7. The friend from another generation

Cicero doesn't name this as a type of friend. The category is this article's reading of a passage near the end of his dialogue, where his speaker Laelius looks back over his friendships. As a young man he attached himself to older men. Now that he's old, he finds pleasure in the affection of the young. It's best, he says, to reach the finish with the people you started the race with. But human things are frail and fleeting, so you have to keep looking for people to love who will love you in return.

One practical reading: friends your own age reach the same stages when you do, and a circle made only of them can thin all at once. A friend twenty years older shows you one way of living a decade you haven't reached. A friend twenty years younger asks questions that make you explain what you believe, and sometimes revise it.

These friendships seldom come with a routine. There's no class reunion or shared workplace to bring you together, so they depend on a deliberate invitation. Before you part, put the next meeting in the calendar.

Before you start counting

You don't need seven people, since one friend can be several of these at once. And this isn't an argument for keeping everyone. Chopik's paper included a second study that followed 7,481 older adults, and in it only strain from friendships predicted more chronic illnesses over a six-year period. Some friendships do run their course.

Distance needn't end a friendship, but affection still needs some expression. If one name came to mind while you were reading, message that person today and propose a specific date.