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

What is the memory cost of HyperLogLog?

Fixed at 12 KB regardless of cardinality. It maintains 16,384 registers (one per possible 14-bit hash prefix), each storing the maximum leading-zero count observed for that prefix. This tiny footprint works from millions to billions of unique items.

Answered in

Count Billions in 12 Kilobytes

HyperLogLog estimates cardinality by reading leading zeros in hashed values, trading 1% error for fixed memory.

Crashtech Editorial August 16, 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.