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

When should I use HyperLogLog instead of exact counting?

When cardinality is in the millions or higher and 1% error is tolerable. Real-world use cases: unique visitor tracking, deduplication streams, set intersection size estimation. Skip it for small sets where exact counts fit in memory.

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.