Skip to content
ENExplore Calculators

Love Calculator

A light-hearted compatibility score from two names — strictly for fun.

About Love Calculator

This is an entertainment calculator with absolutely no scientific or predictive validity. The 'compatibility score' is produced by a deterministic hash function (djb2) applied to the two names. A hash function maps any input to a fixed-range number in a way that appears random but is completely reproducible — the same two names will always produce the same score. This is why the result feels personal (it's unique to your names) while actually being meaningless (it could have been any other number). There is no algorithm, AI model, astrological chart, or psychological theory behind it. Please do not make relationship decisions based on this calculator.

Formula

djb2 hash

hash = 5381; for each character c: hash = hash × 33 XOR charCode(c)

h_n
Hash after processing n characters
c_n
Character code of the nth character
⊕
Bitwise XOR

Worked example

With the default values below, Love Calculator returns Compatibility Score of 81. Change any input above and every figure here is recalculated in your browser.

Inputs used

First Name
Alice
Second Name
Bob

Results

Compatibility Score0–100. Purely a hash of the two names. Completely meaningless as a compatibility predictor.
81
Reading
Off the charts! (In a hash-function sense only.)

Step by step

  1. 1Pair= "Alice" + "Bob"
  2. 2Normalise (lowercase, sort alphabetically)= "alice" + "bob"
  3. 3djb2 hash of combined key= 1104657185
  4. 4XOR with individual name hashes for spread= result XOR 253185475 XOR 193487480
  5. 5Score = (result mod 101)= 81 / 100This is a hash function output. It has no relationship to actual compatibility.

Assumptions and limits

  • The result is derived only from the 2 inputs listed above. Anything not among them is not part of the calculation.
  • In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
  • Figures are rounded for display to whole numbers, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
  • This calculator is for entertainment purposes only. The score is produced by a hash function applied to the names and has no predictive validity whatsoever. It cannot measure, predict or quantify romantic compatibility, attraction, or relationship success. Do not make relationship decisions based on this output.

How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.

This calculator is for entertainment purposes only. The score is produced by a hash function applied to the names and has no predictive validity whatsoever. It cannot measure, predict or quantify romantic compatibility, attraction, or relationship success. Do not make relationship decisions based on this output.

Frequently Asked Questions

Is this calculator scientifically accurate?

No — not at all. The score is generated by a hash function (djb2) applied to the letters in the two names. It has no relationship to personality, psychology, astrology, or any other theory of compatibility. It is purely for amusement.

Why do the same two names always give the same score?

Because the calculator uses a deterministic hash — a function that always maps the same input to the same output. This is intentional: it means the calculator behaves consistently and you can share a result. It does not mean the score is meaningful.

Can changing the order of names change the score?

No. We sort the two names alphabetically before hashing, so Alice+Bob and Bob+Alice always produce the same result. The score depends only on the letters, not who typed whose name first.

What actually predicts relationship compatibility?

Research in relationship psychology identifies shared values, communication quality, mutual respect, and emotional maturity as the most reliable predictors of long-term relationship satisfaction. None of these can be inferred from a name hash.

Love Calculator – Calculate Compatibility Score & Reading