<!--
page #11
URL: /tools/system-design-estimator
-->
# Back-of-the-Envelope Estimation: A Worked Guide for System Design Interviews

*Last updated: October 21, 2026 · ~9 min read*

A missing factor of eight can turn a comfortable network estimate into an
expensive surprise. So can sizing for the daily average when everyone arrives
after the same notification. Neither error looks dramatic on a whiteboard.
Both can matter more than the choice of database logo.

**Back-of-the-envelope estimation** means deliberately rough arithmetic from
stated assumptions: traffic, storage, bandwidth and memory. Keep enough detail
to explain a decision and enough units to notice when the answer is absurd.
You can round the number; don't round away what it measures.

Use this **manual walkthrough, formulas and reference tables** to work through
a photo feed, then repeat the calculations with your own assumptions.


---
## What the estimates are for

An estimate earns its space by changing a decision. If it shows little
storage but enormous egress, spend attention on delivery. Attach a useful
question to each number:

| Estimate | The question it answers | Typical decision |
|---|---|---|
| **Read and write QPS** | How hard is the traffic, and which side dominates? | Read-heavy: caches and read replicas. Write-heavy: queues, partitioning, LSM-based stores |
| **Peak QPS** | What do we provision for? | Autoscaling, headroom, rate limiting |
| **Storage over time** | Does the data fit on one machine? In memory? | Single node vs sharding; separate blob storage for media |
| **Bandwidth** | How much data moves in and out per second? | CDN for media, compression, pagination |
| **Cache memory** | Can the hot set live in RAM? | Cache cluster size, eviction policy |

If an estimate doesn't lead to any decision, skip it and say so.

---

## The formulas

| Quantity | Formula |
|---|---|
| Requests per day | DAU × actions per user per day |
| Average QPS | requests per day ÷ 86,400 |
| Peak QPS | average QPS × peak factor (an assumption; 2–3× is a common starting point) |
| Storage per day | writes per day × bytes per write |
| Total storage | storage per day × 365 × years retained × replication factor |
| Bandwidth | QPS × bytes per request (× 8 for bits per second) |
| Cache payload | distinct cached keys in a chosen window × bytes per entry; add overhead, replicas and headroom |
| Servers | ceil(peak QPS ÷ (assumed QPS per server × target utilization)), for the workload that capacity represents |

Ten million reads of one key do not require ten million cache entries.
Estimate distinct keys over the relevant lifetime, or state a provisional
budget and measure hit rate. A traffic count alone cannot tell you the hot set.

Two useful QPS shortcuts:

- **1 million requests per day ≈ 12 requests per second** (1,000,000 ÷
  86,400 ≈ 11.6).
- **1 billion requests per day ≈ 12,000 requests per second.**

In an interview, rounding 86,400 to 100,000 is fine as long as you say so.
It underestimates QPS by about 14%. Near a capacity threshold, keep the
more precise figure; elsewhere the rounded value may be enough.

---

## Reference numbers

### Time

| Period | Seconds | Interview rounding |
|---|---|---|
| Minute | 60 | — |
| Hour | 3,600 | ~4 × 10³ |
| Day | 86,400 | ~10⁵ |
| Month (30 days) | 2,592,000 | ~2.5 × 10⁶ |
| Year (365 days) | 31,536,000 | ~3 × 10⁷ |

### Powers of two

| Power | Exact value | Approximately | Binary unit | Decimal unit |
|---|---|---|---|---|
| 2¹⁰ | 1,024 | thousand (10³) | 1 KiB | 1 KB = 1,000 bytes |
| 2²⁰ | 1,048,576 | million (10⁶) | 1 MiB | 1 MB = 10⁶ bytes |
| 2³⁰ | 1,073,741,824 | billion (10⁹) | 1 GiB | 1 GB = 10⁹ bytes |
| 2⁴⁰ | 1,099,511,627,776 | trillion (10¹²) | 1 TiB | 1 TB = 10¹² bytes |
| 2⁵⁰ | 1,125,899,906,842,624 | quadrillion (10¹⁵) | 1 PiB | 1 PB = 10¹⁵ bytes |

The binary and decimal units differ by 2.4% at the kilo level and about 12.6%
at the peta level. For estimates, the difference doesn't matter; just don't
mix the two in one calculation.

### Data sizes

| Item | Size |
|---|---|
| ASCII character (UTF-8) | 1 byte; other characters take 2–4 bytes in UTF-8 |
| 64-bit integer, double, Unix timestamp in milliseconds | 8 bytes |
| UUID | 16 bytes binary, 36 characters as text |
| IPv4 / IPv6 address | 4 / 16 bytes |

Sizes of photos, videos, posts and messages depend on the product. Pick a
round number, say it out loud, and let the interviewer correct you.

### Latency numbers (order of magnitude)

**These are order-of-magnitude reference points, not guarantees.** Real
numbers depend on hardware, operation size, concurrency and load. They help
you question a proposal with several remote round trips on a hot path; they
don't provide an SLA.

**The classic list (circa 2012).** These figures are attributed to Jeff Dean
of Google and Peter Norvig, and are best known from Jonas Bonér's
[GitHub gist](https://gist.github.com/jboner/2841832), which labels them
"~2012". Norvig's essay
[*Teach Yourself Programming in Ten Years*](https://norvig.com/21-days.html)
has a similar table.

| Operation | Approximate time |
|---|---|
| L1 cache reference | 0.5 ns |
| Branch mispredict | 5 ns |
| L2 cache reference | 7 ns |
| Mutex lock/unlock | 25 ns |
| Main memory reference | 100 ns |
| Read 1 MB sequentially from memory | 250 µs (Norvig's table) |
| Round trip within the same datacenter | 500 µs |
| Read 1 MB sequentially from SSD | 1 ms |
| Disk seek | 10 ms |
| Read 1 MB sequentially from spinning disk | 20 ms |
| Packet round trip, California ↔ Netherlands | 150 ms |

**Modern cloud measurements (March 2026).** Simon Eskildsen's
[napkin-math](https://github.com/sirupsen/napkin-math) project re-measured
some operations in March 2026 on specified Google Cloud and AWS instances.
The README separates measurements from heuristics and notes that rounded
latency and throughput don't always multiply into one another.

| Operation | Latency | Throughput |
|---|---|---|
| Random memory read/write (64 B) | 20 ns | 3 GiB/s |
| System call | 300 ns | — |
| Context switch | 10 µs | — |
| Sequential SSD read (8 KiB) | 1 µs | 8 GiB/s |
| Random SSD read (8 KiB) | 100 µs | 70 MiB/s |
| SSD write with fsync (8 KiB) | 300 µs | 30 MiB/s |
| Same-zone transfer of 1 MiB, not a tiny-request RTT | ~100 µs | 10 GiB/s |
| Network, same region | 250 µs | 2 GiB/s |
| Database or cache query (MySQL, Redis, Memcached) | 500 µs | — |
| Network, North America central ↔ east | 25 ms | 25 MiB/s |
| Network, EU west ↔ North America east | 80 ms | 25 MiB/s |
| Blob storage GET, one connection (128 KiB) | 80 ms | 100 MiB/s |

The two tables measure different things on different hardware ten-plus
years apart, so don't mix rows from them in one comparison. The orders of
magnitude worth remembering:

```
memory          ~100 ns        (tens to a hundred ns)
SSD random read ~100 µs        (~1,000× memory)
same-zone       transfer size and tiny-request RTT need separate estimates
DB/cache query  ~0.5 ms
long-distance/inter-region ~25–150 ms
blob GET        ~tens of ms
```

---

## Worked example: a photo-sharing feed

Here is a full estimate for an Instagram-like app, the way you'd say it in an
interview. All inputs are assumptions you'd state and confirm.

**Assumptions:** 50 million DAU; each user opens the feed 10 times a day;
on average a user uploads 0.2 photos a day; a stored photo with its resized
versions takes 2 MB; metadata is 1 KB per photo; a feed page loads 10 images
of about 200 KB each (2 MB per request); peak traffic is 2× the average.

**1. Traffic.**

- Feed reads: 50M × 10 = 500M a day → 500M ÷ 86,400 ≈ **5,800 QPS**
  average, **~11,600 QPS** at peak.
- Uploads: 50M × 0.2 = 10M a day → **~116 QPS** average, **~230** at peak.
- Read-to-write ratio: 50:1. This is a read-heavy system.

**2. Storage.**

- Photos: 10M × 2 MB = **20 TB a day** → about **7.3 PB a year** before
  replication.
- Metadata: 10M × 1 KB = 10 GB a day → about **3.65 TB a year**.

**3. Bandwidth.**

- Ingress: 10M × 2 MB ÷ 86,400 ≈ 230 MB/s ≈ **1.9 Gbps**.
- Egress: 5,800 QPS × 2 MB ≈ 11.6 GB/s ≈ **93 Gbps** average, ~185 Gbps at
  peak.

**4. Cache.** Suppose we keep precomputed feeds as lists of 500 post IDs
(8 bytes each) for every daily user: 50M × 500 × 8 B = **200 GB of raw IDs**.
Add keys, structures, replication and headroom before choosing a cluster.

**5. Servers.** For a deliberately simple shared application tier, assume
reads and writes consume equal capacity, a server sustains 1,000 of those
operations per second, and we target 70% utilization:

```text
peak reads  = 500M / 86,400 × 2 ≈ 11,574/s
peak writes =  10M / 86,400 × 2 ≈    231/s
servers = ceil((11,574 + 231) / (1,000 × 0.7)) = 17
```

That's **17 generic application servers under this toy model**, not a
benchmark for feed generation or uploads. Real operation costs, fan-out and
tail latency need separate measurement. Add failure capacity for the required
redundancy rather than assuming 70% utilization alone covers it.

**What the numbers decide:**

- **Photos and metadata belong in different systems.** Petabytes of blobs go
  to object storage; a few terabytes a year of metadata fit a sharded
  database.
- **A CDN deserves consideration.** Roughly 93 Gbps average image delivery
  makes origin bandwidth, geographic latency and cache hit rate consequential.
  Compare delivery options against that workload.
- **Feed storage isn't the entire fan-out problem.** The 200 GB raw-ID estimate
  is a start. Updates depend on followers per uploader, skew and freshness;
  116 uploads/s alone doesn't establish feasibility. A few huge accounts can
  dominate the work.

That's five lines of math and three architecture decisions.

---

## How to use estimates in a system design interview

1. **Do them after requirements, before the high-level design.** You need
   the requirements to know what to estimate, and the design needs the
   numbers.
2. **Ask before you assume.** *"How many daily users should I design for?"*
   If the interviewer says "you decide," pick round numbers and write them
   down.
3. **Round aggressively.** 86,400 becomes 100,000; 11,574 becomes "about
   12,000". Keep one significant figure unless a threshold is close.
4. **Show units at every step.** Most estimation errors are unit errors:
   bits vs bytes, KB vs MB, per day vs per second.
5. **Sanity-check the result.** If a chat app needs more storage than all of
   YouTube, an assumption is off by orders of magnitude. Say so and fix it.
6. **Connect every number to a decision.** *"At 12,000 reads per second with
   a 50:1 ratio, I'll put a cache in front of the database."*
7. **Stop at two to four minutes.** If the interviewer signals that the math
   isn't important, move on.

Practice by taking any system you use daily, guessing its DAU, and running
the traffic, storage, bandwidth and cache calculations. Compare the worked
example and check which assumptions changed the architecture.

→ For the full interview framework and a worked URL shortener, see the
[system design interview guide](/guides/system-design-interview).

---

## Back-of-the-envelope quick reference

```
QPS        = per-day count ÷ 86,400  (≈ ÷ 10^5)     1M/day ≈ 12/s · 1B/day ≈ 12k/s
Peak       = average × 2–3 (assumption — say it)
Storage    = writes/day × size × 365 × years × replicas
Bandwidth  = QPS × payload; × 8 for bits/s          1 Gbps = 125 MB/s
Cache      = distinct keys in a window × entry size; add overhead/replicas
Powers     2^10 ≈ 10^3 (K) · 2^20 ≈ 10^6 (M) · 2^30 ≈ 10^9 (G) · 2^40 ≈ 10^12 (T)
Latency    memory ~100 ns · SSD random ~100 µs · classic same-DC RTT ~0.5 ms (2012 reference) ·
           long-distance/inter-region ~25–150 ms (order of magnitude)
```

---

## FAQ

### What is back-of-the-envelope estimation in system design?
It's fast, rounded arithmetic that sizes a system from a few assumptions
(users, actions per user, object sizes) to get traffic, storage, bandwidth
and memory. The goal is to choose the right architecture, not to get exact
numbers.

### How do you calculate QPS from daily active users?
Multiply DAU by the number of requests each user makes per day, then divide
by 86,400 seconds. For example, 10 million DAU × 20 requests = 200 million
requests a day ≈ 2,300 QPS on average. Multiply by a peak factor (often 2–3×)
to size for peak traffic.

### How do you estimate storage for a system design interview?
Multiply the number of new objects per day by the size of each object, then
by 365 and the number of years you keep the data. Multiply by the
replication factor if the interviewer cares about raw disk. Estimate large
media and small metadata separately, because they go to different stores.

### Are the "latency numbers every programmer should know" still accurate?
The classic list dates from around 2012. Some numbers have improved a lot
since then, especially SSD and network throughput. Others, like the speed of
light across an ocean, haven't changed much. The relative orders of
magnitude still hold, which is how interviews use them. For current
measurements, see the napkin-math project linked above.

### Do I need to memorize these numbers?
Memorize a handful: seconds in a day, the powers of two up to 2⁴⁰, and
the rough order of magnitude for memory, SSD, network round trips and
cross-continent latency. Everything else you can derive or state as an
assumption.

### Should I use KB or KiB?
Either, as long as you are consistent. Decimal units (KB = 1,000 bytes) make
mental math easier and are what most interview estimates use.

### What peak factor should I use?
There's no universal value. Two to three times the daily average is a
common starting assumption for consumer apps. Spiky products, such as ticket
sales or live events, can be far higher. State your choice and why.

---

## Related guides

- [System design interview: framework and how to prepare](/guides/system-design-interview)
- [ML system design interview](/guides/ml-system-design-interview)
- [STAR method for software engineers](/guides/star-method)

