CMD Guide
HomeSystem DesignCapacity Estimation

The Estimation Method — A Repeatable 5-Step Routine

Estimation is a routine, not a talent

Freezing on “how many servers?” isn’t a knowledge gap — it’s the absence of a fixed procedure. Run the same five steps every time and the math falls out. Pair it with the cognitive-science Fermi method: decompose → estimate each piece → combine → bound.

The 5 steps (always in this order)

#StepWhat you write down
1InputsDAU, actions/user/day, bytes/action, read:write ratio, retention (years)
2QPS= DAU × actions/day ÷ 86,400 → ×2–10 for peak
3Storage= writes/day × bytes/write × 365 × years × replication
4Bandwidth= QPS × bytes/payload
5Servers / memory / costpeak QPS ÷ per-server QPS; cache the hot 20%; price it

Three habits that make it fast and credible

Worked example — “Design Twitter” in 60 seconds

Three memorized numbers (10⁵ s/day, 300 B/tweet, “round to powers of 10”) just produced a full capacity plan.

Second worked example — “YouTube comments,” carried through with bounds

Common mistakes

When the routine misleads

The five steps are mechanical; the judgment is knowing when their output is a lie. Two failure modes matter.

Top-down and bottom-up disagree — trust the binding constraint. Estimate the same quantity two ways. Top-down starts from an aggregate: for a ride-share, 1.5B smartphone users in target markets × 2% adoption × 3 rides/week ÷ 7 ≈ 13M rides/day (~150 rides/s). Bottom-up builds from unit supply: 200 cities × ~500 active drivers × 20 rides/driver/day ≈ 2M rides/day (~23 rides/s). They differ ~6× — so one assumption is wrong, and “average them” is the wrong move. Ask instead which side is a physical constraint: rides are gated by driver supply (you cannot complete more rides than drivers can drive), so the bottom-up number is a real ceiling and the top-down 13M is aspirational demand. When one estimate is supply-constrained and the other demand-constrained, the binding (smaller, physical) constraint wins — size for it, and treat the gap as growth headroom, not launch load.

Compute only to the precision the nearest gate demands. An estimate matters only where it flips a design decision (see Decision Gates). The single-primary write ceiling sits near ~50K writes/s, so an estimate of 4K or 400K writes/s needs no refinement — you are nowhere near the gate. But the YouTube-comments example above lands at 23–58K writes/s once the peak factor is applied, and that range straddles the ~50K shard gate: at peak ×2 (23K/s) one primary copes; at peak ×5 (58K/s) you must shard. Here the ×2-vs-×5 assumption is the architecture decision — so this is exactly where you stop rounding and go measure the real peak factor. Precision is worthless far from a gate and decisive next to one.

The next pages are per-resource playbooks for steps 3–5. Practice them in the drills at the bottom of this topic.


Formulas are standard/public-domain engineering math. Approach and reference-table format adapted from the System Design Primer (CC BY 4.0), Jeff Dean’s latency numbers, the DesignGurus capacity-estimation guide, and Little’s Law.

🤖 Don't fully get this? Learn it with Claude

Stuck on The Estimation Method — A Repeatable 5-Step Routine? Open Claude, copy a block below, and it'll teach you this exact concept — visually and interactively.

🎨 Explain it visually

Build the mental picture, not memorization.

I just read a lesson on **The Estimation Method — A Repeatable 5-Step Routine** (System Design) and want to truly understand it. Explain The Estimation Method — A Repeatable 5-Step Routine from first principles using ONE vivid real-world analogy and a visual mental model — draw it as ASCII art or a clear step-by-step diagram — with a concrete example using real numbers. Then ask me one question to check I got the mental picture, and wait for my reply. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🤔 Walk me through it (interactive)

Socratic — adapts to where you're stuck.

Teach me **The Estimation Method — A Repeatable 5-Step Routine** interactively. Ask me ONE guiding question at a time, wait for my answer, and adapt to my confusion — build the idea with me step by step instead of explaining it all at once. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🧪 Quiz me & fix my gaps

Active recall exposes what you missed.

Quiz me on **The Estimation Method — A Repeatable 5-Step Routine** with 5 questions, easy to tricky, ONE at a time. Tell me if each answer is right; at the end, explain clearly what I got wrong and why. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🧠 Make it stick

Intuition + hook + flashcards for long-term memory.

Help me remember **The Estimation Method — A Repeatable 5-Step Routine** for the long term: give the one-sentence intuition, a memorable hook/mnemonic, a tiny worked example, and 3 active-recall flashcards (Q -> A). If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.

📝 My notes