Love Compatibility Calculator
A fun compatibility score based on your two names. Enter both names and see your match percentage!
How to use this tool
- Enter your name and partner's name in the fields above.
- Results update instantly as you type — or click Calculate.
- Read your compatibility score and the full breakdown beneath it.
A fun (not scientific!) compatibility score based on your names. Just for laughs!
⚠ This tool provides general estimates for education only and is not financial, tax or legal advice. Figures may not reflect your situation — verify with a qualified professional.
Formula
Combined string = lowercase(name1) + lowercase(name2)
Hash = 0; for each character: hash = (hash × 31 + charCode) & 0xFFFFFF
Score = 50 + (hash mod 51)
Result is a deterministic pseudo-random percentage between 50% and 100%.
How it works
This is a purely entertainment-based calculator. It computes a deterministic hash of the two names concatenated together using a simple polynomial rolling hash, then maps the result to a score between 50% and 100%. The same pair of names will always produce the same score.
There is no scientific basis for name-based compatibility; the result reflects only the mathematical properties of the characters in the names entered. Treat it as a fun conversation starter, not a relationship assessment tool.
Worked example
Worked example: Alice and Bob
- Concatenate lowercase names: 'alice' + 'bob' = 'alicebob'.
- Apply polynomial rolling hash (multiply accumulator by 31, add char code, mask to 24 bits) over each character of 'alicebob'.
- The hash evaluates to a value where (hash mod 51) = 2.
- Score = 50 + 2 = 52. Since 52 < 60, verdict = 'Keep exploring'.
Compatibility score: 52% — Verdict: Keep exploring.
Common mistakes to avoid
- Expecting the score to be random each time — the hash algorithm is deterministic, so the same two names always return the same percentage.
- Adding spaces or punctuation differently between attempts — 'Anna Smith' and 'AnnaSmith' produce different hashes and different scores.
- Taking the result literally — this is a fun novelty tool; the score has no scientific basis.
Key terms
- Polynomial rolling hash
- A technique that converts a string into a number by repeatedly multiplying an accumulator by a prime (here 31) and adding each character's numeric code.
- Deterministic
- Producing the same output every time for the same input — the calculator always gives Alice and Bob the same score.
- Modulo (mod)
- The remainder after integer division. `hash mod 51` produces a value from 0 to 50, which is added to 50 to set a floor of 50%.
- Bitwise mask (& 0xFFFFFF)
- Keeps the hash value within 24 bits (0 to 16,777,215) to prevent integer overflow during repeated multiplication.
- Pseudo-random
- Output that appears random but is fully determined by the input — here the name string — rather than by true randomness.
Frequently asked questions
- Is the love compatibility score real?
- No — it's purely for fun! The score is a deterministic calculation based on the letters in both names. It's not a scientific predictor of relationship success.