System design / Capacity planning

System-design sizing calculator

Turn traffic assumptions into QPS, storage, bandwidth and server estimates. Change one input, explain the result, then challenge the assumption.

Free to use. Calculations run in your browser; input values are not sent to our analytics.

Set your assumptions

Use application payload sizes, decimal KB (1,000 bytes) and measured service rates. Defaults are an illustrative interview example.

Explain every formula

GB means 109 bytes; GiB means 230 bytes. The calculator shows both for total storage. It does not round intermediate calculations.

Worked example: one million active users

One million users × 20 requests gives 20 million requests/day, or 231.481 average QPS. At 5× peak traffic, plan for 1,157.407 QPS. If 10% create a 1 KB record, two million writes/day retained for 30 days require 60 GB raw, or 180 GB (167.638 GiB) across three total copies.

A 5 KB response gives about 46.296 Mbps of peak outbound application payload. Mean time of 100 ms implies 23.148 requests in flight on average. A 1,000-QPS server limited to 70% of its benchmark capacity supplies 700 QPS, so this model needs two servers for peak load.

Failure follow-up: two servers have enough combined capacity here, but losing one leaves only 700 QPS. Under the same independent-capacity assumption, three servers would preserve the required capacity after one server fails. Multi-zone placement, shared dependencies and stateful failover need separate analysis.

Challenge the model before choosing infrastructure

Storage assumes a steady write rate and a full retention window of newly retained bytes. Overwrites, deletes, compression, indexes, write-ahead logs, backups and storage-engine overhead change it. Fan-out can create many records or downstream requests from one user operation.

Capacity does not scale perfectly with server count. Measure realistic payloads, hot keys, cache misses and downstream limits. Add redundancy, replication bandwidth, retry budgets and backlog recovery explicitly. A peak factor estimates a burst rate; it does not mean that rate lasts all day.

Practice next: queue backlog and retry capacity, collaborative editor fan-out, or erasure-coded storage overhead. Browse the system-design learning path to connect the estimates to an architecture.