Bloom Filter Calculator

Size a Bloom filter: the number of bits and hash functions needed for n items at a target false-positive rate, and the rate you'll actually…

Results

Enter your details and click Calculate to see your results.
About This Calculator

m = −n·ln p / (ln 2)², k = (m/n)·ln 2, actual p = (1 − e^(−kn/m))ᵏ. A Bloom filter never gives false negatives.

Example

Example: 1 million items at 1% false positives need 9585059 bits (1198132.4 bytes) and 7 hash functions.

Assumptions

Ideal independent hash functions.

Frequently Asked Questions

Can you delete from a Bloom filter?

Not from a standard one — use a counting Bloom filter.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile