Electricity used for answering coding queries in a month
guesstimate case · difficulty 4/5 · 15 minutes · software-tech
Prompt
Estimate the electricity consumed by Anthropic's servers in a month when answering coding queries.
Context
Language models run on accelerators in data centers. Energy is power used over time, including cooling and other overhead. This is an illustrative exercise. None of the inputs are Anthropic data. The client cares about *order of magnitude*, not precision. A defensible range with clearly stated assumptions beats a falsely exact number.
Clarifying questions
- GPUs used? Watts per generation?
- Think about the number of requests, the accelerator time each uses, the power per accelerator and the efficiency of the data center.
- Do we include the electricity for building the hardware?
- No. Operating electricity only.
Solution structure
- Electricity for serving coding requests per month
- Compute route: requests, accelerator time, power and overhead: 200M × 30 × 3 seconds × 1/3,600 × 1 kW × 1.25 ≈ 62,60,000.
- Agentic coding sessions (long context): Many steps and large contexts mean far more compute per task.
- Chat-based code help: Moderate length prompts and answers.
- Short completions and edits: Very small requests at large volume.
- Token route: tokens processed and energy per token: 48 trillion tokens × 0.12 kWh ≈ 57,60,000.
- Reading (input) tokens: Fast to process but plentiful, given long contexts.
- Generating (output) tokens: Slower per token, so they use more energy each.
- Start from the whole data center capacity and take a share
- Compute route: requests, accelerator time, power and overhead: 200M × 30 × 3 seconds × 1/3,600 × 1 kW × 1.25 ≈ 62,60,000.
Recommendation
**about 6,000 MWh of electricity a month.** - Main route: 200M × 30 × 3 seconds × 1/3,600 × 1 kW × 1.25 ≈ 62,60,000 kWh - Cross-check: Token route: tokens processed and energy per token ≈ 57,60,000 kWh The two routes agree within about 8%, so the order of magnitude is solid. Accelerator-seconds per request (3) and the number of requests (200M a day) are the biggest levers, and both are very uncertain.
Risks
- Accelerator time per request could be a factor of 3 higher or lower depending on context length
- Efficiency improves over time, so the figure changes quickly
Next steps
- Estimate the carbon footprint: at an assumed 0.4 tonnes of CO2 per MWh, about 2,500 tonnes a month
- Check against published energy-per-query estimates