Hard👤 8-15 years 1 min read

How do you do back-of-the-envelope capacity estimation in a design interview?

Asked inAmazonGoogleMicrosoftMeta-style
#capacity estimation#back of envelope#qps#storage#bandwidth
Report issue

⚡ Short Answer

Derive QPS from DAU × actions/day ÷ 86,400 (and apply a peak factor of ~2–5×). Estimate storage from objects/day × size × retention, and bandwidth from QPS × payload size. Round to powers of ten — the goal is order-of-magnitude sizing to justify architecture (caches, shards, replicas), not precision.

Coffee Chat Question

Concept Made Simple

How do you do back-of-the-envelope capacity estimation in a design interview?

🧠Mind Map Answer

Remember It Faster

QPSDAU × actions ÷ 86,400 × peak factor
Storageitems/day × size × retention
BandwidthQPS × payload size
Goalorder-of-magnitude, not exact

⌨️Hands-on Keyboard

Learn by Doing

text
100M DAU, 10 reads/user/day:
  reads/day = 1e9
  avg QPS   = 1e9 / 86,400 ≈ 11.6k
  peak QPS  ≈ 11.6k × 3 ≈ 35k
2 KB/response → peak BW ≈ 35k × 2KB ≈ 70 MB/s

🔥What If?

Think Beyond the Expected

Why bother estimating if the numbers are rough?

The magnitude drives the architecture: 35k QPS says you need caching, multiple app instances, and read replicas/sharding — a single DB won't do. Estimation justifies WHY you add each component and shows the interviewer you can size a system, which is the point (not the exact number).

😂Real World

Every senior system-design interview expects quick capacity math to justify caches, shards, and replicas; the skill is reasonable assumptions + powers-of-ten arithmetic, not precision.

🎯Interviewer's Expectation

Keywords they're listening for:

QPS from DAU × actionspeak factorstorage = rate × size × retentionbandwidth = QPS × payloadorder-of-magnitude, justify architecture

⚠️Common Mistakes

  • Skipping estimation entirely
  • Forgetting the peak factor
  • Over-precise math instead of magnitudes

Best Practices

  • State assumptions; round to powers of ten
  • Apply a peak/burst multiplier
  • Tie the numbers to architecture choices

🔁Follow-up Questions

  • 1How does the estimate justify adding a cache or shards?
  • 2Read:write ratio — why does it matter?
  • 3How do you estimate storage growth over a year?

🧩Related Technologies

QPSread:write ratiocapacity planning

Continue Learning with AI

Take this question deeper with your favourite AI assistant. Pick a depth, copy the prompt, or open it directly — AI is your learning companion, not a shortcut.

Plain-language foundations

I'm preparing for a software engineering interview and want to understand this from scratch, as a beginner.

Topic: Scaling (System Design)
Interview question: "How do you do back-of-the-envelope capacity estimation in a design interview?"

Please:
1. Explain the core idea in simple, plain language, using an everyday analogy.
2. Define any technical terms you use.
3. Walk through one small, concrete example.
4. Finish with a single sentence I can easily remember.

Keep the tone friendly and assume I'm new to this topic.
Open inChatGPTGeminiClaude

Was this answer helpful?

Support our platform by exploring our recommended products.

As an Amazon affiliate, purchases through these links may earn us a small commission — at no extra cost to you. It helps keep Full Stack Interview Guru free.

Related Questions