Love Calculator
A pure-entertainment 'compatibility' score built from two names. Not scientific — a fun icebreaker, not relationship advice.
Last updated: September 2026
Compare with similar
About this calculator
The love calculator is a bit of internet folk-fun that goes back to the mid-1990s. It takes two names, combines their character codes and lengths, and produces a number between 0 and 99 that gets labeled as a 'compatibility percentage'. There is no science in it — the same two names always produce the same number, and the number tells you nothing beyond how a small arithmetic trick happens to combine those specific letters.
This calculator uses a compact deterministic formula: (len(a) × len(b) + firstChar(a) + firstChar(b)) mod 100. Change a letter and the number changes. Swap the names and the number is the same, because the formula is symmetric in the two inputs.
The right way to read the result is as a conversation starter, a party-trick output, or a mild bit of amusement. Real compatibility depends on shared values, communication, and time together — not on letter arithmetic. Use the day-counter at /en/calculators/time-zones/day-counter/ to see how long you have actually spent together; that number is a lot more informative.
How to use
Example — Alex and Sam. Enter name1 = 'Alex', name2 = 'Sam'. Length product = 4 × 3 = 12. First characters: 'A' is code 65, 'S' is code 83. Sum = 12 + 65 + 83 = 160. Mod 100 = 60. Result: 60% compatibility. Not bad — grab coffee. Example — same names swapped. name1 = 'Sam', name2 = 'Alex'. Same formula, same number: 60%. That is the symmetry check confirming that the calculator does not care which name goes first — as any reasonable compatibility score should not.
Frequently asked questions
Is this real?
No. It is entertainment — a deterministic function of two strings that happens to produce a plausible-looking percentage. Every time you enter the same two names you will get the same number, which is the opposite of what a real compatibility signal should do (real compatibility varies with context, mood, time, and circumstance).
Why do 'Alex + Sam' and 'Sam + Alex' give the same number?
The formula is symmetric: it uses only length products and first-character sums, and both operations are commutative. Any real relationship compatibility should also be symmetric — 'A likes B' should imply 'B likes A' in a matched partnership — so the symmetry is a small nod to a real property.
Can I use this for serious decisions?
No. Please, no. Use it as an icebreaker or a laugh. Serious decisions about relationships come from communication, shared values, and time spent together, not from a JavaScript expression. If you are looking for real tools to plan a relationship's practical side, try the joint-budgeting-style calculators under Finance & Money.
What if my name has non-ASCII characters?
The formula uses the JavaScript charCodeAt of the first character, which returns the UTF-16 code unit — that is 65 for 'A', 224 for 'à', 128512 for '😀'. Names with accented characters will simply produce different numbers than the ASCII versions. That is fine, since the whole thing is arbitrary anyway.