What are the key powers of 2 every engineer should know?
Powers of 2 are the vocabulary of capacity estimation. Every storage, memory, and bandwidth number is ultimately expressed in multiples of 2^n bytes. Internalizing this table prevents unit errors under interview pressure.
**The core table:**
| Power | Value | Common name | Practical example | |---|---|---|---| | 2^10 | 1,024 | 1 KB | Short text field, tweet | | 2^20 | ~1 million | 1 MB | Small image, 1 min MP3 | | 2^30 | ~1 billion | 1 GB | Movie file, RAM on a phone | | 2^40 | ~1 trillion | 1 TB | Laptop SSD, daily log volume | | 2^50 | ~1 quadrillion | 1 PB | Large data warehouse |
**Why approximate with 10^3, 10^6, 10^9?** 2^10 = 1,024 ≈ 10^3. This 2.4% error compounds: 1 GB is actually 1.07 × 10^9 bytes. For estimation purposes this is irrelevant — you are trying to distinguish 'do I need 1 GB or 1 TB', not measure precisely.
**Derived conversions that appear in interviews:** - 1 million users × 1 KB record = 1 GB - 1 billion records × 1 KB = 1 TB - 1 billion records × 1 MB (image) = 1 PB - 8 bits = 1 byte → 1 Gbps = 125 MB/s - A 64-bit integer = 8 bytes; UUID = 16 bytes; SHA-256 hash = 32 bytes
**Practical anchors:** - L1 cache: ~32 KB; L2: ~256 KB; L3: ~8 MB - Typical server RAM: 64–256 GB - NVMe SSD: 1–4 TB, ~3 GB/s throughput - S3 object max size: 5 TB
Memorise: 10, 20, 30, 40, 50 → KB, MB, GB, TB, PB. Everything else derives from this.
Correctly states 2^10 through 2^40 mappings and applies them to at least two estimation examples.
Derives MB/s from Mbps conversion, gives practical examples for each tier, and uses the table to sanity-check an estimate.
Reading the answer is step one. Explaining it unprompted — under interview pressure — is what actually matters. Get AI-graded feedback on your answer with follow-up probes on your weak points.
Get Graded — Free Assessment