Hash collision probability calculator

Birthday approximation for independent uniform hashes.

Your inputs

Use the units shown.

Approximate collision probability
2.710503e-8

Your calculation
How is this calculated?

Birthday approximation for independent uniform hashes. This is accidental collision probability, not an adversarial security analysis.

  • Approximate collision probability = -expm1(-Items × (Items-1) ÷ (2 × 2^Hash bits))

Try an example

Worked example

Approximate collision probability: 2.710503e-8

Inputs
  • Hash bits: 64
  • Items: 1000000

Compare inputs

Approximate collision probability: 1.355251e-8

Inputs
  • Hash bits: 65
  • Items: 1000000
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.