Back of the Envelope Estimation for System Design Interviews
The numbers to know, the five formulas for QPS, storage, bandwidth, cache and servers, and a full worked example you can say out loud in an interview.
New11 min read

Back of the envelope estimation is the quick arithmetic you do at the start of a system design: how many requests a second, how much storage, how much bandwidth, how big a cache, how many servers. It takes about five minutes, and it decides whether your design needs a cache, a queue or a hundred shards.
This guide is for developers preparing for system design interviews, and for anyone who has frozen when an interviewer said "so, how big is this?". You will learn the few numbers worth knowing by heart, the five formulas that cover almost every case, how to round an exact result into an "interview number", and a full worked example with the URL shortener numbers from Book 2 of the TechTribers Guide Series. Every estimate quoted here was computed by the book's companion scripts, not typed by hand.
In this guide
- Why estimate at all
- The numbers to know
- The five formulas
- Rounding to an interview number
- Worked example: a URL shortener
- How to say it in the interview
- Common mistakes
From the book: this guide is based on Part 1.3 of System Design 2026: Classic + AI Era, where 18 case studies are worked step by step, with runnable Java labs. Read the free 5-page sample on the book page.
Why estimate at all
Jeff Dean, in a 2009 keynote, listed the "ability to estimate performance of a system design" without building it as a key skill. In an interview the estimate exists for one reason: it should change a decision in your design. If it changes nothing, the minutes were wasted.
That also tells you how precise to be. Use round numbers and powers of ten; landing within a factor of two or three is fine, because the decision only flips at much bigger steps: one database versus a cluster, one cache node versus many. Then speak in three parts, input, result and meaning. For example: "tens of thousands of reads a second at peak, so one database will not do; I'll put a cache in front."
In the book's TRIBE framework (Think, Rough-size, Interface, Blueprint, Evolve), this is the R step. It gets about five minutes of a 45-minute round, and what goes on the board is five numbers and one sentence about what they change.
The numbers to know
You do not need a long table in your head. The book asks you to learn three things by heart, and its script computes each one so the rounded number is never a guess.
Powers of two
- 2^10 = 1,024: about a thousand (KB)
- 2^20 = 1,048,576: about a million (MB)
- 2^30 = 1,073,741,824: about a billion (GB)
- 2^40 = 1,099,511,627,776: about a trillion (TB)
Seconds in a day, a month and a year
- A day has 86,400 seconds. Say "about 86k", or round to 10^5 when you need speed.
- A 30-day month has 2,592,000 seconds, about 2.6 million.
- A year has 31,536,000 seconds, about 32 million, or 3 × 10^7.
From requests per day to QPS
QPS means queries (requests) per second. Divide the daily count by 86,400:
- 1 million requests a day is about 12 QPS (exactly 11.6).
- 100 million a day is about 1.2k QPS.
- 1 billion a day is about 12k QPS.
Learn the first row and you can convert any daily number in your head: every extra factor of 1,000 per day is a factor of 1,000 per second. Sizes work the same way: 1 million records of 1 KB is about 1 GB, and 1 billion records of 1 KB is about 1 TB.
Latency, as orders of magnitude
Latency numbers let you say "this design needs three disk reads, so it cannot answer in 5 ms". The book lists them with their source and year, because they are old.
- Main memory reference: 100 ns (Dean, 2009)
- Read 4 KB at random from an SSD: 0.15 ms (system-design-primer table, undated)
- Read 1 MB sequentially from memory: 0.25 ms (Dean, 2009)
- Round trip inside one data centre: 0.5 ms (Dean, 2009)
- Disk seek on a spinning disk: 10 ms (Dean, 2009)
- Read 1 MB sequentially from a spinning disk: 20 ms (Dean, 2009)
- A packet from California to the Netherlands and back: 150 ms (Dean, 2009)
The book's warning matters more than the digits: these tables are old. Norvig's first version is from 2002, clock speeds have sat near 3 GHz since about 2005, and Dean's 2009 list has no SSD entry. So rely on the gaps between rows, not the values: memory beats a network hop by a wide margin, and a network hop beats a disk seek.
Throughput hints, not facts
Throughput depends even more on hardware. The Redis benchmark page includes a sample redis-benchmark run of about 180,000 SET requests per second. The book also cites a 2014 LinkedIn test that pushed Apache Kafka to about 2 million writes per second on three commodity machines, a figure that is now old. PostgreSQL gives you no headline number at all: pgbench is a tool that reports the transactions per second of your own workload. Treat all of these as rough orders of magnitude, and benchmark your own setup.
The five formulas
Every case study in the book reuses the same five formulas. Each one is a single multiplication or division, and each one answers a specific design question.
- QPS: requests per day ÷ 86,400, then × the peak factor. It decides one box or many.
- Storage: items per day × bytes per item × days kept × replicas. It decides one disk or shards.
- Bandwidth: peak QPS × bytes per reply. It decides whether you need a CDN.
- Cache size: reads per day × hot share × bytes. It decides one cache node or a cluster.
- Servers: peak QPS ÷ QPS one server handles, rounded up, plus a spare. It decides the fleet size.
The peak factor is peak traffic divided by average traffic. Traffic is never flat: evenings, salary days and festival sales all spike. The hot share is the fraction of items that get most of the reads, often taken from the 80/20 rule.
Rounding to an interview number
An exact result like 34,722.2 is hard to say and harder to reason with. Turn it into an interview number: keep one or two significant figures and a unit. 38,420 becomes "about 38k". 34,722.2 becomes "about 35k".
- Round 86,400 up to 10^5 when you need speed. You will be about 16% high, which errs on the safe side.
- Round inputs, not only results.
- Never carry more digits than your weakest assumption. If "500 bytes per link" is a guess, a result to six digits is false precision.
The book's estimate scripts do this with a small helper that rounds half-up to two significant figures and picks a unit in steps of 1,000:
def human(value, unit='count', sig=2):
"""Round to `sig` significant figures and pick a 1000-step unit: 115740.7 -> '~120k'."""
# ...
while abs(value) >= 1000 and step < len(names) - 1:
value /= 1000
step += 1
# ... round half-up, then add '~' and the unit nameWorked example: a URL shortener
Here is the book's full estimate for its URL shortener case study. This post covers only the numbers. The design itself (short codes, redirects, cache and storage choices) is in our separate guide to designing a URL shortener.
Step 1: say the assumptions out loud
- 10 million new short links per day.
- 100 redirects per new link (a read-to-write ratio of 100).
- Peak factor 3, for evening and sale-day spikes.
- Keep links for 5 years.
- 500 bytes per stored link (code, long URL, owner, timestamps and index overhead), and 500 bytes per redirect response.
- 20% of daily redirects are hot enough to cache.
- One app server handles 10,000 redirects per second (an assumption: measure your own).
Saying these first matters. If the interviewer disagrees with one, you change one input, not your whole reasoning.
Step 2: QPS, average and peak
- Write QPS (average): 10,000,000 ÷ 86,400 = 115.7, about 120.
- Write QPS (peak): 115.7 × 3 = 347.2, about 350.
- Read QPS (average): 115.7 × 100 = 11,574.1, about 12k.
- Read QPS (peak): 11,574.1 × 3 = 34,722.2, about 35k.
Step 3: storage
- Links stored in 5 years: 10,000,000 × 365 × 5 = 18,250,000,000, about 18 billion.
- Storage for 5 years: 18.25 billion × 500 bytes = 9,125,000,000,000 bytes, about 9.1 TB for one copy. Multiply by your replica count for the full storage formula.
Step 4: bandwidth, cache and servers
- Read bandwidth at peak: 34,722.2 × 500 bytes = 17,361,111 bytes a second, about 17 MB/s.
- Cache for one day of hot links: 1 billion redirects × 20% × 500 bytes = 100,000,000,000 bytes, about 100 GB.
- App servers for peak reads: 34,722.2 ÷ 10,000 = 3.5, rounded up to 4, plus 1 spare.
One more number falls out of the storage step: with 18 billion links, base62 codes (digits plus upper and lower case letters) need 6 characters, because 62^6 is about 57 billion.
The book computes all of this with a short script in its companion repository, so every row keeps its formula, inputs, exact value and rounded interview number. A shortened excerpt:
DAY = 24 * 60 * 60
w = s.row('Write QPS (average)', 'new_per_day / 86,400', new_per_day / DAY)
s.row('Write QPS (peak)', 'write_qps × peak', w * peak)
r = s.row('Read QPS (average)', 'write_qps × read_ratio', w * read_ratio)
rp = s.row('Read QPS (peak)', 'read_qps × peak', r * peak)
total = s.row('Links stored in 5 years', 'new_per_day × 365 × years', new_per_day * 365 * years)
s.row('Storage for 5 years', 'links × bytes_per_link', total * record, 'bytes')
# ... bandwidth, cache and servers follow the same patternStep 5: say what the numbers mean
About 35k redirects a second at peak against about 350 writes: this is a read-heavy system. A cache in front of the store is mandatory, and the store is sized for storage (about 9.1 TB over five years), not for reads. That one sentence is the reason the estimate exists.
How to say it in the interview
Open the step by asking for the time: before drawing anything, take two minutes for requirements and a rough size, because the numbers decide whether you need a cache, a queue or sharding. Then talk through the formula, not just the answer. For the URL shortener it can sound like this:
A billion redirects a day over 86,400 is about 12k a second, and three times that at peak is about 35k. One database will not keep up with that, so the read path gets a cache. Storage is a separate question: it decides sharding, not QPS.
Notice its shape: input, result, decision. Write the five interview numbers on the board in a column and put the one-sentence conclusion under them, so you can point back to it later when you justify the cache or the shard count.
Common mistakes
- Numbers that decide nothing. If an estimate does not change a box in your diagram, skip it or say why it does not matter.
- Too many digits. "34,722.2 QPS" sounds precise but your inputs are guesses. Say "about 35k".
- Forgetting the peak. Average QPS sizes nothing. Servers and caches must survive the peak, so multiply by the peak factor.
- No spare server. Round the server count up and add one spare, as the book's servers formula does.
- Mixing storage and QPS. Storage decides sharding; QPS decides caching and fleet size. Size them separately.
- Forgetting replicas. The storage formula multiplies by the number of copies. A one-copy figure is only part of the bill.
- Quoting old latency or throughput numbers as facts. Use them for ratios and orders of magnitude, name the source, and measure your own hardware.
Go deeper
Book 2, System Design: Classic and AI Era, teaches this in Part 1.3, "The estimation toolkit", and then uses it in the Rough-estimates step of every case study, from the URL shortener in Case Study 1 to payments and AI systems later in the book. Each case prints an assumptions table and a results table produced by a script in the companion estimates/ folder, with the reason for every assumption, so you can change an input and re-run the numbers yourself.
You can find the book on its product page, which also has a free 5-page sample.
Related reading
- Design a URL shortener: system design walkthrough
- A framework for the system design interview
- Idempotency key and transactional outbox: the exactly-once myth
FAQ
What is back of the envelope estimation in system design?
It is a quick, rough calculation of a system's size: requests per second, storage, bandwidth, cache memory and server count. It uses round numbers and simple formulas, and its only purpose is to drive design decisions such as adding a cache or sharding a database.
How do you calculate QPS from daily users or requests?
Divide the requests per day by 86,400, the number of seconds in a day, to get average QPS. Then multiply by a peak factor, such as 3, to get peak QPS. For example, 1 billion requests a day is about 12k QPS on average and about 35k at a peak factor of 3.
How accurate does a system design estimate need to be?
Within a factor of two or three is enough. Use one or two significant figures, round inputs as well as results, and never carry more digits than your weakest assumption.
What latency numbers should I know for system design interviews?
Know the orders of magnitude: a memory reference is around 100 ns, a round trip inside a data centre around 0.5 ms, a disk seek around 10 ms and a cross-continent round trip around 150 ms. These figures come from old tables, so trust the ratios, not the exact values.
How long should estimation take in a system design interview?
About five minutes of a 45-minute round. State your assumptions, work through the five formulas, round each result to an interview number and finish with one sentence on what the numbers change in the design.





