Back-of-envelope estimator
Most capacity questions start with a number of users and end with a number of machines. In between is a few lines of arithmetic: requests per day, requests per second, bytes per day, bytes held. This calculator does those lines and shows each one.
This workload peaks at 2,546/s and holds 54.8 TB after 1,825 days.
Inputs
Reads and writes together.
10 means a 10:1 read:write ratio. Below 1 means mostly writes.
Busiest second divided by the average second.
Bytes stored by one write and returned by one read: 1 KB.
- Requests per day10M users × 11 = 110M
- Writes per day110M ÷ (10 + 1) = 10M, leaving 100M reads
- Average QPS110M ÷ 86,400 s = 1,273/s
- Peak QPS1,273/s × 2 = 2,546/s
- New data per day10M writes × 1 KB × 3 copies = 30 GB
- Storage held30 GB × 1,825 days = 54.8 TB
- Peak bandwidth out2,315/s reads × 1 KB = 2.3 MB/s
What it shows
A capacity question starts with a number of users and ends with a number of machines. In between is a few lines of arithmetic. This calculator does those lines and writes out each one, so you can check it or redo it on a whiteboard.
The aim is the right order of magnitude, not a forecast: thousands of requests a second or millions, gigabytes or petabytes.
How to read it
- Requests per day is daily active users times requests per user. The read:write ratio splits them into reads and writes.
- Average QPS divides the daily total by 86,400, the seconds in a day. Peak QPS multiplies that by your peak-to-average factor.
- New data per day counts only writes: each stores one payload, copied once per replica.
- Storage held is new data per day times retention. It assumes traffic stays flat, so add growth on top.
- Bandwidth out is reads times payload size. Bandwidth in is writes times payload size. Both show peak and average.
Questions
Why divide by 86,400?
There are 86,400 seconds in a day (24 × 60 × 60). Dividing a daily total by it gives the average per second. Rounding it to 100,000 is a common shortcut when working by hand; it makes the answer about 14% lower.
What peak-to-average factor should I use?
Use your own traffic graphs if you have them: divide the busiest second (or minute) by the daily average. Without data, pick a factor, state it as an assumption, and see how much the answer changes when you double it.
Why does storage count only the payload?
Indexes, metadata, write-ahead logs, compaction space and backups depend on the database and schema, so they cannot be derived from these inputs. Estimate them separately and add them on top of the payload figure.
Why decimal units?
Storage and network capacity are usually sold in decimal units (1 GB = 1,000,000,000 bytes), and decimal numbers are easier to multiply by hand. Binary units (1 GiB = 1,073,741,824 bytes) are about 7% larger at that size.
Learn it properly
Explore further
- System Design PrimerOpen-source system design guide, with tables of powers of two and latency numbers.
Last updated
More tools
All tools- simulatorConsistent hashing simulatorA hash ring with virtual nodes: key spread per node, and how many keys move when the cluster changes.Open tool
- estimatorQueue latency estimatorWhy latency explodes as servers get busy: utilisation, waiting time and Little’s law.Open tool
- estimatorCache hit rate estimatorEstimate hit rate, mean latency and origin load for an LRU and an ideal cache under Zipf-skewed traffic.Open tool