What a friendship calculator measures
How the friendship score is made from two names, why the same pair always gets the same result, and what actually keeps friendships strong.
Last reviewed · 725 words
In short
- The score is made by hashing the two names six times, once for each quality such as trust and loyalty, and averaging the six results.
- The names are reduced to their letters and sorted first, so the order, spaces and capitals do not change the score.
- Each quality lands between 55 and 95, so the game never tells anyone their friendship scores close to zero.
- It is a game for sharing: the letters in a name say nothing about a friendship.
- Research on friendship points to time spent together, support and trust, which are worth more than any score.
Friendship calculators are a staple of school breaks and group chats: type your name and your best friend's, get a percentage, screenshot it, argue about it. This one is built to be fun in exactly that way while being honest about how it works. This page explains the arithmetic, why the result never changes for the same pair, and what science actually says makes a friendship last.
How to use it
Type your name and your friend's name. The score appears straight away, with six bars for trust, loyalty, fun together, support in hard times, shared interests and honesty. The strongest and the weakest of the six are named underneath. The shuffle button fills in other names, so you can try your whole group.
Names in English letters and in Devanagari both work. Spaces, punctuation and capital letters are ignored.
How the score is calculated
The calculator does three things.
1. Tidy the names. Each name is reduced to its letters and made lower case, so "Riya Sharma", "riya sharma" and "RIYA SHARMA" are the same. The two names are then sorted, so "Riya + Aditi" and "Aditi + Riya" become the same pair.
2. Hash six times. A hash function turns text into a number in a way that looks random but is completely repeatable: the same text always gives the same number, and a one-letter change gives a very different one. The pair of names is hashed once for each of the six qualities, with the quality's name mixed in, so the six bars move independently instead of all rising and falling together. Each hash is mapped to a score between 55 and 95.
3. Average. The friendship score is the average of the six bars, so the headline number always agrees with the breakdown beneath it.
That is the whole algorithm. Nothing about you, your messages or your history is used, because the calculator knows nothing except two strings of letters.
Why the same names always give the same score
Because nothing in it is random. A calculator that gave a different number each time would just be a dice roll, and it would be impossible to share: your friend would type the same names and get something else. With a hash, the result is fixed for a pair of names, so the screenshot you send is the score your friend will see too.
It also means the score cannot be improved by trying again. The only way to change it is to change the spelling, for example by using a nickname, which is half the fun.
Why no score is low
The bars are kept between 55 and 95. A game that could tell a twelve-year-old that their friendship scores 4 out of 100 for trust is not a fun game, even if everyone knows it is random, so the calculator does not do it. The lowest overall score you will see is in the high fifties.
The verdicts
| Score | Verdict |
|---|---|
| 85 and above | Best friends forever, according to the alphabet |
| 70 to 84 | A solid friendship, as far as spelling can tell |
| 55 to 69 | Good friends with room to grow |
| below 55 | The letters are unsure, which says nothing about the two of you |
What actually makes friendships last
Researchers have studied friendship for decades, and their findings have nothing to do with names. A few of the clearest:
- Time together builds friendship. A study by Jeffrey Hall at the University of Kansas estimated that it takes around 50 hours together to go from acquaintance to casual friend, and around 200 hours to become close friends. Shared time, not shared letters, is what counts.
- Support matters more than fun. People rate friends who show up in hard times, listen and keep confidences as closer than friends who are only fun to be around, which is why trust and support are among the six bars.
- Friendship is good for health. A large review of 148 studies, published in PLOS Medicine in 2010, found that people with stronger social relationships had a 50 per cent higher likelihood of survival over the study periods than those with weaker ones. Few things are as good for you as good friends.
- Effort keeps it going. Friendships fade without contact. A message, a call or a plan made is worth more than any score.
Sources
- Wikipedia — Hash function, how text is turned into a repeatable number
- Jeffrey A. Hall, "How many hours does it take to make a friend?", Journal of Social and Personal Relationships (2019)
- Julianne Holt-Lunstad, Timothy B. Smith and J. Bradley Layton, "Social Relationships and Mortality Risk: A Meta-analytic Review", PLOS Medicine (2010)