Skip to content

Bloom Filter Sizing Calculator

Enter the number of items you expect to store and a target false-positive rate to size a Bloom filter: the bit-array length, its size in KB or MB, the optimal number of hash functions, bits per item, and the false-positive rate the rounded design actually delivers.

Inputs

Filter Requirements

≥ 1
%
0 – 100 %

Results

Enter a value to see results.

Recommended Sizing

m = \dfrac{-n \ln p}{(\ln 2)^2} = \dfrac{-\left(1,000,000\right)\ln\left(1\right)}{(\ln 2)^2} = ?
k = \operatorname{round}\!\left(\dfrac{m}{n}\ln 2\right) = \operatorname{round}\!\left(\dfrac{ ? }{ 1,000,000 }\times \ln 2\right) = ?

Cost and Accuracy

r = \dfrac{m}{n} = \dfrac{ ? }{ 1,000,000 } = ?
p' = \left(1 - e^{-kn/m}\right)^{k} = ?\,\text{\%}

Embed this calculator

Preview

Paste this code into your page to show the calculator.

Share this calculation

Anyone who opens this link sees your values already filled in.

200+ calculators · 10 languages · 100% free

Was this calculator helpful?

No

How can we improve this calculator?