Love Calculator
Type two names and get a playful compatibility percentage — just for fun, no science here. The same two names always land on the same score, since it’s a repeatable formula rather than a random guess.
What this actually does
This is a lighthearted novelty, not a relationship test — there is no dataset, survey, or study behind it. Under the hood it treats your two names as plain text, runs them through a simple hashing formula that turns letters into a number, and maps that number onto a 0–100% scale. It’s the same basic idea as a fortune cookie: fun to read, not meant to be taken seriously.
How it’s calculated
Both names are lowercased and trimmed of extra spaces, then sorted alphabetically and joined so that name order never changes the result. That combined string runs through a classic string-hashing formula (a variant of the djb2 algorithm: starting from 5381, each character multiplies the running total by 33 and XORs in the character code), producing one large number. Taking that number modulo 101 gives an integer from 0 to 100 — the displayed percentage.
This is for fun only — no science here. It has no connection to compatibility, personality, or any real predictor of a relationship.
Worked example
Romeo & Juliet score 15% with this formula — a reminder that the number is just arithmetic on letters, not literary judgment. Typing the same two names in the other order, Juliet & Romeo, gives the identical 15%, since the formula sorts the names before hashing. Try your own names above; the same pair will always land on the same percentage, today or a year from now.
Common mistakes
- Taking the score seriously — it’s a text-hash novelty, not a psychological or scientific measure of anything.
- Expecting a nickname and a full name to match — “Liz” and “Elizabeth” are different text and will score differently.
- Assuming the order you type the names in matters — it never does, since they’re sorted before scoring.
- Reading too much into a low score — it says nothing about two real people, only about two strings of letters.
Where it is used
- Icebreakers, party games, and lighthearted group chat fun.
- Testing sibling names, pet names, or best-friend pairs for laughs, not just couples.
- A quick, harmless bit of novelty on a slow afternoon.
Frequently asked questions
Is this based on real science?
No — this is just for fun, with no science here. The score comes from turning the two names into a number with a simple text hash, not from any psychological, astrological, or relationship research. Nobody has found a formula that predicts compatibility from names, and we’re not claiming to be the first.
Why do I get the same score every time for the same two names?
The calculator uses a deterministic hash — a repeatable formula that turns text into a number — so the exact same pair of names always lands on the exact same score. It’s not randomized per visit; typing “Alex” and “Sam” today gives the same result as typing them again next year.
Does the order I type the names in matter?
No. The two names are sorted before scoring, so “Alex and Sam” and “Sam and Alex” always produce the identical percentage — compatibility here doesn’t have a direction.
Does capitalization or extra spacing change the score?
No. Names are lowercased and extra spaces are trimmed before scoring, so “Emma”, “EMMA”, and “ emma ” all hash identically. Only the letters and spacing within the name itself affect the result.
Can I use nicknames or full names?
Either works, but they’ll score differently from each other since they’re technically different text — “Jonathan” and “Jon” will not match. Pick whichever version of a name you want to test; there’s no requirement to use a legal or full name.