Skip to content

Back-of-the-envelope estimation

A back-of-the-envelope estimate is a quick calculation, done with round numbers, that tells you which design is even possible. Will the data fit on one machine? Can one database take the writes? Is bandwidth or storage the real cost? Two or three minutes of arithmetic answer these questions and keep you from building a sharded cluster for 12 requests a second, or a single server for 100,000.

  1. Write down the assumptions. Daily active users, actions per user per day, read-to-write ratio, average object size, how long data is kept. If the interviewer does not give them, propose round numbers and say them out loud.

  2. Turn daily counts into rates. Divide by 86,400 s, or by 10⁵ for a quick estimate (that underestimates by about 14%, which rarely matters). Do it separately for writes and reads.

  3. Find the peak. Traffic is not flat: a daily peak is typically 2–3× the average, and launches or events can reach 10×. Size the servers for the peak, and the storage for the average.

  4. Compute bandwidth. Requests per second × bytes per request, for ingress (writes) and egress (reads). Convert to bits when you compare with network links: bytes × 8.

  5. Compute storage. Writes per day × object size × 365 × years of retention. Then multiply by the replication factor and add room for indexes, metadata and growth.

  6. Compare with what one machine can do and draw a conclusion. This is the step that matters. See the capacity table below.

Time and rates

QuantityExactFor estimates
Seconds per day86,400≈ 10⁵
Seconds per month≈ 2.6 million≈ 2.5 × 10⁶
Seconds per year≈ 31.6 million≈ 3 × 10⁷
1 million requests per day11.6/s≈ 12/s
100 million requests per day1,157/s≈ 1,200/s
1 billion requests per day11,574/s≈ 12,000/s

Sizes

ItemTypical size
ID (integer, timestamp)8 bytes
UUID16 bytes
Short text (tweet, URL, chat message) with metadata100 bytes – 1 KB
JSON API response1–10 KB
Compressed photo200 KB – 3 MB
One minute of HD video10–50 MB

Handy products: 1 KB × 1 million = 1 GB, 1 MB × 1 million = 1 TB, 1 GB × 1,000 = 1 TB. For powers of two and KiB vs KB, see powers of two.

What one machine can do (order of magnitude, 2026)

ComponentRough capacity
Stateless web or API server1,000–10,000 requests/s, depending on work per request
PostgreSQL or MySQL primary on a large instance10,000+ simple writes/s, 50,000+ indexed reads/s; tens of TB of data
Valkey or Redis node100,000+ operations/s (more with I/O threads); dataset limited by RAM
Kafka-style brokerHundreds of MB/s of writes
Server memory256 GB – 2 TB
Local NVMe1–30 TB per drive (QLC drives up to about 250 TB), 1–3 million random reads/s
Network port25–100 Gbit/s

These figures vary a lot with the workload, but they tell you whether you need one machine, ten or a thousand. For the time each operation takes, see latency numbers.

Assumptions: 10 million daily users, of whom one in ten creates a short link each day; each link is read 100 times; a stored link takes about 500 bytes; links are kept for five years; peak traffic is three times the average; data is stored three times.

QuantityCalculationResult
New links per day10 M × 0.11 M
Write QPS1 M ÷ 86,400≈ 12/s average, ≈ 35/s peak
Read QPS12 × 100≈ 1,200/s average, ≈ 3,500/s peak
Read bandwidth1,200/s × 500 B≈ 600 KB/s ≈ 5 Mbit/s
Storage per year1 M × 500 B × 365≈ 180 GB
Storage for 5 years, 3 copies180 GB × 5 × 3≈ 2.7 TB
Links stored after 5 years1 M × 365 × 5≈ 1.8 billion

What it means. The write rate is tiny and the whole dataset fits on one database server with replicas. Reads are where the load is, and they are highly cacheable: the hot set of recent links fits in a few gigabytes of cache memory. Short keys need to cover about 2 billion links, which 7 Base62 characters do with room to spare. A sharded NoSQL cluster is not needed here; a CDN or cache in front of a replicated relational database is. The full design, with somewhat different assumptions, is in Design Pastebin or a URL shortener.

Assumptions: 20 million daily users, each uploading a photo every other day; about 2 MB per photo, used for uploads, views and storage alike (resized versions add little); 50 views per photo; peak is four times the average; photos kept for ten years; three copies.

QuantityCalculationResult
Uploads per day20 M × 0.510 M
Upload QPS10 M ÷ 86,400≈ 120/s average, ≈ 460/s peak
View QPS120 × 50≈ 6,000/s average, ≈ 23,000/s peak
Upload bandwidth120/s × 2 MB≈ 230 MB/s ≈ 2 Gbit/s
View bandwidth6,000/s × 2 MB≈ 12 GB/s ≈ 90 Gbit/s; ≈ 370 Gbit/s at peak
New data per day10 M × 2 MB20 TB
Per year20 TB × 365≈ 7.3 PB
10 years, 3 copies7.3 PB × 10 × 3≈ 220 PB

What it means. Request rates are modest, but egress bandwidth and storage dominate. Serving 90–370 Gbit/s from origin servers is impractical, so images go through a CDN, and the origin sees only cache misses. Hundreds of petabytes belong in object storage. Erasure coding (about 1.5× overhead instead of 3×) halves the raw capacity, and moving old photos to colder storage classes cuts the cost further. Metadata is a separate, much smaller problem: 3.7 billion rows a year at about 1 KB each is under 4 TB a year, a job for a sharded database or a managed key-value store.

The calculator below starts from the URL shortener and can switch to a chat app or photo sharing. Change any assumption and the results update; open Show the arithmetic to see each step, in the same order as the method above.

Assumptions

Results

Writes, average
—
Writes, peak
—
Reads, average
—
Reads, peak
—
Ingest bandwidth
—
Read bandwidth (egress)
—
New data per day
—
New data per year
—
Total stored (with replicas)
—
Objects stored
—
Show the arithmetic
    • No conclusion. A table of numbers without “so we need X” is half an answer. Every estimate should end in a design decision.
    • Bits vs bytes. Network links are quoted in bits per second, storage in bytes. A 10 Gbit/s link carries about 1 GB/s.
    • Average instead of peak. Servers and databases must survive the busiest minute, not the average one. Storage, on the other hand, grows with the average.
    • Forgetting replicas and overhead. Three copies, indexes, metadata and free-space headroom easily turn 1 TB of payload into 4–5 TB of disk.
    • Too much precision. “11,574.07 QPS” wastes time and suggests the inputs are precise. “About 12,000” is the right answer.
    • Silent assumptions. If the interviewer cannot see where a number came from, they cannot correct you. State each assumption before using it.
    • Mixing time units. Monthly figures divided by 86,400, or yearly storage multiplied by 30, are easy slips. Write the units next to every number.
    • Ignoring growth. If usage doubles every year, five-year storage is far more than five times this year’s.

    Based on The System Design Primer by Donne Martin (CC BY 4.0). Restructured, rewritten and updated; site content is licensed under CC BY 4.0.