Love Calculator
Type two names and get an entirely unserious love percentage. The same pair always gets the same result, so you can swap the names without restarting the romance. This is a letter-based joke, not a compatibility test.
Loading the calculator. It runs in your browser, so JavaScript needs to be on.
How to use the Love Calculator
- Enter a First name or nickname and a Second name or nickname. Initials work too; the default pair is A and B.
- Read the Just-for-fun name score, which updates as you type. Both names are required.
- Try a nickname or a different spelling if you want a different version of the joke. Each name may contain up to 100 characters.
- Select Reset names to return to A and B. Names are processed in your browser and are not sent to a matching service.
The formula
First, trim the names, convert letters to lowercase, and replace repeated whitespace with one space. Sort the two normalized names and join them with a vertical bar. Starting with h = 0, process each UTF-16 character code c using h = (31 x h + c) modulo 101. The final whole number h is displayed as a percentage from 0% to 100%.
Worked example
For A and B, the normalized text is a|b. The character codes are 97, 124, and 98. The running values are 97, then (31 x 97 + 124) modulo 101 = 0, then 98. The displayed result is 98%. B and A also produce 98%, while A and A produce 97%.
What a love percentage actually means here
It means a short arithmetic operation ended at that number. A result of 98% does not mean a 98% chance of a lasting relationship, and a low result is not a warning about a real couple. The formula knows nothing about shared values, attraction, communication, or whether either person likes pineapple on pizza.
Why capitalization and name order do not matter
ALEX and alex normalize to the same text. Spaces at either end are removed, and multiple spaces inside a name become one. Sorting the pair before scoring makes Alex plus Sam identical to Sam plus Alex. Punctuation, accents, and genuinely different spellings still affect the character codes, so Alex and Alexander can produce different percentages.
Same result today and tomorrow
This calculator has no random draw, birthday input, or daily adjustment. The same normalized pair always produces the same percentage. Different pairs can share a score because there are only 101 possible results. Matching percentages therefore do not imply that two pairs have anything in common beyond a number in this game.
Keep the joke comfortable
Nicknames or initials are enough to play. You do not need surnames, email addresses, birthdays, or an account. If you share a result, present it as a joke and respect the other person's privacy. The fun comes from comparing the silly numbers, not treating them as evidence about someone else's feelings.
Love Calculator questions
Is the love calculator accurate?
It is accurate at repeating its name formula, but it does not measure love or compatibility. The percentage is an entertainment result only.
Why do I get the same score when I swap names?
The calculator sorts the two names before scoring them. Their original order cannot change the result.
Can I use a nickname instead of a full name?
Yes. Names, nicknames, and initials all work, as long as both fields contain something. Changing the spelling can change the score.
Does 100% mean we are soulmates?
No. It means the formula returned 100, which is one of its 101 possible whole-number results. Real relationships are not evaluated by this tool.
Related calculators
- Personality Type TestAnswer 12 everyday preference questions to explore your personality type, see four trait...
- IQ TestTry 20 pattern, number, and logic questions, then see your score and every answer...
- Real Age CalculatorEnter your age, sleep, exercise, diet, stress, and smoking status for a playful lifestyle...
- Days Between DatesEnter a start and end date to count calendar days and full weeks. Include both dates when...
- Percentage CalculatorEnter a percent, part, whole or pair of values to find percentages and percent change....