---
answer: direct
beat: system-design
source: 1 article · updated: August 14, 2026
---

How many hash functions and how large should the bit array be?

The optimal number of hash functions is ln(2) × (m/n), where m is array size and n is expected elements. For 1% false positives, you need roughly 9.6 bits per element; for 0.1%, roughly 14.4 bits. A 10 million element set with 1% FP rate needs only ~12 MB.

Answered in

Bloom Filters: The One-Way Membership Test

A probabilistic data structure: zero false negatives, tunable false positives. Check membership in RAM with bits instead of database queries.

Crashtech Editorial August 14, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.