Have a question or want an offer? Join our Discord
Type something to search...

Back-of-the-Envelope Estimation for System Design Interviews

Back-of-the-Envelope Estimation for System Design Interviews

Back-of-the-envelope estimation (rough math on the size of a system, done in your head or on the whiteboard in a few minutes) is the step of a system design interview that candidates argue about most. Some interviewers say skip it. Some say a design without it is handwaving. Both camps are right about something, and once you see what, the step becomes short and useful instead of a ritual.

This post covers the disagreement, the one rule that settles it, the numbers worth memorising, and one photo sharing app estimated at three scales, with the part of the design each number picks. If you want the full 45-minute shape this step sits inside, read the system design interview framework first.

Why the advice contradicts itself

Read a few threads and you get opposite instructions.

  • In a 2025 Blind poll on whether to do the math at all, the person asking calls it stupid, an Amazon engineer replies that it is “a waste of time”, and a Meta engineer answers that a design that never says whether it needs 5 or 50,000 hosts is handwaving and “not a valid approach” (Blind, June 2025).
  • Interviewer Calvin Barker sits firmly in the second camp. Barker’s rule is that calculations “should always directly influence your design”, and the post lists skipping them as a common failure (Calvin Barker, December 2025).
  • Hello Interview’s delivery framework takes the middle path: estimate when the number changes the design, skip it when it does not (Hello Interview).
  • interviewing.io adds the failure nobody else names: candidates write a number such as a latency target on the board, then forget it, and the drawing that follows could never meet it (interviewing.io, November 2026).

Put those together and the disagreement is not about math. It is about pointless math. Nobody defends five minutes of storage arithmetic that changes nothing. Nobody defends a design that cannot say whether it needs one database or a hundred.

The rule: calculate only the number that picks a component

Before you compute anything, ask which part of the design the number would decide. If the answer is “none”, skip it and say so. If the answer is “whether I need a cache” or “whether one database is enough”, compute it and say the conclusion out loud.

In practice there are three numbers that pick components, and each one has a short list of things it can decide.

Decision flow from number to component: requests a second decide between one database and caching, replicas and sharding; bytes a second decide between one server and a CDN with more servers; bytes a day decide between local disk and object storage with cold tiers

  • Requests per second decides how many app servers you need, whether one database copes, and whether reads need a cache or replicas (copies of the database that serve reads while the main copy takes the writes).
  • Bytes per second (bandwidth) decides whether one server’s network link is enough, and whether files should come from a CDN (a network of servers that keeps copies of files close to users, AWS).
  • Bytes per day (storage growth) decides whether data fits on the database host or needs object storage (a service built for large files, such as S3, AWS), and whether old data should move to cheaper tiers.

Latency budgets are the fourth, and they work differently: they rule options out rather than pick them in. More on that below.

The numbers worth memorising

You need fewer than you think. Here is the whole list.

Converting units

  • A day is 86,400 seconds. Round it to 100,000 for mental math. To turn “per day” into “per second”, divide by 100,000, which means dropping five zeros.
  • A month is about 2.5 million seconds. A year is about 30 million.
  • Peak is two to three times average. This is a rule of thumb used in most interview guides, not a measured law. Say which multiplier you used.
  • Sizes go up by a thousand each step: kilobyte, megabyte, gigabyte, terabyte, petabyte. A million one-kilobyte rows is a gigabyte. A million one-megabyte photos is a terabyte.
  • Bits and bytes: network speeds are quoted in bits a second, storage in bytes. Multiply bytes by 8 to get bits. 100 MB a second is 0.8 Gbit a second.

Latency

These come from Jeff Dean’s well-known table, with figures from around 2012 (latency numbers gist):

  • Main memory reference: 100 nanoseconds.
  • Send 1 KB over a 1 Gbps network: 10 microseconds.
  • Read 1 MB from memory: 250 microseconds.
  • Round trip inside one data centre: 500 microseconds.
  • Read 1 MB from SSD: 1 millisecond.
  • Disk seek: 10 milliseconds.
  • Round trip from California to the Netherlands and back: 150 milliseconds.

Storage got faster since then. An updated version of the table puts an SSD random read at about 16 microseconds and a disk seek at about 3 milliseconds (Colin Scott’s interactive table). Network round trips did not change, because the speed of light did not. That is the one row to remember above all: anything that crosses an ocean costs about 150 milliseconds there and back.

Throughput

What one machine of each kind handles, with a source for each:

  • PostgreSQL: about 4,700 to 6,200 mixed read-write transactions a second on 4 virtual CPUs, and 16,900 to 25,400 on 16, in a 2025 benchmark (ClickHouse, 2025). Simple reads go much higher: MySQL 8.0 passed a million point lookups a second on a 48-core server (MySQL benchmarks).
  • Redis (an in-memory key-value store): about 180,000 simple writes a second without batching, about 1.5 million with batching (Redis docs). The same page points out that a 4 KB value at 100,000 requests a second already needs 3.2 Gbit a second, so the network often runs out before the CPU does.
  • Kafka (a durable, replayable message log): about 200 MB a second per broker in Confluent’s 2020 test (Confluent).
  • An application server: interview guides use 1,000 to 10,000 requests a second per server. That is a convention, not a benchmark. Real servers serving tiny responses can do over a million (TechEmpower), but your app does real work per request.

Cost

  • Object storage: S3 Standard costs about $0.023 per gigabyte per month in the US East region (AWS). Cloudflare R2 is about $0.015 with free egress, meaning no charge for data sent out (Cloudflare). Backblaze B2 is about $0.007 (Backblaze).

That is the whole list. Write the unit conversions on a card. Know the latency rows to the nearest power of ten. Know that one relational database does thousands of writes a second, not millions.

One app, three scales

The prompt: “Design a photo sharing app. Users upload photos and scroll a feed of photos from people they follow.”

The assumptions, said out loud once and then reused at every scale:

  • Each daily user uploads one photo a day.
  • Each daily user views 100 photos a day in the feed.
  • One upload, stored with its resized versions, takes about 1 MB.
  • One photo shown in the feed is a display-size version of about 65 KB.
  • Peak is three times average.

The point of the exercise is not the numbers. It is to watch the same four lines of arithmetic pick a different design as the user count grows.

10,000 daily users

The arithmetic:

  • Uploads: 10,000 a day, divided by 100,000 seconds, is 0.1 a second.
  • Feed photo views: 10,000 × 100 = 1 million a day, which is 10 a second on average and 30 at peak.
  • Bandwidth at peak: 30 × 65 KB is about 2 MB a second, or 16 Mbit a second.
  • Storage: 10,000 × 1 MB = 10 GB a day, about 3.6 TB a year.

At 10,000 daily users: one app server, one database for metadata, and a disk or a single storage bucket for 10 GB of photos a day

What the numbers pick: one app server and one database. Thirty requests a second is nothing for either. Sixteen megabits a second fits on any server’s network link. Ten gigabytes a day could sit on a disk, but a single storage bucket is simpler to run and costs little: a year of photos at $0.023 per GB-month is under $100 a month by the end of the year.

What to say: “At ten thousand users everything fits on one server and one database. I would still put the photos in a storage bucket rather than on the app server’s disk, so the server stays replaceable. Nothing here needs a cache.”

1 million daily users

The arithmetic, with two zeros added:

  • Uploads: 1 million a day is 10 a second.
  • Feed photo views: 100 million a day, 1,000 a second on average, 3,000 at peak.
  • Bandwidth at peak: 3,000 × 65 KB is about 200 MB a second, or 1.6 Gbit a second.
  • Storage: 1 TB a day, about 365 TB a year.

At 1 million daily users: a load balancer in front of a few stateless app servers, a cache for hot feed pages and photo metadata, a primary database for writes with read replicas, and object storage for 1 TB of photos a day

What the numbers pick:

  • 3,000 requests a second at peak is too much for one app server by the usual convention, so you need a load balancer and a few stateless servers (servers that keep nothing between requests, so any one can serve anyone).
  • 3,000 reads a second against the database is inside what one PostgreSQL instance handles, but close enough to the 4,700 to 6,200 benchmark that you would not run it at that edge. Feed reads are repetitive, so a cache for hot feed pages and photo metadata takes most of the load, and read replicas take the rest.
  • 10 uploads a second is a trivial write rate. One primary database is fine for writes.
  • 1.6 Gbit a second of photo traffic is a meaningful share of a server’s network link, and it is pure file serving. That belongs in object storage behind a CDN, not on the app servers.
  • 365 TB a year at $0.023 per GB-month is about $8,400 a month by the end of the first year, and growing every month. That is the first time cost becomes a design topic.

What to say: “At a million users, reads are the pressure, not writes. I add a load balancer and a few app servers, a cache in front of the database for feed pages, read replicas behind it, and serve photos from object storage through a CDN. Writes are ten a second, so one primary is fine.”

100 million daily users

The arithmetic, two more zeros:

  • Uploads: 100 million a day, 1,000 a second on average, 3,000 at peak.
  • Feed photo views: 10 billion a day, 100,000 a second on average, 300,000 at peak.
  • Bandwidth at peak: 300,000 × 65 KB is about 20 GB a second, or 160 Gbit a second.
  • Storage: 100 TB a day, about 36 PB a year. Database rows: about 100 million new photo rows a day.

At 100 million daily users: a CDN serves the photos, load balancers spread traffic over many app servers, a cache cluster absorbs reads, the database is sharded by user id, a queue feeds workers that resize photos and fan posts out to feeds, and object storage takes 100 TB a day

What the numbers pick:

  • 300,000 feed reads a second is the same order as the 300,000 home timeline reads a second Twitter described in 2012 (Raffi Krikorian, QCon 2012). At that rate you precompute feeds instead of building them on every read, which is the fan-out deep dive in Design Instagram.
  • 3,000 writes a second at peak, plus 100 million new rows a day, is where one primary database stops being comfortable. You shard (split the data across several databases), usually by user id, so one user’s photos live together.
  • 160 Gbit a second of photos is far beyond any one server. The CDN is now the main part of the design for reads, the same way it is for video in Design Netflix.
  • Resizing 3,000 uploads a second is slow work that should not hold the upload request open, so a queue and workers take it.
  • 36 PB a year at $0.023 per GB-month would be over $800,000 a month by the end of the year. Now storage tiers matter: old photos that are rarely viewed move to cheaper storage classes, and you might question whether every resized version needs keeping.

What to say: “At a hundred million users the design changes shape. Feeds are precomputed, the database is sharded by user id, uploads go through a queue to resize workers, and the CDN carries almost all the bytes. Storage grows by a hundred terabytes a day, so I would plan cold tiers for old photos from the start.”

What changed, and what did not

Look at the three designs side by side and one thing stands out: the write rate was never the problem until the last scale. At 10,000 and 1 million users, every hard decision came from reads and bandwidth. That is true of most consumer apps, and it is why “is this read-heavy or write-heavy?” is the first question after the user count.

The arithmetic itself never got harder. It was four multiplications, repeated with two more zeros each time. That is the skill interviewers want to see: not precision, but the habit of turning a user count into the three numbers that pick components, quickly.

Latency: the number that rules things out

Latency budgets (how long a request may take) work differently from the other numbers. They do not pick a component. They rule options out.

The classic mistake, described by interviewing.io, is writing “p99 under 10 ms” (99 out of 100 requests finish within 10 milliseconds) at minute three and then, at minute twenty, drawing a database write that waits for a copy in another region (interviewing.io, November 2026). A cross-ocean round trip alone is about 150 ms. The budget and the drawing cannot both be true.

The fix is to set a budget only when it decides something, and then check every box against it:

  • Feed read under 200 ms at p99: fine for a cache hit in the same region (half a millisecond per round trip inside a data centre), fine for a database read with an index, not fine for anything that waits on another region.
  • Upload acknowledged under a second: fine if the photo goes to storage and the resize is queued. Not fine if the request waits for resizing.
  • Typeahead under 100 ms: Facebook’s typeahead team treated slower results as wrong (Facebook Engineering, 2010), which is why its results are precomputed and cached.

What to say out loud

The words matter as much as the numbers. Say the conclusion, not the arithmetic.

  • Before computing: “The number that decides the database is the write rate, so let me get that one. I will skip storage unless it changes something.”
  • After computing: “About 3,000 reads a second at peak. That is inside one database, but close enough to its limit that I would put a cache in front.”
  • When skipping: “Storage is about a terabyte a day, which is ordinary for object storage, so it does not change the design. I will move on.”
  • When the interviewer changes the scale: “A hundred times more users moves reads from 3,000 to 300,000 a second. That is where I precompute feeds. Writes go to 3,000 a second, which is where I shard.”
  • Stating an assumption: “I am assuming peak is three times average. If this is a sale event or a live broadcast, I would use a bigger multiplier.”

Notice that every line ends in a decision. A number that does not end in a decision should not have been said.

Common mistakes

  • Mixing bits and bytes. Network speeds are in bits, storage in bytes. 200 MB a second is 1.6 Gbit a second, not 200 Mbit.
  • Forgetting peak. Designing for the daily average means the system falls over every evening. Say your multiplier.
  • Computing storage nobody asked about. Five minutes on storage for a rate limiter wastes time and signals you are running a script. The mistakes guide lists “followed a script” as one of the eight feedback phrases that sink a round.
  • False precision. “11,574 requests a second” suggests you think the inputs were exact. “About 12,000” is honest. Round to one or two significant figures.
  • Dropping zeros. When the numbers get large, write them in thousands, millions and billions on the board, not in long strings of digits. Most arithmetic errors are a lost zero.
  • Never using the number again. If you computed 3,000 reads a second, point at it when you add the cache. That is the “architectural coherence” interviewers check, meaning the early numbers match the later drawing.

Practice

Take any prompt from the 20 system design interview questions and do only this step, three times, at three user counts. Time yourself: under three minutes each. Then check which component each number picked. A few to start with:

  • A URL shortener at 100 million new links a day. The number that matters is reads, at about 100 reads per write.
  • A rate limiter for 10 million active keys. The number that matters is memory per counter.
  • A payment system at a million payments a day. The number that matters is how small the rate is: about 12 a second, so the hard part is correctness, not scale.

The cheat sheet has these numbers on one page for the night before.

How InterviewStorm helps

InterviewStorm is a practice partner for this step and the rest of the design round. Describe a prompt in a mock call and it gives back the estimate with the arithmetic shown, the component each number picks, an architecture diagram it draws itself, the request flow, the schema and APIs, the scaling moves, and the trade-offs. Run the same prompt at three user counts and compare its numbers with yours, so a dropped zero shows up in practice instead of in the interview. See the system design feature.

Most companies do not allow AI help during the design round itself, and interviewers say they watch for it. Use it where the employer allows it, and to practise everywhere else. Follow each employer’s interview rules. Do not use InterviewStorm in proctored tests, exams, or anywhere AI help is not allowed.

The free trial is 20 minutes in total, up to 15 minutes per session, with no credit card. Try it free.

For the rest of the loop, read the guides on coding interviews and the STAR method.

Share Articles:

Similar Posts

AI System Design Interview Questions: LLM Chat, RAG, Agents

AI System Design Interview Questions: LL ...

Three AI system design questions in the 45-minute shape: an LLM chat ass ...

Can You Use AI in a System Design Interview? What Companies Say

Can You Use AI in a System Design Interv ...

In most design rounds, no. What Amazon, Meta, Anthropic and interviewers ...

Design a Payment System: System Design Interview Walkthrough

Design a Payment System: System Design I ...

A 45-minute walkthrough of the payment system interview question: idempo ...