Cuckoo filter explained in plain terms means understanding the membership test that does everything a Bloom filter does, plus the one thing it cannot: deleting items. The central question is why engineers needed a new filter when Bloom filters already worked, and the answer is that real systems remove things, so a filter that can delete without rebuilding itself saves time and memory at once.
A cuckoo filter is a compact data structure from a 2014 paper, Cuckoo Filter: Practically Better Than Bloom, by Bin Fan, David G. Andersen, Michael Kaminsky and Michael D. Mitzenmacher. It stores only short fingerprints of items in a cuckoo hash table, and it answers the same question as a Bloom filter, is this item probably in the set, while also supporting removal.
This article sets out five facts about cuckoo filters, what they are, how they work, and where they run in the real world.
Key takeaways
- A cuckoo filter stores fingerprints, not whole items.
- It can add and delete items dynamically.
- It stays fast even when 95 percent full.
- It beats Bloom filters on space below 3 percent error.
- It came from a 2014 paper by Fan and colleagues.
What a cuckoo filter is
A cuckoo filter is a membership structure that turns each item into a short fingerprint and stores it in a cuckoo hash table, and that fingerprinting is what makes it unusual among filters. Each item is reduced to a few bits, which means the structure stays small even for millions of items, and because only the fingerprint is stored, the original item never needs to be kept.
Its signature feature is deletion. Most membership filters can only add, but a cuckoo filter removes an item by deleting its fingerprint, which means a set can shrink as well as grow, and because removal is a normal operation, the filter fits systems where membership changes all the time.
The design was a reaction to the Bloom filter’s limits. Bloom filters were fast and small but could never delete, so Fan and his colleagues asked whether a cuckoo hash table could carry fingerprints instead, because a filter that cannot forget is a filter that must be rebuilt, and that practicality is what made the cuckoo filter worth building.
It became one of the best-known filters in the world, and it is named in every discussion of the field. The paper appeared at CoNEXT 2014 in Sydney, from December 2 to 5, with authors from Carnegie Mellon, Intel Labs and Harvard, it showed higher lookup performance than Bloom even at 95 percent full, and it is still the first example engineers meet when they learn that a filter can delete, which means the design survives as a tool even though it is over a decade old.
Our guide to hashing explains the wider family the cuckoo filter belongs to, and our guide to cuckoo hashing explains the table design it is built from.
How a cuckoo filter works
Everything starts with the fingerprint, which sets the item’s compact form. A cuckoo filter hashes an item and keeps only a short fingerprint of a few bits, which means the filter depends on fingerprints alone, and because the fingerprint is small, thousands of entries fit in a single cache line.
Each step begins with two candidate buckets, which is where the fingerprint may live. A cuckoo filter computes two bucket positions from the item’s hash, which means every fingerprint has exactly two homes, and because the second is derived from the first plus the fingerprint, the filter can find it again from the fingerprint alone.
The cuckoo displacement is what makes the design work as a whole. When both buckets are full, the filter evicts an existing fingerprint to its own alternate bucket, which means space is made by shuffling, and because the chain of moves is short, insertion stays fast even when the table is nearly full.
Lookup spreads the effect further. A cuckoo filter checks both candidate buckets for the fingerprint, which means a member is found in at most two probes, and because the check is just a fingerprint comparison, the answer comes back quickly.
Deletion is what turns the structure into a living set. A cuckoo filter removes the fingerprint from whichever bucket holds it, which means the item leaves the set cleanly, and because no other fingerprint is touched, the rest of the set stays valid.
The result comes from the bucket check, read out as probably present or definitely absent. A cuckoo filter returns a definite no when no fingerprint matches, which means the result is certain in one direction whatever the input, and that certainty is exactly what a membership test needs.

Comparing cuckoo filters with other filters
A cuckoo filter is one of several membership structures built to answer probably-in-the-set, and each was built with a different emphasis. A Bloom filter is the classic bit array built for minimal space, a counting Bloom filter is the variant built to allow deletion at a cost, and a cuckoo filter is the one built to delete cheaply while staying fast, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Cuckoo filter | Bloom filter | Counting Bloom |
|---|---|---|---|
| Stores | Fingerprints | Bits | Small counters |
| Deletion | Yes | No | Yes, with cost |
| Space at low error | Less than Bloom | More than cuckoo | Three to four times Bloom |
| Lookup at 95 percent | Still fast | Slower | Slower |
| Best for | Changing sets | Fixed sets | Deleting with counters |
The practical result is that a cuckoo filter is the right choice for changing sets, a Bloom filter suits fixed sets, and a counting Bloom fits deleting with counters instead.
Where cuckoo filters are used
Databases use them to skip disk reads. A store checks the filter before touching slow storage, because a definite no saves a whole read, and that saving is the reason the filter earns its keep in database code.
Networks use them inside routers and caches. A router checks the filter before forwarding a lookup, because a fast answer keeps packets moving, and that speed is the reason the design was built for real systems.
Storage engines use them to track live keys. A log-structured store removes deleted keys from its filter, because stale entries waste lookups, and that churn is the reason the cuckoo filter appears in storage far beyond its database origins.
Benchmarking uses them as the deletable reference. Engineers still quote cuckoo filters when they discuss how a membership test should behave under churn, because it is the clearest example of deletion without rebuilding, and that number shapes how new filters are measured.
Teaching uses them as the fingerprint example. Courses introduce cuckoo filters when they explain that storing fingerprints beats storing items, because it is the clearest case of a small idea with a large effect, and a student who understands cuckoo filters understands why a filter’s design shapes its whole behaviour.
Strengths and limits
The greatest strength of a cuckoo filter is deletion without rebuilding. A filter that removes items cleanly fits every system where sets change, and that strength is real, measured in the paper’s own benchmarks and confirmed by the systems that adopted it.
It is also a strength that the design stays fast when nearly full. A filter that still answers quickly at 95 percent full wastes almost no space, and that density is worth more than cleverness in a field where a filter that needs headroom is a filter that wastes memory.
The limits are real, though, and the biggest is the false positive rate. A cuckoo filter can say probably present when the item is absent, which means it must never be the final word on membership, and a system that needs certainty must check the real data after the filter.
Cuckoo filter checklist
- Use cuckoo filters for membership tests, never as proof of presence.
- Remember it stores fingerprints, not whole items.
- Note it supports both adding and deleting items.
- Compare it with Bloom to see two generations of one idea.
- Study the two buckets, which is what makes deletion work.
- Check the false positive rate, since short fingerprints err more.
- Keep real membership checks behind the actual data store.
- Read the 2014 paper to see how the filter was built.
- Choose a cuckoo filter when sets change and space is tight.
Frequently asked questions
What is a cuckoo filter in simple terms?
It is a compact structure that stores short fingerprints of items, so it can say whether an item is probably in a set and can delete items too.
Who created the cuckoo filter?
Bin Fan, David G. Andersen, Michael Kaminsky and Michael D. Mitzenmacher, in a paper presented at CoNEXT 2014 in Sydney.
How is a cuckoo filter different from a Bloom filter?
Both test membership, but a cuckoo filter can delete items and uses less space at low error rates, while a Bloom filter cannot delete at all.
Is a cuckoo filter still secure?
It is fast and well tested, but it can give false positives, so it must never be the final word on whether an item is present.
Where are cuckoo filters used?
In databases, in routers and caches, in storage engines, and in teaching about compact data structures.
When should I use a cuckoo filter?
When you need fast membership tests on a changing set, when space is tight, or when you study modern filter design.
The bottom line
Cuckoo filter explained in one line is this: a Bloom filter that learned to forget, a 2014 design that stored fingerprints in a cuckoo table and taught the field that deletion is a feature, not an afterthought.
It is proof that a small change in what you store beats a big change in how you store it, and the reason it still matters is that every filter designed since has been judged partly by the lesson the cuckoo filter taught.
This article is general information about how a cuckoo filter works, not advice about choosing encryption for a particular device or system.







