Skip to content
About
Main content
Model

Bloom filter false positives

At the optimum exactly half the bits are set: the maximum-entropy state of the array.

Bits
bits in the filter
Keys
keys inserted
Hash functions
hash functions per key

Trade-off: Exactness vs. approximation

How it behaves

One input on the horizontal axis, the others held fixed.

Data table
False-positive rate by bits per key (optimal k)
Bits per key m/nFalse-positive rate
238.3%
2.2733.5%
2.5529.4%
2.8325.7%
3.122.6%
3.3819.8%
3.6517.3%
3.9215.2%
4.213.3%
4.4711.6%
4.7510.2%
5.038.94%
5.37.84%
5.586.87%
5.856.02%
6.135.27%
6.44.62%
6.674.05%
6.953.55%
7.223.11%
7.52.72%
7.782.39%
8.052.09%
8.321.83%
8.61.61%
8.881.41%
9.151.23%
9.431.08%
9.70.946%
9.970.829%
10.30.727%
10.50.637%
10.80.558%
11.10.489%
11.30.428%
11.60.375%
11.90.329%
12.20.288%
12.40.252%
12.70.221%
130.194%
13.30.17%
13.60.149%
13.80.13%
14.10.114%
14.40.1%
14.70.088%
14.90.077%
15.20.067%
15.50.059%
15.80.052%
160.045%
16.30.04%
16.60.035%
16.90.031%
17.10.027%
17.40.023%
17.70.021%
17.90.018%
18.20.016%
18.50.014%
18.80.012%
19.10.011%
19.30.009%
19.60.008%
19.90.007%
20.10.006%
20.40.005%
20.70.005%
210.004%
21.30.004%
21.50.003%
21.80.003%
22.10.002%
22.40.002%
22.60.002%
22.90.002%
23.20.001%
23.40.001%
23.70.001%
240.001%

Worked examples, recomputed

Every number the mechanisms quote for this relationship is recomputed from it, so none of them disagrees with it.

Where it appears

Each mechanism states it in its own names. The general symbol each name stands for is shown with it.