GuidesBack-of-the-envelope estimation
Back-of-the-envelope estimation for system design interviews
11 min read · Updated 1 December 2026
The interviewer says: "Assume 50 million daily users." You nod. Then you have to decide whether one database is enough, whether you need a cache, and how much disk to buy. Without numbers, those are guesses.
Back-of-the-envelope estimation is rough maths you can do in your head or on a corner of the whiteboard. The goal is not a precise answer. It is the right order of magnitude: is this 100 requests a second, or 100,000? Those two systems look completely different.
This guide covers the few numbers worth memorising, the shortcuts that make the maths quick, worked examples, and, most importantly, what each number tells you to build.
Key takeaways
- A day has 86,400 seconds; round it to 100,000 so you can divide in your head.
- 1 million requests a day is only about 12 a second; scale everything from there.
- Multiply the average by 2 to 5 for peak, and say which factor you picked.
- A memory read is thousands of times faster than a round trip inside a data centre, and a cross-continent round trip is over 100 ms.
- Every estimate should end with a decision: one machine or many, cache or not, sync or async.
Why estimate at all
Let's say you are designing a photo app. You could spend 40 minutes on a beautifully sharded, multi-region design. But if the app gets 50 uploads a second, one database would have handled it, and the interviewer now thinks you over-build.
Or the opposite. You draw one database, and it turns out the app gets 200,000 reads a second. No single database answers that from disk, so the design simply doesn't work.
Estimates stop both mistakes. A few minutes of maths tells you which problems you actually have. In an interview, say: "Let me size this quickly so I know where the hard part is."
Keep it rough. Round aggressively, use powers of ten, and say your assumptions out loud so the interviewer can correct them. Being off by 20% never matters. Being off by 100 times always does.
The numbers to memorise
You only need a few. Start with powers of ten, because they make big numbers easy to multiply:
- Thousand = 10³. A kilobyte (KB).
- Million = 10⁶. A megabyte (MB).
- Billion = 10⁹. A gigabyte (GB).
- Trillion = 10¹². A terabyte (TB).
- 10¹⁵ is a petabyte (PB).
To multiply, add the exponents. 10 million users × 1,000 bytes each = 10⁷ × 10³ = 10¹⁰ bytes, which is 10 GB.
Next, time. A day has 24 × 60 × 60 = 86,400 seconds. Round it to 100,000 (10⁵). Your answers come out about 15% low, which is fine for sizing, and the maths becomes one step.
From that, a few handy conversions:
- 1 million a day ≈ 12 a second.
- 100 million a day ≈ 1,200 a second.
- 1 billion a day ≈ 12,000 a second.
- A year is about 3 × 10⁷ seconds, or roughly 400 days if you want easy multiplying (365 is closer, but 400 gives a safe margin).
Finally, rough sizes: a short text record (a tweet-sized post with metadata) is about 1 KB, a compressed photo a few hundred KB to a few MB, and a minute of compressed HD video tens of MB.
| Per day | Per second (÷ 86,400) | Quick version (÷ 10⁵) |
|---|---|---|
| 1 million | ~12 | 10 |
| 10 million | ~116 | 100 |
| 100 million | ~1,160 | 1,000 |
| 1 billion | ~11,600 | 10,000 |
From daily users to requests a second
Here is the most common estimate in any interview: turning "X daily users" into queries per second (QPS), meaning how many requests hit your system each second.
The recipe has three steps:
- 1.Requests a day = daily active users × actions per user per day.
- 2.Average QPS = requests a day ÷ 10⁵.
- 3.Peak QPS = average × a peak factor.
Traffic is not flat. People use apps more in the evening and less at 4 a.m. A peak factor of 2 to 5 is a common assumption; use the higher end for consumer apps with sharp evening spikes or event-driven bursts. It is an assumption, so say it.
Let's try one. A social app has 20 million daily users. Each opens their feed 10 times a day and posts once every 5 days.
- Feed reads: 20 million × 10 = 200 million a day ÷ 10⁵ = 2,000 QPS on average. With a peak factor of 3, 6,000 QPS.
- Posts: 20 million ÷ 5 = 4 million a day ÷ 10⁵ = 40 QPS, about 120 at peak.
What the numbers decide: writes are tiny, so one primary database can take every write. Reads are 50 times higher, so the design centres on caching feeds and adding read replicas (copies of the database that answer reads). Notice the reasoning goes straight from number to choice.
Storage over the years, and bandwidth
Storage answers: will the data fit on one machine, or do you need to split it (shard it) across many?
The recipe: new items a day × size of each item × days you keep it × copies.
Let's take a photo app with 1 million uploads a day, each about 500 KB once compressed.
- Per day: 10⁶ × 500 KB = 500 GB.
- Per year: 500 GB × 365 ≈ 180 TB.
- Over 5 years: about 900 TB, call it 1 PB.
- Stored 3 times for safety: about 3 PB.
What that decides: 3 PB will never fit on a database server. Photos go into blob storage (a service built for storing large files, like Amazon S3), and only small metadata rows go in the database. The metadata is 1 million rows a day at maybe 500 bytes, so 500 MB a day, under 1 TB over five years. That fits comfortably in one well-sized database.
Bandwidth is the same idea per second. Uploads: 500 GB a day ÷ 86,400 ≈ 6 MB a second coming in. If every photo is viewed 100 times, that is about 600 MB a second going out, roughly 5 gigabits a second. Serving that from your own app servers would be expensive, which is why a CDN (servers near users that keep copies of files) serves the images instead.
Latency numbers every engineer should know
So far we sized load. Now speed. How long does each part of a request actually take?
You don't need exact figures. You need the gaps between them, which are huge. A widely cited list started by Jeff Dean at Google has been repeated and updated for years. Exact values change with hardware, so treat the ones below as rough orders of magnitude.
Here's the pattern to remember: each step down the table is roughly 10 to 1,000 times slower than the one above.
- Reading from memory is around 100 nanoseconds.
- A random read from an SSD is around 100 microseconds, about 1,000 times slower.
- A round trip inside one data centre is around half a millisecond.
- A spinning disk seek is around 10 milliseconds.
- A round trip between continents is around 150 milliseconds, mostly because light in fibre can only go so fast.
What they decide:
- A cache in memory beats a database read on disk, which is why caches exist.
- Each extra network hop costs about 0.5 ms. Ten sequential calls between services cost 5 ms before any work is done.
- You cannot beat the speed of light. If users in Sydney talk to servers in Virginia, every round trip costs well over 100 ms. Only moving data or servers closer fixes that, which is what CDNs and multiple regions are for.
| Operation | Rough time | Compared with memory |
|---|---|---|
| Read from main memory | ~100 ns | 1× |
| Random 4 KB read from an SSD | ~100 µs | ~1,000× |
| Round trip within one data centre | ~0.5 ms | ~5,000× |
| Read 1 MB sequentially from an SSD | ~1 ms | ~10,000× |
| Spinning disk seek | ~10 ms | ~100,000× |
| Round trip between continents | ~150 ms | ~1,500,000× |
Where the time goes in one request
Now put the latency numbers onto a real request. A user opens a page. Where do the milliseconds go?
Step through the diagram. Each component shows its rough cost underneath. The point is not the exact figures; it's seeing which hops are expensive and which are nearly free.
A common target is that the server side answers in well under 100 ms, so the page feels quick once you add the user's own network.
Static files from a nearby edge
Images, scripts and styles come from a CDN server near the user. A round trip of 10 to 30 ms is far better than crossing an ocean to your origin.
A full worked example in three minutes
Here is what a complete estimate sounds like in an interview, for a chat app.
"Let me assume 50 million daily users, each sending 40 messages a day."
- Messages: 50 million × 40 = 2 billion a day ÷ 10⁵ = 20,000 a second on average. Peak factor 3: 60,000 a second.
- Each message is delivered to the other person, so roughly the same number of deliveries. Group chats push that higher.
- Message size with metadata: about 200 bytes. So 2 × 10⁹ × 200 = 4 × 10¹¹ bytes = 400 GB a day.
- One year: 400 GB × 365 ≈ 150 TB. With 3 copies, about 450 TB.
- Connections: if a fifth of users are online at once, that is 10 million open connections. At, say, 100,000 connections per server (an assumption that depends heavily on the server and setup), about 100 servers just to hold connections.
"So what does this tell us? 60,000 writes a second is beyond a single database, so messages need a store that spreads writes across many machines, partitioned by conversation. 150 TB a year confirms we need sharding. And 10 million connections means a dedicated fleet of connection servers."
Three minutes, and the shape of the design is already decided. The chat application guide takes it from there.
Common estimation mistakes
- Being too precise. Writing 23,148.15 QPS wastes time and suggests you've missed the point. Say "about 23,000", or "about 20,000".
- Forgetting the peak. Averages hide the evening spike. Systems fail at peak, not on average.
- Forgetting copies. Storage usually triples once you count replicas, and grows again with backups and indexes.
- Mixing bits and bytes. Network speeds are usually in bits (Gbps), storage in bytes. 1 byte = 8 bits.
- Not saying the conclusion. An estimate that doesn't change any decision was wasted time. Always finish with "so this means...".
- Estimating everything. Only size what matters. If storage is obviously tiny, say so in one sentence and move on.
For how estimation fits into the whole interview, see the system design interview guide.
Questions people ask
What is back-of-the-envelope estimation in system design?
It is quick, rough maths to size a system: requests per second, storage, bandwidth and latency. The aim is the right order of magnitude, not a precise figure, so you know which parts of the design will be under pressure.
How do you calculate QPS from daily active users?
Multiply daily users by actions per user per day, then divide by about 100,000 (a day has 86,400 seconds). That gives the average. Multiply by a peak factor of 2 to 5 for the busiest times.
What latency numbers should I know for system design interviews?
Roughly: memory about 100 ns, SSD random read about 100 µs, a round trip inside a data centre about 0.5 ms, a spinning disk seek about 10 ms, and a cross-continent round trip about 150 ms. The gaps between them matter more than the exact values.
How accurate do estimates need to be in an interview?
Within a factor of two or so is fine. What matters is getting the order of magnitude right and using it to make a decision, such as whether you need sharding, a cache or a CDN.
How many seconds are in a day?
86,400. In interviews, round it to 100,000 so you can divide in your head; your answers come out a little low, which is fine for sizing.