Almost every system design interview has this moment. The candidate says "let me do some quick math" and writes 100 million daily users on the board. They multiply by 10 requests each and divide by 86,400. They announce "so about 12,000 requests per second". Then they design exactly the system they were always going to design.
That isn't estimation. It's a ritual. The numbers were never going to change anything, so it didn't matter whether they were right.
Here is the idea this whole article rests on:
An estimate that does not change a decision is decoration. You aren't trying to produce a correct number. You're trying to rule out one of your options. Before you multiply anything, you should be able to say what you'll do differently for each way the answer could come out. If you can't say that, skip the arithmetic and move on with the design.
If you accept this, two things follow.
The first is that you only need the right order of magnitude, which means the right power of ten. If you're 30 percent wrong, that almost never changes a decision. If you're 100 times wrong, it always does. So round hard and round early. Take care over how many zeros the answer has, not over the digits in front of them.
The second is that estimation should sometimes stop you. The most useful calculation is the one that says a feature costs $4 million a year and earns nothing, so it shouldn't be built. Senior engineers use this one more than any other.
This article gives you the numbers worth memorising, a method that works every time, four worked examples from start to finish, and the seven ways these calculations go wrong in real interviews.
Why you are estimating at all
In an interview, estimation answers three questions and no others. If a calculation doesn't answer one of them, it's filler.
Does this fit on one machine? This is the most important question, and candidates avoid it more than any other. The answer is often yes, and yes feels unambitious. A single server in 2026 has over a hundred CPU cores, 1 to 2 TB of memory, and network cards that move 10 GB a second. Many interview problems fit inside that. The point of estimating is to know when you've gone past what one machine can do.
Which resource runs out first? Every system has one thing that breaks before everything else. It might be storage cost, write throughput, memory, the number of open connections, or a single hot key, which is one key that gets far more traffic than the rest. Estimation is how you find out which one. Your design has to be organised around that resource, and everything else is detail.
What does it cost? Money matters more than most candidates realise. But cost also means machines to run, people to operate them, and complexity to maintain. A design that works but costs 10 times too much gets cancelled.
There's also a fourth question: when not to estimate. Don't estimate things you won't act on. Don't compute the size of a user profile row to three decimal places. Don't calculate bandwidth if bandwidth is obviously not your problem. Time is the scarcest thing you have in an interview. Five minutes of arithmetic that nobody uses is five minutes taken from the part of the design that would have shown what you know.
The numbers worth memorising
You can't estimate anything if you have to work out every constant from scratch. Here's the minimum set. If you learn these, you can work out almost everything else in your head.
Time
These conversions are the most useful thing in this article. If you learn the first line, you can do most estimation without a calculator.
Seconds in a day 86,400 ≈ 100,000 (10^5) Seconds in a month 2,592,000 ≈ 2.6 million Seconds in a year 31,536,000 ≈ π × 10^7 (only 0.4% off) Requests per day → requests per second 1M/day ≈ 12/s 10M/day ≈ 120/s 100M/day ≈ 1,200/s 1B/day ≈ 12,000/s 10B/day ≈ 120,000/s Minutes in a 30-day month 43,200 99.9% available → 43 minutes down per month 99.99% available → 4.3 minutes down per month 99.999% available → 26 seconds down per month
Three of these save the most time.
One million a day is a dozen a second. If you memorise this one conversion, you get every other line of that list by moving the decimal point. You'll never need to divide by 86,400 again.
There are about π times ten million seconds in a year. The true figure is 31,536,000, and π × 10^7 is 31,415,927, so it's off by less than half a percent. It's a coincidence, and it's easier to remember than the real number.
A 30-day month has 43,200 minutes. Availability targets are counted in nines: 99.9 percent is three nines, and 99.99 percent is four. Each extra nine divides your downtime budget by ten. Three nines is 43 minutes a month, about one bad deploy. Four nines is four minutes. That's too short to fix anything by hand, so every recovery has to be automatic. This one fact tells you what an availability target demands better than any amount of discussion.
Sizes of things
| thing | size |
|---|---|
| one character of text | 1 byte |
| integer, boolean | 4 bytes |
| timestamp, 64-bit number | 8 bytes |
| UUID | 16 bytes raw, 36 bytes written out as text |
| username, short label | 30 to 50 bytes |
| a URL | about 100 bytes |
| a short post or message | 200 bytes of text |
| a database row, small | 200 to 500 bytes with overhead |
| a log line | 200 to 500 bytes |
| one JSON API response | 1 to 10 KB |
| a thumbnail image | 20 KB |
| a display-sized photo | 200 to 500 KB |
| an original photo from a phone | 3 to 5 MB |
| a modern web page, images included | about 2 MB |
| one minute of 1080p video | about 60 MB |
| one minute of 4K video | about 190 MB |
| one minute of audio | about 1 MB |
| one hour of 1080p video | about 3.6 GB |
Two conversions go with this table, and both come up all the time:
- 1 MB per second is about 86 GB per day, or roughly 2.6 TB per month.
- 1 million records of 1 KB each is 1 GB. A billion of them is 1 TB. Once you know that, a storage estimate takes five seconds.
The latency ladder
Jeff Dean published a list of these numbers at Google around 2009, and it's been copied everywhere since. The absolute values have moved as hardware improved. The ratios between them have barely changed in twenty years, and the ratios are what you need.
The version to carry in your head has five steps:
- 1 nanosecond to read from the CPU's own cache. In practice, it's free.
- 100 nanoseconds to read from memory. That's 100 times slower than cache, and still effectively instant.
- 100 microseconds to read from a modern solid-state drive (SSD). That's 1,000 times slower than memory, and it's the first step big enough that you have to think about it.
- 500 microseconds for a round trip to another machine in the same datacenter. That's only about five times an SSD read. So calling another service in the same building usually costs less than people expect.
- 150 milliseconds for a round trip across the world. That's 300 times slower than the same-datacenter call, and physics sets it, not engineering.
One comparison helps the shape stick. Suppose reading from cache took one second. Then reading from memory would take under 2 minutes, and reading from an SSD would take a little over a day. A round trip across the world would take five years.
Now the step that engineering can't fix. Light travels slower in glass than in a vacuum, at about 204,000 km per second. That works out to 4.9 microseconds per kilometre of fibre. A round trip covers the distance twice, so the rule to memorise is:
Every 100 km of distance costs you about 1 millisecond of round-trip time, and no amount of money changes that.
One more detail: real cables don't go straight. Fibre follows railways, roads and seabeds, so the real path is usually 1.3 to 1.5 times the straight-line distance. So take the map distance, add roughly 40 percent, and then apply the rule.
Now look at the short end of that scale. Inside a single datacenter the distance is under a kilometre, so physics adds almost nothing to Dean's 500 microsecond figure. Below about 100 km, latency stops being about distance and is all about software: switches, kernels, serialisation and queueing. That gives you a dividing line. Over long distances, latency is a physics problem, and you solve it by moving the data closer. Over short distances, it's an engineering problem, and you solve it by writing better code.
What one machine can do
Candidates almost never know these numbers, and they're the ones that turn a load figure into a machine count. Treat them as rough guides. They're right to within a factor of two or three, and that's all you need.
| component | rough capacity per node |
|---|---|
| in-memory store (Redis) | 100,000 simple operations/sec |
| relational database, writes | 5,000 to 15,000 writes/sec |
| relational database, cached reads | 50,000 reads/sec |
| wide-column store (Cassandra) | 10,000 to 50,000 writes/sec |
| message broker (Kafka) | 100,000 to 1,000,000 messages/sec |
| web service, trivial work | 10,000 to 50,000 requests/sec |
| web service, one database call | 1,000 to 5,000 requests/sec |
| NVMe SSD | 500,000 random reads/sec, 3 GB/sec sequential |
| hard disk | 100 to 200 random reads/sec, 150 MB/sec sequential |
| 10 Gbps network card | 1.25 GB/sec |
| open connections held per server | a few hundred thousand to a million |
The gap between the NVMe SSD row and the hard disk row explains much of database design. An SSD does thousands of times more random reads per second than a spinning disk, but it's only about twenty times faster at sequential reads, where the data is read in order. That one ratio explains why older databases work so hard to turn random access into sequential access, and why newer ones don't have to.
What things cost
Cloud prices change, so treat these as 2026 figures and check current rates before quoting them. The ratio between them changes much less, and the ratio is the surprising part.
Here are the prices for Amazon S3 in its US East region:
- Storing data: $0.023 per GB per month
- Sending data out to the internet: $0.09 per GB, dropping to about $0.05 per GB at very high volume
- Sending data in: free
- Moving data between availability zones, the separate datacenters inside a region: about $0.01 per GB in each direction, so about $0.02 per GB moved
This is the most useful cost fact in the article. Sending a file to a user once costs about the same as storing it for four months. Storage is nearly free, and moving data isn't. Any system whose job is to deliver bytes to users spends far more on delivery than on keeping them. So the first cost saving is almost never "shard the database". It's almost always "send fewer bytes, from closer, less often".
The method
That's the whole budget for estimation in a 45-minute interview. Spend it in one block, at the point where the numbers decide something. Don't spread it thinly, and don't spend it at the very start, before you know what you're deciding.
There are six steps, in order.
1. Write down the decision first, not the number. "I want to know whether this fits in one database" is a decision. "Let me calculate QPS", queries per second, isn't. This step takes five seconds, and it's the step that separates estimation from ritual.
2. Start from a number a human would recognise. That might be daily active users, orders per day, or messages sent per day. Don't start from an internal number like queries per second. You'll end up inventing it, and an invented starting point makes everything after it meaningless.
3. Convert to per-second using the shortcut. Divide the daily figure by 100,000. That's all.
4. Apply a peak multiplier, and say the number out loud. Traffic is never flat, so an average isn't a capacity target.
5. Divide by what one machine can do, then add headroom. Headroom is the spare capacity you keep for spikes and failures. This step is what the capacity table is for.
6. Check the answer against something you know is true. Then ask the question that ends the exercise: would a 10 times error change my decision? If not, you're done, so stop calculating.
Peak multipliers
Step 4 needs more care than it usually gets, because you almost never design against the average.
For an ordinary consumer product, two multipliers stack:
- The busiest hour carries about 2 to 3 times the traffic of an average hour, because people sleep.
- Inside that hour, the busiest second is about 2 times the hourly average, because requests arrive in bursts.
If you multiply those, you get the default to memorise: peak load is about 5 times average load. Say "I'll assume a five times peak" out loud. The interviewer will either accept it or correct it, and both outcomes are good for you.
But 5 is a property of the product, not a law of nature. Some products are far spikier:
- Ticket sales for a popular event: the first 60 seconds can carry more traffic than the rest of the month. Multipliers of 1,000 happen.
- Live sport, election results, a season finale: tens of times the average, packed into a few minutes.
- Payroll, billing, batch reports: everything happens in one hour on one day, and the other 29 days are idle.
From users to load
Pick a requests-per-second number that sounds about right
"Let's say 1 million requests per second." Candidates say this all the time. The number is usually wrong by a factor of a hundred, and every number calculated from it is wrong by the same factor.
A million requests per second is 86 billion requests a day. Google handles roughly 13.7 billion searches a day. So a number picked because it sounded big enough claims six times the traffic of Google search, for a product that doesn't exist yet.
The problem isn't that the guess is high. The problem is that nobody can tell it's high, because it wasn't worked out from anything.
Build it up from users, and state every assumption
Start from daily active users. Multiply by actions per user per day, divide by 100,000, and multiply by the peak factor. Say each input as you use it, so the interviewer can stop you at the one they disagree with.
The input that needs the most care is actions per user per day, because you're inventing it. Base it on real behaviour, not on a round number that feels safe:
- A social app user opens it 5 to 15 times a day and scrolls through tens of items per session.
- A messaging user sends 20 to 50 messages a day.
- A ride-hailing user takes well under one trip a day on average, even though active users take several a week.
- A payments user makes a handful of transactions a week, not a day.
These differ by three orders of magnitude between products. So you can't guess this number. You have to reason about it.
Ask whether request rate is even the resource that runs out
Work through the chain and get the number. Then ask whether you calculated the right thing at all.
Request rate is the easiest load to compute, so everyone computes it, and very often it isn't what breaks. Take a chat product. The request rate is modest, but the number of connections held open at the same time is enormous, and those two numbers size different parts of the system. Or take a photo feed. The request rate is unremarkable, and the cost of sending bytes out is what threatens the business.
So once you have your requests per second, go through the short list of things that run out. Ask which one runs out first: bytes sent to users, contention on a single hot key, open connections, write throughput, storage cost, memory, then CPU. In real systems CPU is close to last, and request rate mostly tells you about CPU. The resource that runs out first is the binding resource. Name it and design around it, and the estimate becomes an architecture.
Four estimates, start to finish
The first three take about 90 seconds each on a whiteboard. The fourth is a different kind of estimate and takes a little longer. Each one ends in a decision, and each one shows a different way the obvious calculation misleads you.
1. A photo sharing app: the bill is not where you think
The setup: 10 million daily users, each uploading 2 photos a day and viewing 100 photos a day.
UPLOADS
10M users × 2 photos = 20M photos/day
20M / 100,000 s = 200 uploads/sec average
× 5 peak = 1,000 uploads/sec peak
STORAGE, if we keep the phone original
original 4 MB + display 500 KB + thumbnails 50 KB
≈ 4.55 MB per photo
20M × 4.55 MB = 91 TB/day
× 365 = 33 PB in year one
33e6 GB × $0.023 ≈ $760,000/month, and rising
STORAGE, if we discard the original after processing
550 KB per photo
20M × 550 KB = 11 TB/day = 4 PB/year
4e6 GB × $0.023 ≈ $92,000/month
─────────────────────────────────────────────────────
One product decision: 8× the storage bill.
DELIVERY
10M users × 100 views = 1 billion views/day
1e9 × 500 KB = 500 TB/day
500,000 GB × $0.09 = $45,000/day
≈ $1,350,000/month
─────────────────────────────────────────────────────
Delivery costs 15× storage. It is the whole problem.Now look at what the arithmetic decided. The upload rate is 1,000 per second at peak. That's comfortable and not worth discussing further. The storage volume is large, but storage is cheap. Delivery costs fifteen times as much as storage. That uses the $0.09 list rate. At 15 PB a month, volume pricing is nearer $0.05 per GB, and delivery still costs about eight times as much as storage. So the interesting engineering in a photo app isn't in the database at all.
Two decisions follow:
Don't keep the phone original unless the product needs it. It makes the storage bill eight times bigger, for a file users almost never look at. If you do keep originals, move them to cold storage after a month. Cold storage is slower to read and costs about a sixth as much.
Put a CDN in front of everything, and then shrink the images. A content delivery network (CDN) is a set of servers near your users that keep copies of your files. It cuts what you pay, because delivery from its cache is cheaper than delivery from your storage, and moving data from S3 into Amazon's own CDN is free. But delivery is still the biggest cost. The image itself makes a bigger difference. If you serve a 200 KB image instead of a 500 KB one, the largest line on your bill drops by 60 percent. No amount of database work would do that.
2. A chat system: connections are not requests
The setup: 100 million daily users, each sending 40 messages a day. One in five messages goes to a group, and groups average 20 people.
MESSAGES SENT
100M users × 40 = 4B messages/day
4e9 / 100,000 s = 40,000 sends/sec average
× 5 peak = 200,000 sends/sec peak
MESSAGES DELIVERED (the number people forget)
0.8 direct × 1 recipient = 0.8
0.2 group × 20 recipients = 4.0
= 4.8 deliveries per send
4e9 × 4.8 = 19.2B deliveries/day
= 192,000/sec average
= 960,000/sec peak
─────────────────────────────────────────────────────
Fanout multiplied the real load by 4.8×.
CONNECTIONS HELD OPEN
if a user is connected ~2 hours of the day
100M × (2 / 24) = 8.3M at the same time
× 2.5 for the busiest hour ≈ 20M concurrent (peak)
at ~500k connections/server = ~40 servers, just to hold sockets
at ~30 KB memory each = ~600 GB of RAM, fleet-wide
STORAGE
4e9 × 500 B = 2 TB/day = 730 TB/yearThere are three numbers here, and each one sizes a different part of the system.
The write rate is unremarkable. At peak it's 200,000 writes per second. A wide-column store such as Cassandra does about 20,000 per node, so that's about ten nodes. This isn't the hard part. If you say so quickly, you have more time for the parts that are.
Fanout is where the load is. Fanout means one message being delivered to many people. Delivering is 4.8 times sending, and that multiplier comes entirely from one assumption about group size. If groups averaged 200 people instead of 20, the multiplier would be 40, and the delivery load would be eight times higher. This is the input to question. A good interviewer is waiting to see whether you notice that the group size assumption drives the whole estimate.
Connections are a separate resource from requests. At peak this system holds about 20 million connections open, while it handles only 200,000 sends a second. Those two facts size different things. The connection count decides how many gateway servers you run, the servers that hold users' connections, and how much memory they need. The operation rate decides your storage tier. If a candidate computes only requests per second, they haven't sized the part that makes a chat system different.
3. Does it fit on one machine?
The setup is a typical interview problem: one billion records, 400 bytes each, and 10,000 lookups per second.
DATA 1e9 records × 400 B = 400 GB A single server takes 1 to 2 TB of RAM. → The entire dataset fits in memory. Twice over. READS 10,000 lookups/sec One in-memory store handles ~100,000/sec. → 10% of one machine. WRITES suppose 1,000 writes/sec One data-centre NVMe drive does ~100,000 to 200,000 random writes/sec. → about 1% of one drive. ───────────────────────────────────────────────────── Correct answer: one machine, plus a replica so you can survive losing it.
Candidates skip this estimate, because "one server" feels like a wrong answer to a system design question. It's often the right one. One billion records and 10,000 queries per second fit comfortably on hardware you could rent for a few hundred dollars a month.
Divide the total by the per-node capacity and use that many nodes
Load divided by capacity gives you three nodes, so you run three nodes.
This ignores everything else that decides a fleet size. There's no room for a traffic spike, for a node to fail, or for taking a machine out for an upgrade. When one of the three dies, the two survivors are at 150 percent of capacity, so they die too.
Size for peak, then leave room to lose a node
Use peak load, not average. Aim for about 50 to 70 percent utilisation at that peak. Then add enough machines that losing any one of them still leaves you under 100 percent.
That last rule sets a minimum that has nothing to do with load. If you must survive one failure, you can't run fewer than two machines. If you want to survive one failure while a second machine is down for maintenance, you can't run fewer than three. For small fleets, the failure arithmetic decides the size, not the capacity arithmetic.
Work backwards from the failure you are willing to accept
Turn the question around. Don't ask how many machines the load needs. Ask what happens when one machine is lost, and let that set the number.
This can move the answer in either direction. Sometimes it means more machines than capacity needs. Take a service that can't lose 50 percent of its capacity for 10 minutes. It needs more machines than the load justifies, so that losing any one of them is a small fraction of the whole. Sometimes it means fewer. An internal tool that can be down for an hour should be one machine. Running five costs five times the money and gives you five machines to maintain.
It also gives you the real reason to split a system into shards, separate machines that each hold part of the data. You shard because one machine's failure has become unacceptable, not because its capacity ran out. Say that out loud. It turns sharding from a way to add capacity into a decision about blast radius, which is how much of the system one failure can take down. It's the kind of statement that comes from having run a system in production.
4. A latency budget: where did the 200 milliseconds go?
Everything so far has estimated capacity. You estimate latency differently, and the difference catches people out.
The setup: a page must respond in under 200 milliseconds at p99, which means 99 requests in every 100 must be that fast. The user is in Mumbai, and so are your servers.
DNS lookup (usually already cached) 0 ms
TCP + TLS 1.3 handshake, 2 round trips 20 ms
request travels to the datacenter 5 ms
load balancer and gateway 2 ms
─── inside the datacenter ───
auth check, cache hit 1 ms
3 database queries, one after another
3 × 8 ms 24 ms
build the response 2 ms
response travels back 5 ms
─────────────────────────────────────────────────
total 59 ms
budget left over 141 msSo there's plenty of room and nothing to worry about. But the budget was for p99, and every number in that column was a typical case. A p99 is not the sum of typical cases.
Here's why. Suppose each of those three database queries usually takes 8 milliseconds but has a p99 of 40 milliseconds, and suppose the three are independent. The chance that all three come back quickly is 0.99 × 0.99 × 0.99, which is 0.970. So three percent of your requests contain at least one slow query. That means the request's p97 is already past 40 milliseconds. To hit a p99 for the whole request, each query has to be fast at roughly its p99.7, not its p99.
Now scale that up. This is the part that changes designs.
One backend is slow 1% of the time.
A request waits for all N backends, so it is slow if any one is.
P(slow) = 1 − 0.99^N
N = 1 → 1.0%
N = 10 → 9.6%
N = 50 → 39.5%
N = 100 → 63.4%
─────────────────────────────────────────────────
At a fanout of 100, a one-in-a-hundred delay
becomes the majority experience.Dean and Barroso named this "the tail at scale", and they used exactly this example. The tail is the slowest few percent of requests. If a service asks 100 machines for an answer and 1 percent of those replies take over a second, then 63 percent of user requests take over a second. Nothing is broken. Every machine is meeting its target. The system still feels slow to most people who use it.
Four decisions come out of this, and the budget table alone shows none of them:
Count your sequential steps and reduce them. Three database calls in a row are three chances to be slow, and their delays add up. If two of them run at the same time, they're still two chances to be slow, but you wait for the slower of the pair instead of the sum of both.
Set a timeout on every call, and set it below your budget. A call with no deadline can use up your whole budget by itself. With a timeout, the longest a call can take is a number you know, and you can plan around it.
Watch how wide the fanout is. If a design asks fifty services for a piece of the answer, no single service can fix its tail. So keep fanout narrow. Where you can't, return a partial answer instead of waiting for the last reply.
Budget the p99, not the average. Write the p99 next to each hop instead of the typical figure, and add those up. The total will look alarming, and that's the version to plan with.
Where estimates go wrong
Here are seven failure modes, roughly in order of how often they show up in real interviews.
1. The multipliers you forgot
You compute the size of your data, the payload, and stop there. But the payload isn't all that lands on disk.
Each layer multiplies:
- Record overhead, roughly 1.2 times. Every row carries headers, timestamps, null markers and padding.
- Secondary indexes, roughly 1.3 times, and more if you index heavily. An index on a field is a second copy of that field plus a pointer.
- Replication, exactly 3 times in most default setups. It's the biggest one, and the one people leave out.
- Free space, roughly 1.4 times. Some databases compact, which means they rewrite their files to clear out old data. They need room to write the new copy before deleting the old one, and a disk that is 95 percent full is about to cause an incident.
If you multiply them, you get about 6.5. So the rule is: plan for five to eight times your raw payload. If a candidate computes 500 GB and says "that fits on one disk", they've forgotten that it's about 3 TB.
Compression pushes the other way. Text and JSON compress by 3 to 10 times, so for text-heavy data, compression roughly cancels the multiplier stack. Images, video and audio files are already compressed, so compressing them again gains nothing, and the whole stack applies. So the correction depends on what you're storing. Say which case you're in.
Rows times bytes per row
"One billion rows at 400 bytes is 400 GB." The arithmetic is right, and the answer is wrong by roughly seven times. That's enough to turn "one machine" into "a cluster" and change your whole design.
Apply the stack, and state the retention window
Multiply the payload by overhead, indexes and replication, and allow for free space. Then add the thing that's usually missing: how long you keep it.
A storage estimate with no time period is meaningless, because storage is the one resource that only grows. "2 TB per day" isn't an answer. "2 TB per day, kept for two years, so 1.5 PB at steady state" is. Steady state is the size where old data is deleted as fast as new data arrives. That number forces you to have a retention policy, a rule for how long data is kept. That's a product decision, and the interviewer probably wants to hear you raise it.
Price it, then ask whether the data should exist
Convert the storage figure into money per month, and put it next to what the feature earns.
Here estimation stops being about sizing. Say keeping raw events for two years costs $400,000 a month. The only thing anyone does with data older than 90 days is one quarterly report. Then the answer isn't a bigger cluster. It's a 90-day retention window with monthly rollups, which are summaries that keep the totals and drop the individual events. That costs a fiftieth as much and serves the same need.
The most useful result of a storage estimate is often a decision to store less. The growth rate also matters more than the current size. A system at 10 TB growing 50 percent a quarter is a more urgent problem than one at 100 TB that's flat. If you estimate at a single point in time, the 100 TB system looks like the bigger problem.
2. Designing for the average
The average tells you what a system costs. The peak tells you whether it survives. These are different questions, and the average answers only one of them.
This mistake has a second form, and it's harder to spot. At scale, rare events stop being rare.
At 10,000 requests/sec: 1 in 100 (p99) → 100/sec → 8.6M/day 1 in 1,000 (p99.9) → 10/sec → 864,000/day 1 in 10,000 (p99.99) → 1/sec → 86,400/day 1 in a million → 0.01/sec → 864/day At 1 billion requests/day, a one-in-a-million event happens about 1,000 times a day.
Those numbers change how you read a latency requirement. A p99 of 200 milliseconds at 10,000 requests per second means 8.6 million slow requests every day. If each one belongs to a different person, you've annoyed 8.6 million people while meeting your target.
They also change how you think about bugs. Take a race condition, a bug that only shows up when two operations happen in an unlucky order, and say it needs a one-in-a-million coincidence. In a system doing a billion requests a day, that isn't a theoretical concern. It happens about 1,000 times a day, and it will page someone over and over before anyone works out why.
3. Rounding drift and false precision
These are two opposite errors, and you can avoid both.
Rounding drift happens when you round in the same direction again and again. If you round five inputs up by 20 percent each, your answer is 2.5 times too high. The fix is to notice which way you're pushing and alternate on purpose. Or round in one direction every time, and say so: "I've rounded everything up, so treat this as an upper bound."
False precision is announcing 1,157.4 requests per second when your user count was "about 100 million". An answer can't be more precise than the guess it came from. Write 1,000, or "about a thousand". The extra digits don't help. Worse, they suggest you don't know where your numbers came from.
4. Inventing the per-user number
Every capacity estimate contains one number nobody knows: how much a single user does per day. It's the weakest input in the chain, and people usually pick it because it's round.
Base it on something instead, and say where it comes from, even roughly: "I open my messaging app maybe thirty times a day and send perhaps forty messages, so let me use forty." That isn't rigorous, but it comes from a number you can name, and an interviewer can push back on it. A number with no source can't be discussed. It can only be accepted or rejected.
Then test how much it matters. If doubling it doesn't change your design, it was never worth arguing about. If doubling it moves you from one database to a cluster, the whole design depends on this number, and it's worth 2 minutes of conversation.
5. Not checking against the real world
If you haven't sanity-checked an estimate, you have no reason to trust it. Keep a few hard limits in mind and compare against them.
- World population is about 8 billion. No product has more users than that, and no consumer product has ever had more than about 4 billion. If an estimate gives 50 billion daily users, it has an arithmetic mistake in it.
- Google search handles roughly 13.7 billion queries a day. That follows from Google's own public figure of over 5 trillion a year, and it's about 160,000 queries per second. If your estimate for a startup's product is higher than that, you've designed something larger than Google search by accident.
- There are 31.5 million seconds in a year. A system running at 1 million requests per second handles 31.5 trillion requests a year, six times all of Google search. Very few systems on earth are in that range.
6. Estimating the wrong resource
Requests per second is the easiest thing to compute, so it's what everyone computes. It's rarely what breaks.
These are the things that run out, in rough order of how often they cause trouble:
- Bytes sent to users, because they're the biggest line on the bill.
- Contention on one key, which means many requests competing for the same key. A single viral item can send a huge share of all traffic to one partition, the machine that holds its key, and adding total capacity doesn't help.
- Open connections, which size a system independently of its request rate.
- Write throughput, which is far harder to scale than reads, because a cache can't absorb writes.
- Storage cost, especially with a long retention window.
- Memory, usually because the working set, the data read often enough to be worth caching, outgrew what the cache can hold.
- CPU, which is almost always last.
Averages hide the second item completely. Say a system does 200,000 writes per second across ten million keys. That averages 0.02 writes per second per key, which is nothing. If the writes are spread out, the system is fine. If one key takes most of them, the system is broken, and the average per key is the same in both cases.
7. The estimate that should stop the project
This is the most useful calculation in this article.
Sometimes the arithmetic tells you the thing shouldn't be built. Take a free feature that stores 4 MB per user per day for 100 million users. It takes on 400 TB a day. That's 146 PB in a year, and about $3.4 million a month in storage alone. The bill grows every month, and the feature earns nothing. No architecture fixes that. The number is asking you to cap what's kept, to charge for it, or not to ship it.
This is why free tiers have limits, why uploaded photos get shrunk and the originals thrown away, and why "unlimited storage" offers eventually stop being unlimited. In each case someone did this arithmetic, and the product changed because of it.
If you memorise nothing else
These twelve facts cover most of the estimation you'll ever be asked to do out loud.
| A day has 100,000 seconds | close enough to 86,400 |
| 1 million a day is a dozen a second | move the decimal for everything else |
| A year has π × 10^7 seconds | 31.4 million, and it is right to 0.4% |
| A 30-day month has 43,200 minutes | so three nines is 43 minutes of downtime |
| Peak is about 5× average | 2 to 3× for the hour, 2× for the second |
| 1 million records of 1 KB is 1 GB | a billion of them is 1 TB |
| Plan for 5 to 8× your payload on disk | overhead, indexes, replication, free space |
| 1 Gbps is 125 MB per second | bits, not bytes, and it costs you 8× |
| Memory is 1,000× faster than an SSD | and an SSD is 1,000× faster than a fibre crossing |
| 100 km of distance is 1 ms of round trip | physics, not engineering |
| Delivering 1 GB costs 4 months of storing it | so count the bytes going out first |
| Google search is ~160,000 queries/sec | if your estimate beats that, check it again |
What is expected at each level
Mid-level
Get the arithmetic right and show your inputs.
You should convert daily users into requests per second without hesitating. You should know that peak is several times average, get the data size to the right order of magnitude, and know that replication multiplies storage. Knowing the rough capacity of one database node is a strong signal at this level, because most candidates don't.
You aren't expected to price anything, or to question whether request rate is the resource that runs out first. You are expected to state your assumptions when asked, so that no number appears from nowhere.
Senior
The numbers should visibly drive the design, and three habits should be automatic.
Every estimate ends in a decision. After each calculation, say what it rules in or out. If an estimate is followed by silence, that's the clearest sign the numbers were only for show.
Assumptions are announced, not buried. This matters most for the peak multiplier and the per-user activity rate. Those two are guesses, and every number after them inherits them.
The multiplier stack is applied without being prompted. That means overhead, indexes, replication, free space and the retention window. Computing the raw payload and calling it storage is the most common senior-level miss here.
You should also be comfortable saying "this fits on one machine" when it does, and giving the real reason to split it up anyway.
Staff+
The shift is from computing numbers to choosing which numbers matter.
Identify the binding resource before doing arithmetic on it. Request rate is the easiest thing to compute and usually not what breaks. The staff move is to name bytes sent out, connection count or contention on a single key, and then estimate that instead.
Put a price on it. Convert the sizing into money per month and compare it with what the feature is worth. Very few candidates mention cost, and cost kills more designs than latency does.
Size fleets from the failure you'll tolerate, not from load divided by what one machine can do. Be able to explain why that sometimes means more machines than the load needs, and sometimes fewer.
Use the estimate to cut scope. The best outcome of a calculation is often a smaller system: a shorter retention window, a sampled dataset, a smaller image, a feature that doesn't get built. If you're willing to reach that conclusion, the rest of your numbers are credible.
Know when to stop. Ask whether a 10 times error would change the decision. If it wouldn't, the calculation is finished, and more of it wastes interview time.
Sources
- Jeff Dean, "Latency Numbers Every Programmer Should Know", from his Google talks around 2009 and widely republished since. Treat the ratios as durable and the absolute values as dated, particularly the storage figures. Colin Scott's interactive version extrapolates the same table forward by year, which is a useful way to see which steps moved and which did not.
- Google's own figure of more than 5 trillion searches a year, first disclosed in a March 2025 blog post and attributed to internal data from January 2025, as reported by Search Engine Land. It was the first official update since 2016, when Google confirmed more than 2 trillion a year. Five trillion works out to roughly 13.7 billion a day and about 160,000 per second. Widely quoted third-party figures range from 8.5 to 16.4 billion a day and none are confirmed by Google, so the annual number is the one to cite.
- Amazon, S3 pricing. The reference points used here are $0.023 per GB per month for standard storage in US East. Egress is $0.09 per GB for data transferred out to the internet, tiering down to about $0.05 per GB at high volume. Check current rates before quoting them, but the roughly four-to-one ratio between one month of storage and one delivery has held for years.
- Jeffrey Dean and Luiz André Barroso, "The Tail at Scale", Communications of the ACM, February 2013. The source of the fanout arithmetic used above, including the example of a service that queries 100 machines where a 1 percent chance of a one-second reply produces a one-second experience for 63 percent of users.
- M2 Optics, Calculating Optical Fiber Latency. Standard single-mode fibre carries light at about 204,000 km per second, which is 4.9 microseconds per kilometre, or very close to 1 millisecond of round trip per 100 km.