Love Calculator: Love Percentage and FLAMES Test
Type two names to get a love percentage and a FLAMES result. It is a game, so the answer is the same every time and in either order, and nothing you type leaves your browser.
Last reviewed
Romeo and Juliet
80%
Plenty of spark
- FLAMES result
- E: Enemies
- Letters left over
- 9
A strong score for a pair of names. Time to find out if the letters know best.
For fun only. Names cannot tell you whether two people suit each other. Nothing you type leaves your browser.
What this calculator is
This is a game. You type two names and it gives you a love percentage and a FLAMES result. The answer has no connection to how well two people will get on, because nothing about a name can tell you that. What the calculator does have is a fixed set of rules, so the answer is the same every time you ask, and it is the same whichever name you type first.
If you have been sent here by a friend, treat the result as a conversation starter. If you are anxious about a real relationship, the useful conversations are the ones you have with the other person.
The love percentage
The percentage is worked out in three steps.
- Tidy the names. Each name is changed to lower case, accents are removed, and anything that is not a letter, such as spaces, hyphens and digits, is dropped. So José, JOSE and jose are the same, and Mary Ann is the same as maryann.
- Put them in order. The two tidied names are placed in alphabetical order and joined with a bar, so “Ann and Ben” and “Ben and Ann” both become
ann|ben. - Turn the letters into a number. The joined text goes through a 32-bit FNV-1a hash, a standard way of turning text into a number that looks arbitrary but is always the same for the same text. The remainder when that number is divided by 71, plus 30, is the percentage.
That makes the percentage a whole number from 30 to 100. The floor of 30 is a choice, made so that nobody is told their name pair scores 4%. Every value from 30 to 100 is about equally likely.
Two worked examples
Ann and Ben. The text is ann|ben. The hash is 0x0E87C729, which is 243,779,369 in decimal. That number divided by 71 leaves a remainder of 17, and 30 + 17 = 47%. A score of 47 is in the “Room to grow” band.
Romeo and Juliet. The text is juliet|romeo, because j comes before r. The hash is 0x8E38D86C, which is 2,386,090,092. The remainder after dividing by 71 is 50, and 30 + 50 = 80%, in the “Plenty of spark” band.
You can check either by running FNV-1a yourself. The method starts with the value 0x811C9DC5, and for each byte of the text it combines the byte with the running value using exclusive-or, then multiplies by 0x01000193, keeping the lowest 32 bits. As a check on your own version, the hash of the single letter “a” should come out as 0xE40C292C and the hash of “foobar” as 0xBF9CF968.
The bands
| Score | What the page says |
|---|---|
| 90 to 100 | Written in the stars |
| 75 to 89 | Plenty of spark |
| 60 to 74 | A good match on paper |
| 45 to 59 | Room to grow |
| 30 to 44 | Opposites attract |
The wording is deliberately light. None of it is a judgement.
The FLAMES game
FLAMES is a game played with pen and paper. The letters stand for Friends, Love, Affection, Marriage, Enemies and Siblings. Here is how it works:
- Write the two names. Cross out each letter that appears in both, one for one, so that if one name has two n’s and the other has one, only one n is crossed out.
- Count the letters that are left, from both names together.
- Write out F, L, A, M, E, S. Count along the letters by the number from step 2, starting at F, and cross out the letter you land on.
- Carry on counting from the next letter that has not been crossed out, going round the ring, and cross out the letter you land on each time.
- When one letter is left, that is your result.
The calculator does the counting for you. Crossing out every n-th item in a ring until one is left is a well-known puzzle in its own right, the Josephus problem, and the survivor can be found without crossing anything out: start with position 0 for a ring of one, then for each larger ring of size m, the survivor is (the previous survivor + n) mod m. For six letters that takes five short steps.
Worked example: Ann and Ben
- The letters of Ann are a, n, n. The letters of Ben are b, e, n.
- They share one n, which is crossed out from each name.
- What is left: a, n from Ann, and b, e from Ben. That is 4 letters.
- Count 4 along F L A M E S, starting at F: F is 1, L is 2, A is 3, M is 4. M goes.
- Carry on from E: E is 1, S is 2, F is 3, L is 4. L goes.
- From A: A is 1, E is 2, S is 3, F is 4. F goes.
- From A: A is 1, E is 2, S is 3, A is 4. A goes.
- From E: E is 1, S is 2, E is 3, S is 4. S goes.
E is left, so the result is Enemies. The percentage for Ann and Ben was 47%, so this pair has a middling score and a result that sounds worse than it is. The two results are worked out separately and do not have to agree.
Worked example: Romeo and Juliet
Romeo and Juliet share one letter, e. Four letters are left in Romeo (r, o, m, o) and five in Juliet (j, u, l, i, t), which makes 9. Counting 9 around FLAMES gives E again: Enemies. Their families would have agreed.
When the names share every letter
If the two names are made of exactly the same letters, such as Sam and Mas, nothing is left to count. The calculator gives Siblings in that case, because there is no count to work with and a fixed answer is better than an error.
Questions people ask about the result
Why is the percentage never below 30? It is a design choice. A game that tells half its players they are a near-zero match is not much fun, and a number from 30 up is still wide enough to feel different from one name pair to the next.
Can I get 100%? Yes, about one pair in 71 does. It is no better a sign than any other score.
Why does FLAMES sometimes disagree with the percentage? They are two separate games on the same letters. The percentage comes from a hash of the whole text. FLAMES comes only from how many letters the names do not share.
Does it matter if I use a nickname? Yes. A different spelling is a different set of letters, so you will get a different answer. Try your full names, then your nicknames, and see which pair you like better.
Privacy
The calculation happens in your browser and nothing is sent to a server. The page keeps the names in its address only when you press the copy-link button, so that a friend who opens the link sees the same two names. If you would rather the names were not in a link, do not share it.
How it is calculated
Each name is normalised to lower-case letters. The two names are sorted, joined with a bar and hashed with 32-bit FNV-1a, and the percentage is 30 plus the hash modulo 71. For FLAMES, letters common to both names are removed one for one, the remaining letters are counted, and the survivor of eliminating every n-th letter of FLAMES is found with the Josephus recursion J(1) = 0 and J(m) = (J(m − 1) + n) mod m for m up to 6. A count of zero gives Siblings.
For other ways to work with names and dates, try the age calculator, the days between dates calculator or the day counter, which counts the days to or since an event. If you are curious which generation each person belongs to, there is a generation calculator. To split a restaurant bill after a date, use the tip calculator.
Frequently asked questions
Is the love calculator accurate?
No, and it cannot be. Two names say nothing about whether two people suit each other. The percentage is a repeatable number made from the letters, and FLAMES is a playground game. Use it for a laugh.
Why do I get the same answer every time?
Because there is no randomness in it. The names are tidied, put in alphabetical order and turned into a number by a fixed rule, so the same two names always give the same result, whichever order you type them in.
What does FLAMES stand for?
Friends, Love, Affection, Marriage, Enemies and Siblings. You cross out the letters the two names share, count what is left, and use that count to cross out the letters of FLAMES until one remains.
Do capital letters, spaces and accents matter?
No. Names are changed to lower case, accents are removed and anything that is not a letter is ignored, so José and jose, or Mary Ann and maryann, give the same answer.
What if the two names have every letter in common?
Then no letters are left to count, and the calculator gives Siblings. It is the one case the game cannot count, so it has a fixed answer.
Are the names I type stored or sent anywhere?
No. The sum is done in your browser. If you press the copy-link button the names go into the address of the link you copy, so share it only if you are happy for them to be seen.
Related calculators
- Age CalculatorEnter a date of birth.
- Days Between Dates CalculatorPick a start date and an end date.
- Day CounterPick a date and see how many days away it is from today, in days, weeks, months and weekdays.
- Generation CalculatorEnter your year of birth.
- Percentage CalculatorPick the question you are actually asking.
- Tip CalculatorEnter the bill and how many of you there are.
- Dice RollerChoose how many dice, how many sides and any modifier, then roll.
- Golf Handicap CalculatorEnter your recent adjusted gross scores with the Course Rating, Slope Rating and PCC for each round.