Love Calculator — Free Online Compatibility Test
Enter two names to instantly calculate a fun love compatibility percentage score with visual heart indicators and personalized compatibility messages.
Enter both names above to reveal your love compatibility score. This tool is for entertainment purposes only and uses a name-based algorithm.
Compatibility Results
Enter both names to see your compatibility score
Love Score Reference Table
| Score Range | Level | Heart Color | Description |
|---|---|---|---|
| 90–100% | Excellent | Deep Red | A perfect match with incredible name harmony |
| 75–89% | Very Good | Rose | Great complementary energy between names |
| 60–74% | Good | Pink | Solid potential with good fundamentals |
| 40–59% | Average | Orange | Middle ground that could go either way |
| 20–39% | Below Average | Amber | Quite different name energies |
| 0–19% | Low | Gray | Opposites attract — differences make things interesting |
Related Calculators
Decision Maker
Make random decisions from a list of options with a virtual spinner.
Dice Roller
Roll virtual dice with customizable sides and modifiers for games and probability.
Generation Calculator
Find which generation you belong to based on your birth year.
Tip Calculator
Calculate tips instantly for restaurants, delivery, and services.
Random Number Generator
Generate random numbers within any range for games and experiments.
Age Calculator
Calculate exact age in years, months, and days between any two dates.
About this calculator
How the Love Calculator Algorithm Works
Combined String = lowercase(Name1 + Name2) with spaces removed Hash = bitwise shift and combine character codes sequentially Score = |Hash| mod 101 (produces 0 to 100) Algorithm Details
- String Combination: Both names are concatenated into a single string, converted to lowercase, and all whitespace is removed. This ensures that capitalization and spacing do not affect results, providing consistent output regardless of how names are typed.
- Hash Function: The combined string is processed through a character-by-character hash using bitwise operations. Each character's Unicode value is incorporated into a running hash value through left-shift and subtraction operations, producing a large integer that uniquely represents the name combination.
- Score Normalization: The absolute value of the hash is taken to ensure a positive number, then the modulo operation with 101 maps it to a score between 0 and 100 inclusive. This creates a uniform distribution across the full percentage range.
Step-by-Step Example
Suppose you enter "Emma" and "James" into the love calculator:
- Names are combined: "Emma" + "James" = "emmajames" (lowercase, spaces removed)
- Each character is hashed: e(101), m(109), m(109), a(97), j(106), a(97), m(109), e(101), s(115)
- The hash function processes each code through bitwise shifts, producing a large integer
- The absolute value of the hash is taken and divided by 101, keeping only the remainder
- The resulting score is displayed as the compatibility percentage
Because the algorithm is deterministic, entering "Emma" and "James" will always produce the same score. Entering "James" and "Emma" produces a different score because the character order changes, giving you two compatibility perspectives to enjoy.
Sources
- Hash Functions and Their Applications — Khan Academy Computing: khanacademy.org/computing/computer-science/cryptography
- The Science of Love — Greater Good Science Center, UC Berkeley: greatergood.berkeley.edu/topic/love
- The Gottman Institute — Research on Relationships: gottman.com/about/research
Disclaimer: This tool is for entertainment purposes only. Results are randomly generated or algorithmically derived and should not be used for serious decision-making.
Last updated: November 3, 2026