Capacity Estimation &
Back-of-the-Envelope Math
Every high-level system design interview begins with a simple question: "How big does this need to be?" Learn the 5 first-principles formulas that allow senior architects to size traffic, disk, RAM, and network pipes in 30 seconds on a whiteboard without a calculator.
The "Grocery Store" Ballpark Principle
When you walk down the supermarket aisles tossing items into your cart, you don't calculate to the exact penny ($3.49 + $7.89 + $12.19). You round to the nearest dollar ($3 + $8 + $12 = $23) to know if you have enough money before reaching the checkout.
Trying to do exact long division with pen and paper: "500,000,000 divided by 86,400 equals 5,787.037..." This burns 15 minutes of interview time, causes arithmetic stress, and distracts from core architecture.
Rounding numbers to powers of 10: "86,400 is roughly 100k. 500M divided by 100k is roughly 5,000 QPS. At 2× peak rush hour, we design for 10k QPS." Done in 10 seconds, leaving 40 minutes for deep system trade-offs!
Why Interviewers Test Capacity Math First:
The 5 Golden Sizing Formulas
Every capacity estimation question in existence boils down to these 5 mathematical pillars. Let's walk through them using real Twitter/X scale as our benchmark:
Queries Per Second (QPS)
Tells you how many requests hit your servers every single second.
Peak QPS (Rush-Hour Multiplier)
Traffic is never flat. Sizing for average QPS causes your system to crash during evening rush hours or breaking viral news.
5-Year Storage Capacity (With Replication)
Calculates persistent disk growth. FAANG interviewers universally expect a 5-year planning horizon.
Memory (RAM) Caching (The 80/20 Pareto Rule)
RAM is expensive; you cannot store your entire database in memory. Fortunately, 20% of data generates 80% of reads.
Network Bandwidth (The Byte vs Bit Rule)
Calculates how much data your network interface cards (NICs) must push out every second.
The Architect's Mental Math Cheatsheet
Explore the interactive tabs below to master the 86,400 shortcut, powers-of-two storage ladder, latency in human perspective, and the 80/20 Pareto caching principle:
Mental Math Shortcuts for Interviews
Never calculate to the decimal in an architecture interview. Master the 4 mental shortcuts that senior architects use to estimate massive systems in seconds.
How to Divide by 86,400 in Your Head
One day has 86,400 seconds (24h × 60m × 60s). In an interview, never divide by 86,400. Round it up to 100,000 (10⁵)!
Interviewer asks: "What is the QPS for 100 Million daily requests?"
You answer: "100M divided by 100k is ~1,000 QPS (exact is 1,157 QPS)." Ballpark verified in 2 seconds!
Live System Capacity Estimator
Put the 5 formulas to work. Pick a preset architecture (Twitter, Instagram, YouTube, TinyURL, or WhatsApp) or slide the controls to watch traffic, storage, cache, and server nodes calculate in real-time:
Live System Capacity Estimator
Select a real-world FAANG archetype or drag the sliders below to calculate real-time QPS, storage footprint, caching memory, and server fleet sizing.
Try It Yourself in Architecture Studio
Now that you've calculated the numbers for 50,000 Peak QPS, 20% hot RAM caching, and 5-year persistent storage, open our full-screen Architecture Studio to wire the complete multi-tier topology:
Challenge 03: Architect Capacity & Sizing Tiers
You just sized a high-throughput social service handling 50,000 Peak QPS, 20% hot RAM cache, and multi-petabyte persistent storage. Open the studio and wire the multi-tier topology: distribute traffic from Users through a Load Balancer to a Stateless Server Fleet, query Redis Cache for fast memory reads, and persist writes into a sharded Database Cluster.
Users → Load Balancer
At 50,000 Peak QPS, incoming connections must be terminated by a dedicated load balancer to avoid single-node socket exhaustion.
Load Balancer → App Server Fleet
Distributes 50k QPS across 10+ stateless worker nodes (~5,000 QPS capacity per instance).
App Server Fleet → Redis Cache
Caches the top 20% of read volume in memory, shielding the persistent database from 80% of read traffic.
App Server Fleet → Database Cluster
Writes long-term data to replicated database shards designed for 5-year data retention.
Capacity Math Checkpoint
Lock in the core principles before advancing to Module 1.4:
Check Your Understanding
4 quick questions to lock in the 5 capacity math formulas before moving to Module 1.4.
An interviewer says your system will receive 432 Million requests every day. Using the whiteboard shortcut, what is the approximate average QPS?
Why must you always calculate Peak QPS (typically 2× to 5×) rather than sizing your server fleet solely for Average QPS?
Your service receives 1 TB of new data writes daily. If you plan for a 5-year retention window with industry-standard 3× replication, how much raw disk storage is required?
According to the Pareto Principle (80/20 Caching Rule), if your system receives 5 TB of read volume per day, how much RAM should your Redis cache fleet have?
Mastered this Architecture Concept?
Mark this module complete to record mastery in your HLD curriculum progress.