HLD Capacity Estimator
Back-of-the-envelope QPS, storage and bandwidth for a system design interview.
How it works
A back-of-the-envelope estimate for a system design round. Enter daily users, requests per user, the share of writes, the size of each write, the years of data and a peak factor. You get queries per second, storage and bandwidth.
The formula
average QPS = daily requests / 86,400 peak QPS = average QPS x peak factor storage per day = writes per day x size
Worked example
10 million users x 20 requests = 200 million a day = 2,315 QPS on average and about 6,944 at 3x peak. 10% writes of 2 KB is 40 GB a day, about 73 TB in 5 years.
Good to know
- Round on purpose. 86,400 is about 100,000 seconds in a day for quick mental maths.
- Say your assumptions aloud. Interviewers care about the reasoning.
- Replication multiplies storage (often by 3), and this tool does not include it.
Common questions
- Is the peak factor fixed?
- No. Two to five times is a common guess.
- Does it include cache and replicas?
- No. Multiply storage yourself.
- Is this accurate?
- It is an estimate, which is exactly what the interview asks for.
More in CS Labs & Coding.
Watch 10 sorting algorithms animate step by step with live counters and pseudocode, or race them on the same input.
CS Labs & CodingTOP PICKGraph Algorithm VisualizerTOP PICKDraw your own graph and watch BFS, DFS, Dijkstra, Bellman-Ford, Prim, Kruskal, topological sort and more run step by step, with the queue, the distance table and the reason for every move.
Big-O Estimator from TimingsTime your code on a few input sizes, paste the numbers, and see which growth rate fits best.
OPEN →