Bloom Filter Calculator

Calculate the required bloom filter size and optimal number of hashes from the expected number of items in the collection and acceptable false-positive rate.

You can also see the breakdown of how the bloom filter size and optimal number of hashes are calculated.

All processing happens on the client-side, locally in your browser. No data is uploaded.

Number of Items (n)Expected number of items in the collection (n)
3,000,000
False Positive Rate (f)Acceptable false-positive rate (fpr). 0.01 = 1%
0.01
Optimal Size (m)Optimal size (number of elements in the bit array)
28755176 bits (3.43 MB)
Optimal Hash Functions (k)Optimal number of hash functions
7

Calculations

  1. optimalSize =
  1. optimalHashFunctions =

History

  • 2019-02-16Calculate Number of Items and False Positive Rate
  • 2018-09-16Calculation formula breakdown
  • 2018-04-25Tool Launched

Background

Bloom Filter is a space-efficient probabilistic data structure which is used to test whether an element is a member of a set or not. We may get false positive matches, but false negatives are not.