Just for fun

Love Calculator

Type two names for your love percentage. The same names always get the same score, worked out on your device.

Order doesn't matter · nothing is uploaded

How the love calculator works

Like every love calculator, this one is a game: two names can't tell you whether two people belong together. Unlike most, it isn't random and its recipe isn't secret. It turns the pair of names into a number with a published hash function, so the same two names give the same love percentage on every device, in either order, today and next year. Here is the whole recipe:

  1. Tidy each name. Accents are removed, everything goes lower case, and only letters and digits are kept, so “José-María” and “jose maria” are the same name.
  2. Put the names in order. The two names are sorted alphabetically and joined with a plus sign, which is why “Alex and Sam” and “Sam and Alex” score the same.
  3. Hash them. The joined text goes through FNV-1a, a fast 32-bit hash function named after its designers Glenn Fowler, Landon Curt Noll and Kiem-Phong Vo. It mixes the letters so thoroughly that changing a single letter gives a completely different number.
  4. Keep a number from 0 to 100. The hash is divided by 101 and the remainder is the love percentage. Every score from 0 to 100 is about equally likely, so the average is 50.

Worked example: Romeo and Juliet

The tidied names are romeo and juliet. In alphabetical order they make juliet+romeo, 12 bytes of text. FNV-1a turns those bytes into 0x0A612223, which is 174,137,891 in decimal. Divided by 101 that leaves 54, so Shakespeare's most famous couple get a love score of 54%: “could go either way”, which, for anyone who knows the ending, is generous.

For the curious, this is the whole calculation in JavaScript, the language the calculator runs in. Paste it into your browser's console and it gives the same scores as the page:

function loveScore(nameA, nameB) {
  const tidy = (s) => s.normalize("NFKD").replace(/[\u0300-\u036f]/g, "")
    .toLowerCase().replace(/[^\p{L}\p{M}\p{N}]/gu, "");
  const [a, b] = [tidy(nameA), tidy(nameB)].sort();
  let h = 2166136261;                       // FNV-1a offset basis
  for (const byte of new TextEncoder().encode(a + "+" + b)) {
    h = Math.imul(h ^ byte, 16777619) >>> 0; // xor, then multiply by the FNV prime
  }
  return h % 101;                           // 0 to 100
}

That is also why it makes a good classroom example. A hash function is how computers file and find things quickly, and the score shows two of its properties you can test by hand: the same input always gives the same output, and similar inputs give unrelated outputs. Try “Sam” against “Samantha”.

What your love percentage means

Each score band has its own write-ups, and the hash also picks which write-up a pair gets, so your result reads the same every time. Since every score is equally likely, about one pair in four lands at 75 or more, and roughly one pair in 101 gets a perfect 100.

ScoreResultIn a few words
100% A perfect 100The one score in 101 every couple hopes for.
90–99% Off the chartsNearly perfect: the last few points are there to keep you humble.
75–89% Sparks are flyingThe kind of score that makes friends say “I knew it”.
60–74% Real potentialA warm, steady glow rather than fireworks.
45–59% Could go either wayRight in the middle, the calculator's most honest answer.
30–44% Friends firstA great friendship, with romance not ruled out.
15–29% Opposites attract?The numbers are unconvinced. They've never met you.
0–14% The numbers say noBasically a dare. The algorithm has never been on a date.

How famous couples score

Literature's great love stories, run through the same calculator. Tap a couple to see the full result and the math. The numbers know nothing about plot, which is part of the fun.

CoupleLove scoreTRUE LOVEFLAMES
Romeo and JulietShakespeare54%55%Enemies
Elizabeth and DarcyPride and Prejudice36%43%Affection
Jane and RochesterJane Eyre95%64%Marriage
Catherine and HeathcliffWuthering Heights46%64%Enemies
Tristan and IsoldeMedieval legend66%43%Enemies
Orpheus and EurydiceGreek myth55%74%Enemies
Odysseus and PenelopeThe Odyssey32%57%Affection
Lancelot and GuinevereArthurian legend85%78%Affection

The classic name games: TRUE LOVE and FLAMES

Long before websites, people worked out love percentages on the back of an exercise book. The calculator plays the two best-known games alongside its own score, using the rules below. Rules vary between schools and countries, so yours may differ.

TRUE LOVE

Write both names together. Count every T, R, U and E for the TRUE total, then every L, O, V and E for the LOVE total (the E counts in both). Put the two totals side by side and read them as a percentage. If a total goes above 9, add its digits together, so 12 becomes 3. Romeo and Juliet have T 1, R 1, U 1 and E 2, a TRUE total of 5, and L 1, O 2, V 0 and E 2, a LOVE total of 5: 55%.

FLAMES

FLAMES stands for Friends, Love, Affection, Marriage, Enemies and Siblings. Cross out every letter the two names share, one from each name per match, and count the letters left. Then count round the word FLAMES by that number and cross out the letter you land on, carry on counting from the next letter, and repeat until one letter is left. For Romeo and Juliet, the shared letter “e” cancels out, leaving 9 letters. Counting 9 round FLAMES crosses out A, F, L, S and M in turn, so the last letter standing is E: Enemies. For the Montagues and Capulets, that is hard to argue with.

If every letter cancels out (the names are anagrams of each other), there is nothing to count, and the calculator says so instead of guessing.

Do names really affect who we fall for?

There is a real, if small, psychology of names. In 1985 the Belgian psychologist Jozef Nuttin reported the name-letter effect: people like the letters in their own name more than other letters, without realizing why. Later researchers asked whether that liking spills into big decisions. A 2004 paper by John Jones, Brett Pelham and colleagues, titled “How do I love thee? Let me count the Js”, found that people in marriage records married partners with similar first or last names more often than chance would predict.

Then came the doubts. In 2011 Uri Simonsohn reanalyzed this kind of evidence for marriage, jobs and where people move, argued that other factors and reverse causality explained the patterns, and concluded that the existing evidence “appears to be spurious”. So the honest summary is: we may have a slight soft spot for familiar-looking letters, and that is all a name can tell you. Nothing in this research supports turning two names into a compatibility score; that part is pure fun.

What actually predicts a happy relationship

If names don't matter, what does? The largest study of the question, published in PNAS in 2020 by Samantha Joel, Paul Eastwick and dozens of co-authors, pooled 43 long-term studies covering 11,196 couples and used machine learning to find which self-reported measures best predicted how satisfied and committed people were. The strongest were about the relationship itself: feeling that your partner is committed, feeling appreciated, sexual satisfaction, believing your partner is satisfied, and low conflict. Individual traits mattered much less, and whether a couple grew happier or unhappier over time was largely unpredictable from any of the questionnaires.

In other words, a good relationship is mostly built, not found. If you'd like to learn something useful about how you love, try the love language quiz (and compare with your partner), the attachment style test, or the communication style test. To see how you handle disagreements, which the research above says matter a lot, take the conflict style test.

Fun ways to use the love calculator

  • The crush shortlist. Switch to Compare names, add everyone you're wondering about, and let the calculator rank them. It won't tell anyone.
  • Couples' night. Try first names, full names and nicknames: every spelling is a different calculation, so one of them is bound to score well.
  • Parties and group chats. Share a result and challenge friends to beat it. Because nothing is random, nobody can reroll their way to 100%.
  • Fictional couples. Romeo and Juliet get 54%. Check your favorite pairs from books, films and series and argue about whether the calculator got it right.
  • A lesson in hashing and probability. Teachers can use it to show what a hash function does and why each score has a 1 in 101 chance.

Star signs more your thing? The zodiac compatibility calculator scores love, friendship and work matches for any two signs, and the zodiac sign calculator finds your sign from your birthday. Both are for fun too.

Love calculator FAQ

Is the love calculator accurate?
No, and no love calculator is. A score made from two names can't know anything about two people, so treat it as a game. Ours is at least honest about it: the method is published on this page, every score from 0 to 100 is equally likely, and even Romeo and Juliet only get 54%. What predicts how a real relationship goes is how two people treat each other, not their names.
How does the love calculator work?
It turns the two names into a number with a published recipe. Each name is tidied up (lower case, no accents, spaces or punctuation), the two are put in alphabetical order and joined with a plus sign, and that text is run through FNV-1a, a well-known 32-bit hash function. The hash divided by 101 leaves a remainder from 0 to 100, and that remainder is your love percentage. Open “Show the math” under any result to see every step for your names.
Why do the same names always get the same score?
Because nothing random is involved. The hash is a fixed calculation, so the same two names give the same score on every phone and computer, today and next year. Many love calculators online roll a random number, so asking twice gives two answers; this one never changes its mind.
Does the order of the names matter?
No. The two names are sorted alphabetically before they are hashed, so “Alex and Sam” and “Sam and Alex” are the same calculation and get the same score. Capital letters, accents, spaces and punctuation are ignored too, so “José-María” and “jose maria” match.
What is a good love percentage?
On this calculator, 75 or more counts as “Sparks are flying”, 90 or more is “Off the charts” and 100 is a perfect match. Since every score is equally likely, about a quarter of all pairs score 75 or more and the average is 50. A low score means nothing either: it is arithmetic on letters.
Is it possible to get 100%?
Yes. The score is the remainder after dividing by 101, so there are 101 possible scores from 0 to 100, and roughly one pair of names in 101 gets exactly 100%. The same goes for 0%, which the calculator reports with sympathy.
How do you calculate love percentage by name on paper?
The classic way is the TRUE LOVE test. Write both names together, count how many times the letters T, R, U and E appear, then count L, O, V and E (the E counts in both words). Put the two totals side by side as a percentage. Romeo and Juliet have 5 TRUE letters and 5 LOVE letters, which makes 55%. When a total goes above 9, add its digits together (12 becomes 3). The calculator shows this result under your main score.
What does FLAMES stand for?
Friends, Love, Affection, Marriage, Enemies and Siblings. To play, cross out the letters the two names share, count the letters left, then count round the word FLAMES by that number and cross out the letter you land on. Keep counting from the next letter until only one is left: that letter is your answer. Rules vary between schools, so the calculator spells out the version it uses.
Should I use full names or nicknames?
Whichever you like, but pick one and stick with it, because different spellings are different names to the hash: “Sam” and “Samantha” give different scores. Many people try first names, then full names, then nicknames, just for fun. The calculator ignores case, accents, spaces and punctuation, so those never change the result.
Can I compare several names at once?
Yes. Switch to “Compare names”, type your name and up to 20 other names (one per line or separated by commas), and the calculator ranks them from best match to worst. Each score is exactly the one the pair would get on its own.
Are the names I type stored or shared?
Nothing is uploaded: the score is worked out in your browser. The names are not saved; this browser only remembers your last score (without names) so the test cards can mark it as taken, plus which mode you used. A share link puts the names after a # in the address, a part browsers never send to a website's server, and it is only created when you tap Share.
What actually predicts a happy relationship?
Not names or star signs. A 2020 study that pooled 43 long-term studies of 11,196 couples found that the strongest predictors of how satisfied people were with their relationship were about the relationship itself: feeling that a partner is committed, feeling appreciated, sexual satisfaction, believing the partner is happy, and low conflict. Personality traits mattered much less, and changes in happiness over time were hard to predict at all.
Advertisement

More tests to try

Free, instant and private — no sign-up, and your answers never leave your device.

Other tests to try